mirror of
https://github.com/Z3Prover/z3
synced 2025-10-11 10:18:06 +00:00
use vectors instead of hash-tables in dimacs serialization to avoid hash-table contention
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
e623f1e9c9
commit
e4d6aa07dc
3 changed files with 26 additions and 14 deletions
|
@ -344,11 +344,11 @@ namespace sat {
|
|||
|
||||
void solver::mk_bin_clause(literal l1, literal l2, bool learned) {
|
||||
if (find_binary_watch(get_wlist(~l1), ~l2)) {
|
||||
assign_core(l1, 0, justification(l2));
|
||||
assign_core(l1, 0, justification(l1));
|
||||
return;
|
||||
}
|
||||
if (find_binary_watch(get_wlist(~l2), ~l1)) {
|
||||
assign_core(l2, 0, justification(l1));
|
||||
assign_core(l2, 0, justification(l2));
|
||||
return;
|
||||
}
|
||||
watched* w0 = find_binary_watch(get_wlist(~l1), l2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue