We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eb8d97 commit 146cd32Copy full SHA for 146cd32
nnf/kissat.py
@@ -66,9 +66,9 @@ def solve(
66
if 's SATISFIABLE' not in log:
67
raise RuntimeError("Something went wrong. Log:\n\n{}".format(log))
68
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 ']
+ variable_lines = [
+ line[2:] for line in log.split("\n") if line.startswith("v ")
+ ]
72
literals = [int(num) for line in variable_lines for num in line.split()]
73
assert literals[-1] == 0, "Last entry should be 0. Log:\n\n{}".format(log)
74
literals.pop()
0 commit comments