Skip to content

Commit fb99063

Browse files
committed
External SAT back-end: clear clauses after writing DIMACS
There is no need to hold on to clauses. Freeing up memory makes it available to the external SAT process instead.
1 parent 02d698e commit fb99063

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/solvers/sat/external_sat.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ external_satt::resultt external_satt::do_prop_solve()
177177
// create a temporary file
178178
temporary_filet cnf_file("external-sat", ".cnf");
179179
write_cnf_file(cnf_file());
180+
clauses.clear();
180181
auto output = execute_solver(cnf_file());
181182
return parse_result(output);
182183
}

0 commit comments

Comments
 (0)