Skip to content

Commit 827519d

Browse files
authored
Merge pull request #815 from smowton/smowton/fix/c_bool_is_zero
Support ID_C_bool in exprt::is_zero
2 parents fcafa41 + 5c289b1 commit 827519d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/util/expr.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,9 @@ bool exprt::is_zero() const
449449
assert(false);
450450
return rat_value.is_zero();
451451
}
452-
else if(type_id==ID_unsignedbv || type_id==ID_signedbv)
452+
else if(type_id==ID_unsignedbv ||
453+
type_id==ID_signedbv ||
454+
type_id==ID_c_bool)
453455
{
454456
return constant.value_is_zero_string();
455457
}

0 commit comments

Comments
 (0)