Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIGNET Pierre
cadbiom
Commits
0640273a
Commit
0640273a
authored
Dec 22, 2019
by
VIGNET Pierre
Browse files
[lib] CLUnfolder: fix bug in the numbering of auxiliary literals (incorrect reset between 2 runs)
parent
ab2abff5
Changes
1
Hide whitespace changes
Inline
Side-by-side
library/cadbiom/models/clause_constraints/mcl/CLUnfolder.py
View file @
0640273a
...
...
@@ -283,7 +283,7 @@ class CLUnfolder(object):
# Must be set to False for inhibitors computations
self
.
__include_aux_clauses
=
True
self
.
__include_aux_clauses_changed
=
False
self
.
__lit_cpt
=
self
.
__
shift_step
+
1
# counter for aux. var. coding
self
.
__lit_cpt
=
self
.
shift_step
_init
+
1
# counter for aux. var. coding
# Same mapping tools for auxiliary variables introduced by properties
# compilation
...
...
@@ -405,6 +405,7 @@ class CLUnfolder(object):
self
.
__steps_before_check
=
0
self
.
__shift_direction
=
None
# FORWARD or BACKWARD
self
.
__locked
=
False
self
.
__lit_cpt
=
self
.
shift_step_init
+
1
def
check_query
(
self
,
query
):
"""Check textual and DIMACS properties of the given query
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment