Skip to content
Snippets Groups Projects
Commit 4e37d7bb authored by François Bobot's avatar François Bobot Committed by David Bühler
Browse files

[Eva] multidim: handle floating point constants

parent 9c61e985
No related branches found
No related tags found
No related merge requests found
......@@ -384,6 +384,7 @@ struct
let value = get state (Location.of_lval oracle lval) in
Value_or_Uninitialized.get_v (Bottom.non_bottom value) (* TODO: handle exception *)
| Const (CInt64 (i,_,_)) -> Value.inject_int i
| Const (CReal (f,_,_)) -> Value.inject_float (Fval.singleton (Fval.F.of_float f))
| UnOp (op, e, typ) -> Value.forward_unop typ op (oracle e)
| BinOp (op, e1, e2, TFloat (fkind, _)) ->
Value.forward_binop_float (Fval.kind fkind) (oracle e1) op (oracle e2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment