Skip to content

Commit

Permalink
Merge pull request #1196 from mrstanb/fix-blobsize-query
Browse files Browse the repository at this point in the history
Fix `BlobSize` query compare
  • Loading branch information
sim642 authored Sep 28, 2023
2 parents dd2a70b + c19e4c0 commit cb500ed
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/domains/queries.ml
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,12 @@ struct
| Any (EvalLength e1), Any (EvalLength e2) -> CilType.Exp.compare e1 e2
| Any (EvalMutexAttr e1), Any (EvalMutexAttr e2) -> CilType.Exp.compare e1 e2
| Any (EvalValue e1), Any (EvalValue e2) -> CilType.Exp.compare e1 e2
| Any (BlobSize {exp = e1; _}), Any (BlobSize {exp = e2; _}) -> CilType.Exp.compare e1 e2
| Any (BlobSize {exp = e1; base_address = b1}), Any (BlobSize {exp = e2; base_address = b2}) ->
let r = CilType.Exp.compare e1 e2 in
if r <> 0 then
r
else
Stdlib.compare b1 b2
| Any (CondVars e1), Any (CondVars e2) -> CilType.Exp.compare e1 e2
| Any (PartAccess p1), Any (PartAccess p2) -> compare_access p1 p2
| Any (IterPrevVars ip1), Any (IterPrevVars ip2) -> compare_iterprevvar ip1 ip2
Expand Down

0 comments on commit cb500ed

Please sign in to comment.