@@ -832,22 +832,22 @@ std::string expr2ct::convert_trinary(
832
832
return dest;
833
833
}
834
834
835
- std::string expr2ct::convert_quantifier (
836
- const quantifier_exprt &src,
835
+ std::string expr2ct::convert_binding (
836
+ const binding_exprt &src,
837
837
const std::string &symbol,
838
838
unsigned precedence)
839
839
{
840
840
// our made-up syntax can only do one symbol
841
- if (src.op0 (). operands ().size () != 1 )
841
+ if (src.variables ().size () != 1 )
842
842
return convert_norep (src, precedence);
843
843
844
844
unsigned p0, p1;
845
845
846
- std::string op0 = convert_with_precedence (src.symbol (), p0);
846
+ std::string op0 = convert_with_precedence (src.variables (). front (), p0);
847
847
std::string op1 = convert_with_precedence (src.where (), p1);
848
848
849
849
std::string dest=symbol+" { " ;
850
- dest += convert (src.symbol ().type ());
850
+ dest += convert (src.variables (). front ().type ());
851
851
dest+=" " +op0+" ; " ;
852
852
dest+=op1;
853
853
dest+=" }" ;
@@ -3816,16 +3816,13 @@ std::string expr2ct::convert_with_precedence(
3816
3816
return convert_trinary (to_if_expr (src), " ?" , " :" , precedence = 3 );
3817
3817
3818
3818
else if (src.id ()==ID_forall)
3819
- return convert_quantifier (
3820
- to_quantifier_expr (src), " forall" , precedence = 2 );
3819
+ return convert_binding (to_quantifier_expr (src), " forall" , precedence = 2 );
3821
3820
3822
3821
else if (src.id ()==ID_exists)
3823
- return convert_quantifier (
3824
- to_quantifier_expr (src), " exists" , precedence = 2 );
3822
+ return convert_binding (to_quantifier_expr (src), " exists" , precedence = 2 );
3825
3823
3826
3824
else if (src.id ()==ID_lambda)
3827
- return convert_quantifier (
3828
- to_quantifier_expr (src), " LAMBDA" , precedence = 2 );
3825
+ return convert_binding (to_lambda_expr (src), " LAMBDA" , precedence = 2 );
3829
3826
3830
3827
else if (src.id ()==ID_with)
3831
3828
return convert_with (src, precedence=16 );
0 commit comments