Skip to content

Commit

Permalink
Fix blobsize query compare
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstanb committed Sep 28, 2023
1 parent dd2a70b commit c19e4c0
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 c19e4c0

Please sign in to comment.