Skip to content

Commit

Permalink
simplify code + remove unused file
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Dec 11, 2022
1 parent 6b60a3d commit d308b8f
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 61 deletions.
5 changes: 0 additions & 5 deletions src/ast/converters/generic_model_converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ Module Name:
#include "model/model_v2_pp.h"
#include "model/model_evaluator.h"


generic_model_converter::~generic_model_converter() {
}


void generic_model_converter::add(func_decl * d, expr* e) {
VERIFY(e);
VERIFY(d->get_range() == e->get_sort());
Expand Down
2 changes: 0 additions & 2 deletions src/ast/converters/generic_model_converter.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ class generic_model_converter : public model_converter {
public:
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(func_decl * f) { m_entries.push_back(entry(f, nullptr, m, HIDE)); }
Expand Down
1 change: 0 additions & 1 deletion src/smt/tactic/smt_tactic_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ Module Name:
#include "tactic/goal.h"

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);
// syntax sugar for using_params(mk_smt_tactic(), p) where p = (:auto_config, auto_config)
Expand Down
50 changes: 0 additions & 50 deletions src/tactic/filter_model_converter.h

This file was deleted.

4 changes: 1 addition & 3 deletions src/tactic/goal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d308b8f

Please sign in to comment.