mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Do not evaluate quantified formulas in a model
This commit is contained in:
		
							parent
							
								
									704c19920d
								
							
						
					
					
						commit
						7c924c49f6
					
				
					 1 changed files with 10 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1184,7 +1184,16 @@ expr_ref pred_transformer::get_origin_summary (model &mdl,
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    // bail out of if the model is insufficient
 | 
			
		||||
    if (!mdl.is_true(summary)) return expr_ref(m);
 | 
			
		||||
    // (skip quantified lemmas cause we can't validate them in the model)
 | 
			
		||||
    // TBD: for quantified lemmas use current instances
 | 
			
		||||
    flatten_and(summary);
 | 
			
		||||
    for (auto *s : summary) {
 | 
			
		||||
        if (!is_quantifier(s) && !mdl.is_true(s)) {
 | 
			
		||||
            TRACE("spacer", tout << "Summary not true in the model: "
 | 
			
		||||
                  << mk_pp(s, m) << "\n";);
 | 
			
		||||
            return expr_ref(m);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -- pick an implicant
 | 
			
		||||
    expr_ref_vector lits(m);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue