Skip to content

Improve performance by avoiding init of index set #844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/solvers/refinement/string_refinement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,22 @@ decision_proceduret::resultt string_refinementt::dec_solve()
found_length.clear();
found_content.clear();

// Initial try without index set
decision_proceduret::resultt res=supert::dec_solve();
if(res==D_SATISFIABLE)
{
if(!check_axioms())
{
debug() << "check_SAT: got SAT but the model is not correct" << eom;
}
else
{
debug() << "check_SAT: the model is correct" << eom;
concretize_lengths();
return D_SATISFIABLE;
}
}

initial_index_set(universal_axioms);
update_index_set(cur);
cur.clear();
Expand Down