Skip to content

Commit

Permalink
initial commit -- fix binop on labels
Browse files Browse the repository at this point in the history
  • Loading branch information
artkhyzha committed Sep 29, 2023
1 parent 1c97172 commit 59dae74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/symbValue.ml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ module
| (Val (Instruction _),Val (Instruction _))
->
Val (Concrete (Cst.Scalar.of_int (compare v1 v2)))
| (Val (Label _),_) | (_,Val (Label _))
-> Val (Cst.one)
(* 0 is sometime used as invalid PTE, no orpat because warning 57
cannot be disabled in some versions ? *)
| (Val (PteVal _),Val cst)
Expand Down

0 comments on commit 59dae74

Please sign in to comment.