Skip to content

Commit 5c289b1

Browse files
committed
Support ID_C_bool in exprt::is_zero
1 parent 3a87f5c commit 5c289b1

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)