Skip to content

Commit 50229da

Browse files
felixL-Kfilipeom
authored andcommitted
fix normalization error on floats
1 parent 7a03cdb commit 50229da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/smtml/expr.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ let unop ty op hte =
346346
| Ty.Unop.(Regexp_loop _ | Regexp_star), _ -> raw_unop ty op hte
347347
| _, Val v -> value (Eval.unop ty op v)
348348
| Not, Unop (_, Not, hte') -> hte'
349+
| Not, Relop (Ty_fp _, _, _, _) -> raw_unop ty op hte
349350
| Not, Relop (_, _, _, _) -> negate_relop hte
350351
| Neg, Unop (_, Neg, hte') -> hte'
351352
| Trim, Cvtop (Ty_real, ToString, _) -> hte

0 commit comments

Comments
 (0)