Skip to content

Commit 146cd32

Browse files
hazblyxxyz
andcommitted
Update nnf/kissat.py
Co-authored-by: Jan Verbeek <jan.verbeek@posteo.nl>
1 parent 0eb8d97 commit 146cd32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nnf/kissat.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ def solve(
6666
if 's SATISFIABLE' not in log:
6767
raise RuntimeError("Something went wrong. Log:\n\n{}".format(log))
6868

69-
log_lines = [line.strip() for line in log.split('\n')]
70-
71-
variable_lines = [line[2:] for line in log_lines if line[:2] == 'v ']
69+
variable_lines = [
70+
line[2:] for line in log.split("\n") if line.startswith("v ")
71+
]
7272
literals = [int(num) for line in variable_lines for num in line.split()]
7373
assert literals[-1] == 0, "Last entry should be 0. Log:\n\n{}".format(log)
7474
literals.pop()

0 commit comments

Comments
 (0)