mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-03 21:09:11 +00:00 
			
		
		
		
	Ensure that Z3 uses the correct SMT-LIB2 syntax for push and pop (#4495)
				
					
				
			* When pretty-printing SMTLIB2, ensure that Z3 uses the correct syntax for 'push' Signed-off-by: Andrew V. Jones <andrew.jones@vector.com> * When pretty-printing SMTLIB2, ensure that Z3 uses the correct syntax for 'pop' Signed-off-by: Andrew V. Jones <andrew.jones@vector.com>
This commit is contained in:
		
							parent
							
								
									0bc33e9c9d
								
							
						
					
					
						commit
						a23ca1792b
					
				
					 6 changed files with 11 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -141,12 +141,12 @@ void inductive_property::display(datalog::rule_manager& rm, ptr_vector<datalog::
 | 
			
		|||
 | 
			
		||||
    out << to_string() << "\n";
 | 
			
		||||
    for (auto* r : rules) {
 | 
			
		||||
        out << "(push)\n";
 | 
			
		||||
        out << "(push 1)\n";
 | 
			
		||||
        out << "(assert (not\n";
 | 
			
		||||
        rm.display_smt2(*r, out);
 | 
			
		||||
        out << "))\n";
 | 
			
		||||
        out << "(check-sat)\n";
 | 
			
		||||
        out << "(pop)\n";
 | 
			
		||||
        out << "(pop 1)\n";
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -124,13 +124,13 @@ namespace spacer {
 | 
			
		|||
        out << "(define-fun mbp_benchmark_fml () Bool\n  ";
 | 
			
		||||
        out << mk_pp(fml, m) << ")\n\n";
 | 
			
		||||
 | 
			
		||||
        out << "(push)\n"
 | 
			
		||||
        out << "(push 1)\n"
 | 
			
		||||
            << "(assert mbp_benchmark_fml)\n"
 | 
			
		||||
            << "(check-sat)\n"
 | 
			
		||||
            << "(mbp mbp_benchmark_fml (";
 | 
			
		||||
        for (auto v : vars) {out << mk_pp(v, m) << " ";}
 | 
			
		||||
        out << "))\n"
 | 
			
		||||
            << "(pop)\n"
 | 
			
		||||
            << "(pop 1)\n"
 | 
			
		||||
            << "(exit)\n";
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue