Skip to content

Commit

Permalink
ref #395 - solve example 1 and 3, 2 hits an SR bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgurakgun committed Jun 25, 2019
1 parent afd2ef4 commit c7bd519
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/custom/issues/395/m_is_3.param
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
letting m be 3
8 changes: 7 additions & 1 deletion tests/custom/issues/395/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
rm -rf conjure-output

conjure modelling 1.essence ; head -n30 conjure-output/model000001.eprime
conjure modelling 2.essence ; head -n30 conjure-output/model000001.eprime
conjure modelling 3.essence ; head -n30 conjure-output/model000001.eprime
rm -rf conjure-output

conjure solve 1.essence m_is_3.param ; cat *.solution ; rm -f *.solution
# conjure solve 2.essence m_is_3.param ; cat *.solution ; rm -f *.solution
conjure solve 3.essence m_is_3.param ; cat *.solution ; rm -f *.solution

rm -rf conjure-output *.solution
20 changes: 20 additions & 0 deletions tests/custom/issues/395/stdout.expected
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,23 @@ $ "lettings": [],
$ "unnameds": [],
$ "strategyQ": {"PickFirst": []},
$ "strategyA": {"Auto": {"Interactive": []}},
Generating models for 1.essence
Generated models: model000001.eprime
Saved under: conjure-output
Savile Row: model000001.eprime m_is_3.param
Running minion for domain filtering.
Running solver: minion
Copying solution to: 1-m_is_3.solution
language Essence 1.3

letting Cs be sequence(0, 0, 0)
letting Cz be sequence(0, 0, 0)
Using cached models.
Savile Row: model000001.eprime m_is_3.param
Running minion for domain filtering.
Running solver: minion
Copying solution to: 3-m_is_3.solution
language Essence 1.3

letting Cs be sequence(0, 0, 0)
letting Cz be sequence(0, 0, 0)

0 comments on commit c7bd519

Please sign in to comment.