Skip to content

Commit 43ae0ad

Browse files
committed
Experiment: use Set instead of Array for memorizing conflicts
1 parent a60c694 commit 43ae0ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/solver/sat.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module Shards
3131
@clauses = Array(Clause).new
3232
@table = Hash(String, Literal).new
3333
@variables = Array(String).new
34-
@conflicts = Array(Array(Literal)).new
34+
@conflicts = Set(Array(Literal)).new
3535
end
3636

3737
def add_clause(str : String) : Nil

0 commit comments

Comments
 (0)