Skip to content

Commit 9ffdd7e

Browse files
committed
Revert changes signs.ml
1 parent dbf796a commit 9ffdd7e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/analyses/tutorials/signs.ml

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ struct
2323

2424
(* TODO: An attempt to abstract integers, but it's just a little wrong... *)
2525
let of_int i =
26-
if Z.compare i Z.zero < 0 then Neg
27-
else if Z.compare i Z.zero > 0 then Pos
26+
if Z.compare i Z.zero < 0 then Zero
27+
else if Z.compare i Z.zero > 0 then Zero
2828
else Zero
2929

3030
let lt x y = match x, y with
31-
| Neg, Pos | Neg, Zero | Pos, Zero -> true (* TODO: Maybe something missing? *)
31+
| Neg, Pos | Neg, Zero -> true (* TODO: Maybe something missing? *)
3232
| _ -> false
3333
end
3434

@@ -59,7 +59,7 @@ struct
5959

6060
(* This should now evaluate expressions. *)
6161
let eval (d: D.t) (exp: exp): SL.t = match exp with
62-
| Const (CInt (i, _, _)) -> SL.of_int i (* TODO: Fix me! *)
62+
| Const (CInt (i, _, _)) -> SL.top () (* TODO: Fix me! *)
6363
| Lval (Var x, NoOffset) -> D.find x d
6464
| _ -> SL.top ()
6565

0 commit comments

Comments
 (0)