File tree 2 files changed +5
-2
lines changed 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,18 @@ class goto_symex_is_constantt : public is_constantt
22
22
{
23
23
if (expr.id () == ID_mult)
24
24
{
25
+ bool found_non_constant = false ;
26
+
25
27
// propagate stuff with sizeof in it
26
28
forall_operands (it, expr)
27
29
{
28
30
if (it->find (ID_C_c_sizeof_type).is_not_nil ())
29
31
return true ;
30
32
else if (!is_constant (*it))
31
- return false ;
33
+ found_non_constant = true ;
32
34
}
33
35
34
- return true ;
36
+ return !found_non_constant ;
35
37
}
36
38
else if (expr.id () == ID_with)
37
39
{
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ SRC += analyses/ai/ai.cpp \
29
29
goto-programs/goto_trace_output.cpp \
30
30
goto-programs/xml_expr.cpp \
31
31
goto-symex/ssa_equation.cpp \
32
+ goto-symex/is_constant.cpp \
32
33
interpreter/interpreter.cpp \
33
34
json/json_parser.cpp \
34
35
json_symbol_table.cpp \
You can’t perform that action at this time.
0 commit comments