Skip to content

Commit 46b9223

Browse files
committed
Query _Bool-casted expression in assert analysis to handle pointers
1 parent 45b9ba0 commit 46b9223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/analyses/assert.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct
1616
let assert_fn man e check refine =
1717

1818
let check_assert e st =
19-
match man.ask (Queries.EvalInt e) with
19+
match man.ask (Queries.EvalInt (CastE (TInt (IBool, []), e))) with
2020
| v when Queries.ID.is_bot v -> `Bot
2121
| v ->
2222
match Queries.ID.to_bool v with

0 commit comments

Comments
 (0)