Skip to content

Commit

Permalink
Fixing up new arjun usage
Browse files Browse the repository at this point in the history
  • Loading branch information
msoos committed Feb 21, 2023
1 parent 87f0a27 commit 37b40a3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,13 +570,12 @@ int main(int argc, char** argv)
print_final_indep_set(
sampling_vars , orig_sampling_set_size, empty_occ_sampl_vars);
if (with_e) {
const auto ret = arjun->get_fully_simplified_renumbered_cnf(sampling_vars, arjun->nVars(), false);
const auto& cls = std::get<0>(ret).first;
const auto& max_var = std::get<0>(ret).second;
appmc->new_vars(max_var);
for(const auto& cl: cls) appmc->add_clause(cl);
sampling_vars = std::get<1>(ret);
offset_count_by_2_pow = 0;
const auto ret = arjun->get_fully_simplified_renumbered_cnf(
sampling_vars, arjun->nVars(), false);
appmc->new_vars(ret.nvars);
for(const auto& cl: ret.cnf) appmc->add_clause(cl);
sampling_vars = ret.sampling_vars;
offset_count_by_2_pow = ret.empty_occs;
} else {
std::set<uint32_t> sampl_vars_set;
sampl_vars_set.insert(sampling_vars.begin(), sampling_vars.end());
Expand Down

0 comments on commit 37b40a3

Please sign in to comment.