3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 09:35:32 +00:00

simplify code + remove unused file

This commit is contained in:
Nuno Lopes 2022-12-11 22:09:41 +00:00
parent 6b60a3dbed
commit d308b8f555
5 changed files with 1 additions and 61 deletions

View file

@ -1,50 +0,0 @@
/*++
Copyright (c) 2011 Microsoft Corporation
Module Name:
filter_model_converter.h
Abstract:
Filter decls from a model
Author:
Leonardo (leonardo) 2011-05-06
Notes:
--*/
#pragma once
#include "tactic/model_converter.h"
class filter_model_converter : public model_converter {
func_decl_ref_vector m_decls;
public:
filter_model_converter(ast_manager & m):m_decls(m) {}
~filter_model_converter() override;
ast_manager & m() const { return m_decls.get_manager(); }
void operator()(model_ref & md, unsigned goal_idx) override;
virtual void operator()(svector<symbol> & labels, unsigned goal_idx);
void operator()(model_ref & md) override { operator()(md, 0); } // TODO: delete
void cancel() override {}
void display(std::ostream & out) override;
void insert(func_decl * d) {
m_decls.push_back(d);
}
model_converter * translate(ast_translation & translator) override;
};
typedef ref<filter_model_converter> filter_model_converter_ref;

View file

@ -159,9 +159,7 @@ void goal::quick_process(bool save_first, expr_ref& f, expr_dependency * d) {
while (!todo.empty()) {
if (m_inconsistent)
return;
expr_pol p = todo.back();
expr * curr = p.first;
bool pol = p.second;
auto [curr, pol] = todo.back();
todo.pop_back();
if (pol && m().is_and(curr)) {
app * t = to_app(curr);