Skip to content

Commit e2fdcbf

Browse files
danpoemartin
authored andcommitted
constant propagator fix
1 parent 1b13114 commit e2fdcbf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/analyses/constant_propagator.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,17 @@ void constant_propagator_domaint::transform(
5858
output(std::cout, ai, ns);
5959
#endif
6060

61+
// When the domain is used with constant_propagator_ait,
62+
// information about dirty variables and config flags are
63+
// available. Otherwise, the below will be null and we use default
64+
// values
6165
const constant_propagator_ait *cp=
6266
dynamic_cast<constant_propagator_ait *>(&ai);
6367
bool have_dirty=(cp!=nullptr);
6468

65-
assert(!values.is_bottom);
69+
// assert(!values.is_bottom);
70+
if(values.is_bottom)
71+
return;
6672

6773
if(from->is_decl())
6874
{

0 commit comments

Comments
 (0)