Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify fixed arrays by pushing them on the queue, rather than using…
… simplify_bool_constraint. Handle boolean variables with fixed domain correctly in fixed literal counting. Fixes #671.
- Loading branch information
Showing
3 changed files
with
33 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/*** | ||
!Test | ||
check_against: [] | ||
expected: | ||
- !Result | ||
solution: !Solution | ||
arr: | ||
- true | ||
status: SATISFIED | ||
extra_files: [] | ||
markers: [] | ||
name: '' | ||
options: | ||
all_solutions: false | ||
solvers: | ||
- gecode | ||
type: solve | ||
***/ | ||
|
||
array[1..1] of var bool: arr ::output = let { | ||
array[1..1] of var bool: res; | ||
constraint res[1]; | ||
} in res; | ||
|
||
solve satisfy; |