Skip to content

Commit

Permalink
a few more passing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgurakgun committed Feb 28, 2024
1 parent 599d1bb commit 43b294f
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 37 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
language Essence 1.3

<<<<<<<< HEAD:tests/exhaustive/basic/perms/01_representation/enum/0003_given_permutation_in_param_2_cycle/expected/model-permutation-solution000001.solution
========
letting z be 6
>>>>>>>> main:tests/custom/STARIS_2022/basic/greatest-common-factor/gcf-inputs.solution
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
language Essence 1.3

<<<<<<<< HEAD:tests/exhaustive/basic/perms/01_representation/enum/0004_given_permutation_in_param_2_cycle/expected/model-permutation-solution000001.solution
========
letting b be 5
>>>>>>>> main:tests/custom/STARIS_2022/basic/letting-arithmetic/letting.solution
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
language Essence 1.3

<<<<<<<< HEAD:tests/exhaustive/basic/perms/05_equality/enum/0001_given_permutations_in_param/expected/model-permutation-solution000001.solution
letting b be true
========
letting a be false
>>>>>>>> main:tests/custom/STARIS_2022/basic/partitions/partition-01/apart.solution
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
language Essence 1.3

<<<<<<<< HEAD:tests/exhaustive/basic/perms/05_equality/int/0001_given_permutations_in_param/expected/model-permutation-solution000001.solution
letting b be true
========
letting x be true
>>>>>>>> main:tests/custom/STARIS_2022/basic/tuples/tuple-index/tuple.solution
2 changes: 1 addition & 1 deletion tests/custom/issues/383/stdout.expected
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ Error:
10 | find c : colours such that c = |toSet([ f(u) | u : vertices ])|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Type error:
Expected: colours
Expected: unnamed:colours
Got: int

2 changes: 1 addition & 1 deletion tests/custom/issues/459/stderr.expected
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Error:
In a letting statement: letting s be domain int(S)
Error:
Expected an integer, but got: set of direction
Expected an integer, but got: set of enum:direction
In domain: int(S)
2 changes: 1 addition & 1 deletion tests/exhaustive/autogen/gen26_3/expected/model.eprime
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ branching on
such that
false,
var3_PartitionAsSet_ExplicitR5_ExplicitVarSizeWithMarker_Marker[1] =
sum([toInt(q31 <= var3_PartitionAsSet_ExplicitR5_ExplicitVarSizeWithMarker_Marker[1]) | q31 : int(1..let2)]),
sum([toInt(q29 <= var3_PartitionAsSet_ExplicitR5_ExplicitVarSizeWithMarker_Marker[1]) | q29 : int(1..let2)]),
var3_PartitionAsSet_ExplicitR5_ExplicitVarSizeWithMarker_Marker[1] >= 1,
var3_PartitionAsSet_ExplicitR5_ExplicitVarSizeWithMarker_Marker[1] <= let2,
4096 = var3_PartitionAsSet_ExplicitR5_ExplicitVarSizeWithMarker_Marker[1]
Expand Down
37 changes: 17 additions & 20 deletions tests/exhaustive/issues/182/expected/model.eprime
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ branching on
p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Values]
such that
and([1 =
sum([toInt(q23 <= p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Marker /\
or([q25 <= p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Marker[q23]
sum([toInt(q21 <= p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Marker /\
or([q23 <= p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Marker[q21]
/\
and([p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Values
[q23, q25, q26]
= q1[q26]
| q26 : int(1..2)])
| q25 : int(1..4)]))
| q23 : int(1..4)])
[q21, q23, q24]
= q1[q24]
| q24 : int(1..2)])
| q23 : int(1..4)]))
| q21 : int(1..4)])
| q1 : matrix indexed by [int(1..2)] of int(1..2)]),
and([q28 <= p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Marker ->
p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Marker[q28] >= 1
| q28 : int(1..4)]),
and([q26 <= p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Marker ->
p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Marker[q26] >= 1
| q26 : int(1..4)]),
and([q4 + 1 <= p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Marker ->
flatten([[p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Marker[q4]; int(1)],
flatten([[p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Values
Expand All @@ -51,24 +51,21 @@ such that
p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Marker <= 4,
and([q6 <= p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Marker ->
and([q7 + 1 <= p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Marker[q6] ->
[p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Values[q6, q7, q18]
| q18 : int(1..2)]
<lex
[p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Values[q6, q7 + 1, q19]
| q19 : int(1..2)]
p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Values[q6, q7, ..] <lex
p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Values[q6, q7 + 1, ..]
| q7 : int(1..3)])
| q6 : int(1..4)]),
and([q6 <= p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Marker ->
and([q8 > p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Marker[q6] ->
and([p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Values[q6, q8, q20] = 1
| q20 : int(1..2)])
and([p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Values[q6, q8, q18] = 1
| q18 : int(1..2)])
| q8 : int(1..4)])
| q6 : int(1..4)]),
and([q6 <= p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Marker ->
p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Marker[q6] <= 4
| q6 : int(1..4)]),
4 =
sum([toInt(q21 <= p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Marker) *
catchUndef(p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Marker[q21], 0)
| q21 : int(1..4)])
sum([toInt(q19 <= p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Marker) *
catchUndef(p_PartitionAsSet_ExplicitVarSizeWithMarkerR5_Values_ExplicitVarSizeWithMarker_Marker[q19], 0)
| q19 : int(1..4)])

0 comments on commit 43b294f

Please sign in to comment.