Skip to content

Commit fdba57c

Browse files
author
Daniel Kroening
authored
Merge pull request #1901 from romainbrenguier/fix/quantifier_exprt
Correct can_cast_expr for quantifier_exprt
2 parents 782df52 + f5330c9 commit fdba57c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/std_expr.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -4812,8 +4812,9 @@ inline quantifier_exprt &to_quantifier_expr(exprt &expr)
48124812

48134813
template<> inline bool can_cast_expr<quantifier_exprt>(const exprt &base)
48144814
{
4815-
return true;
4815+
return base.id() == ID_forall || base.id() == ID_exists;
48164816
}
4817+
48174818
inline void validate_expr(const quantifier_exprt &value)
48184819
{
48194820
validate_operands(value, 2,

0 commit comments

Comments
 (0)