File tree 1 file changed +17
-11
lines changed 1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -1972,13 +1972,16 @@ void smt2_convt::convert_expr(const exprt &expr)
1972
1972
else if (quantifier_expr.id () == ID_exists)
1973
1973
out << " (exists " ;
1974
1974
1975
- exprt bound = quantifier_expr.symbol ();
1976
-
1977
- out << " ((" ;
1978
- convert_expr (bound);
1979
- out << " " ;
1980
- convert_type (bound.type ());
1981
- out << " )) " ;
1975
+ out << " ( " ;
1976
+ for (const auto &bound : quantifier_expr.variables ())
1977
+ {
1978
+ out << " (" ;
1979
+ convert_expr (bound);
1980
+ out << " " ;
1981
+ convert_type (bound.type ());
1982
+ out << " ) " ;
1983
+ }
1984
+ out << " ) " ;
1982
1985
1983
1986
convert_expr (quantifier_expr.where ());
1984
1987
@@ -4566,10 +4569,13 @@ void smt2_convt::find_symbols(const exprt &expr)
4566
4569
// do not declare the quantified symbol, but record
4567
4570
// as 'bound symbol'
4568
4571
const auto &q_expr = to_quantifier_expr (expr);
4569
- const auto identifier = q_expr.symbol ().get_identifier ();
4570
- identifiert &id = identifier_map[identifier];
4571
- id.type = q_expr.symbol ().type ();
4572
- id.is_bound = true ;
4572
+ for (const auto &symbol : q_expr.variables ())
4573
+ {
4574
+ const auto identifier = symbol.get_identifier ();
4575
+ identifiert &id = identifier_map[identifier];
4576
+ id.type = symbol.type ();
4577
+ id.is_bound = true ;
4578
+ }
4573
4579
find_symbols (q_expr.where ());
4574
4580
return ;
4575
4581
}
You can’t perform that action at this time.
0 commit comments