Skip to content

Commit f5330c9

Browse files
Correct can_cast_expr for quantifier_exprt
1 parent 00cc4b1 commit f5330c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/std_expr.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4804,8 +4804,9 @@ inline quantifier_exprt &to_quantifier_expr(exprt &expr)
48044804

48054805
template<> inline bool can_cast_expr<quantifier_exprt>(const exprt &base)
48064806
{
4807-
return true;
4807+
return base.id() == ID_forall || base.id() == ID_exists;
48084808
}
4809+
48094810
inline void validate_expr(const quantifier_exprt &value)
48104811
{
48114812
validate_operands(value, 2,

0 commit comments

Comments
 (0)