mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
simplify code + remove unused file
This commit is contained in:
parent
6b60a3dbed
commit
d308b8f555
|
@ -28,11 +28,6 @@ Notes:
|
||||||
#include "model/model_v2_pp.h"
|
#include "model/model_v2_pp.h"
|
||||||
#include "model/model_evaluator.h"
|
#include "model/model_evaluator.h"
|
||||||
|
|
||||||
|
|
||||||
generic_model_converter::~generic_model_converter() {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void generic_model_converter::add(func_decl * d, expr* e) {
|
void generic_model_converter::add(func_decl * d, expr* e) {
|
||||||
VERIFY(e);
|
VERIFY(e);
|
||||||
VERIFY(d->get_range() == e->get_sort());
|
VERIFY(d->get_range() == e->get_sort());
|
||||||
|
|
|
@ -41,8 +41,6 @@ private:
|
||||||
public:
|
public:
|
||||||
generic_model_converter(ast_manager & m, char const* orig) : m(m), m_orig(orig) {}
|
generic_model_converter(ast_manager & m, char const* orig) : m(m), m_orig(orig) {}
|
||||||
|
|
||||||
~generic_model_converter() override;
|
|
||||||
|
|
||||||
void hide(expr* e) { SASSERT(is_app(e) && to_app(e)->get_num_args() == 0); hide(to_app(e)->get_decl()); }
|
void hide(expr* e) { SASSERT(is_app(e) && to_app(e)->get_num_args() == 0); hide(to_app(e)->get_decl()); }
|
||||||
|
|
||||||
void hide(func_decl * f) { m_entries.push_back(entry(f, nullptr, m, HIDE)); }
|
void hide(func_decl * f) { m_entries.push_back(entry(f, nullptr, m, HIDE)); }
|
||||||
|
|
|
@ -24,7 +24,6 @@ Notes:
|
||||||
#include "tactic/goal.h"
|
#include "tactic/goal.h"
|
||||||
|
|
||||||
class tactic;
|
class tactic;
|
||||||
class filter_model_converter;
|
|
||||||
|
|
||||||
tactic * mk_smt_tactic_core(ast_manager& m, params_ref const & p = params_ref(), symbol const& logic = symbol::null);
|
tactic * mk_smt_tactic_core(ast_manager& m, params_ref const & p = params_ref(), symbol const& logic = symbol::null);
|
||||||
// syntax sugar for using_params(mk_smt_tactic(), p) where p = (:auto_config, auto_config)
|
// syntax sugar for using_params(mk_smt_tactic(), p) where p = (:auto_config, auto_config)
|
||||||
|
|
|
@ -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;
|
|
||||||
|
|
|
@ -159,9 +159,7 @@ void goal::quick_process(bool save_first, expr_ref& f, expr_dependency * d) {
|
||||||
while (!todo.empty()) {
|
while (!todo.empty()) {
|
||||||
if (m_inconsistent)
|
if (m_inconsistent)
|
||||||
return;
|
return;
|
||||||
expr_pol p = todo.back();
|
auto [curr, pol] = todo.back();
|
||||||
expr * curr = p.first;
|
|
||||||
bool pol = p.second;
|
|
||||||
todo.pop_back();
|
todo.pop_back();
|
||||||
if (pol && m().is_and(curr)) {
|
if (pol && m().is_and(curr)) {
|
||||||
app * t = to_app(curr);
|
app * t = to_app(curr);
|
||||||
|
|
Loading…
Reference in a new issue