diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,9 @@
 
 ## Unreleased
 
+## 0.2.1 - 2026-11-18
+- Fix: Also package non-source files in test/
+
 ## 0.2 - 2026-11-18
 - Refactored the STS expression language, adding support for lists, sum and product types, several additional primitive types,
   operations on these types, and made the language more strongly typed.
diff --git a/lattest-lib.cabal b/lattest-lib.cabal
--- a/lattest-lib.cabal
+++ b/lattest-lib.cabal
@@ -5,7 +5,7 @@
 -- see: https://github.com/sol/hpack
 
 name:           lattest-lib
-version:        0.2
+version:        0.2.1
 synopsis:       Model-based testing framework
 description:    Welcome to Lattest, the latest attested lattice testing tech!
                 .
@@ -23,6 +23,38 @@
 build-type:     Simple
 extra-source-files:
     CHANGELOG.md
+    test/expected-test-output/composed.pathcondition.txt
+    test/expected-test-output/composed.setree.txt
+    test/expected-test-output/printSTS.txt
+    test/Reference/FreeLatticeSlow.hs
+    test/Test.hs
+    test/Test/Lattest/Adapter/StandardAdapters.hs
+    test/Test/Lattest/Exec/NComplete.hs
+    test/Test/Lattest/Exec/StandardTestControllers.hs
+    test/Test/Lattest/Exec/Testing.hs
+    test/Test/Lattest/Model/BoundedMonad.hs
+    test/Test/Lattest/Model/Internal/MCDCGeneration.hs
+    test/Test/Lattest/Model/StandardAutomata.hs
+    test/Test/Lattest/Model/STSTest.hs
+    test/Test/Lattest/Model/Symbolic/Expr.hs
+    test/Test/Lattest/Model/Symbolic/MCDCSTS.hs
+    test/Test/Lattest/Util/dummy.aut
+    test/Test/Lattest/Util/ModelParsingUtils.hs
+    test/Test/Lattest/Util/STSJSONExamples/assignment_type_mismatch.json
+    test/Test/Lattest/Util/STSJSONExamples/gate_id_dup.json
+    test/Test/Lattest/Util/STSJSONExamples/guard_type_mismatch.json
+    test/Test/Lattest/Util/STSJSONExamples/missing_gates.json
+    test/Test/Lattest/Util/STSJSONExamples/missing_switches.json
+    test/Test/Lattest/Util/STSJSONExamples/nominal_all_types.json
+    test/Test/Lattest/Util/STSJSONExamples/nominal_float_types.json
+    test/Test/Lattest/Util/STSJSONExamples/unknown_type.json
+    test/Test/Lattest/Util/STSJSONExamples/unsupported_assignment_operand.json
+    test/Test/Lattest/Util/STSJSONExamples/unsupported_guard_operand.json
+    test/Test/Lattest/Util/STSJSONParserTest.hs
+    test/Test/Lattest/Util/STSJSONWriterExamples/composed_conjunction_expected.json
+    test/Test/Lattest/Util/STSJSONWriterTest.hs
+    test/Test/Lattest/Util/STSTestUtils.hs
+    test/Test/System/IO/Streams/Synchronized.hs
 
 library
   exposed-modules:
@@ -76,7 +108,7 @@
     , bytestring >=0.12.1 && <0.13
     , cassava >=0.5.3.2 && <0.6
     , constraints-extras >=0.4.0.2 && <0.5
-    , containers >=0.6.8 && <0.8
+    , containers >=0.6.8 && <0.9
     , dependent-map ==0.4.*
     , dependent-sum >=0.7.2 && <0.8
     , either >=5.0.2 && <5.1
@@ -92,7 +124,7 @@
     , some >=1.0.6 && <1.2
     , stm >=2.5.3 && <2.6
     , text >=2.1.1 && <2.2
-    , time >=1.12.2 && <1.15
+    , time >=1.12.2 && <1.17
     , unbounded-delays >=0.1.1 && <0.2
     , vector >=0.13.2.0 && <0.14
   default-language: Haskell2010
@@ -124,7 +156,7 @@
   build-depends:
       HUnit >=1.6.2.0 && <1.7
     , MissingH >=1.6.0 && <1.7
-    , QuickCheck >=2.15.0.1 && <2.18
+    , QuickCheck >=2.15.0.1 && <2.20
     , aeson >=2.2.3.0 && <2.4
     , attoparsec >=0.14.4 && <0.15
     , attoparsec-aeson >=2.2.2 && <2.3
@@ -132,7 +164,7 @@
     , bytestring >=0.12.1 && <0.13
     , cassava >=0.5.3.2 && <0.6
     , constraints-extras >=0.4.0.2 && <0.5
-    , containers >=0.6.8 && <0.8
+    , containers >=0.6.8 && <0.9
     , dependent-map ==0.4.*
     , dependent-sum >=0.7.2 && <0.8
     , directory >=1.3.0.0 && <1.4
@@ -155,7 +187,7 @@
     , tasty >=1.5.3 && <1.6
     , tasty-quickcheck ==0.11.*
     , text >=2.1.1 && <2.2
-    , time >=1.12.2 && <1.15
+    , time >=1.12.2 && <1.17
     , unbounded-delays >=0.1.1 && <0.2
     , utf8-string >=1.0.2 && <1.1
     , vector >=0.13.2.0 && <0.14
diff --git a/test/Test/Lattest/Util/STSJSONExamples/assignment_type_mismatch.json b/test/Test/Lattest/Util/STSJSONExamples/assignment_type_mismatch.json
new file mode 100644
--- /dev/null
+++ b/test/Test/Lattest/Util/STSJSONExamples/assignment_type_mismatch.json
@@ -0,0 +1,45 @@
+{
+    "initial_location": 0,
+    "locationVariables": {
+        "counter": { "type": "integer" },
+        "label":   { "type": "string"  },
+        "active":  { "type": "bool"    }
+    },
+    "parameters": {
+        "counter_p": { "type": "integer" },
+        "label_p": { "type": "string"  }
+    },
+    "initialValuation": {
+        "counter": 1,
+        "active": false
+    },
+    "locations": [0, 1, 2],
+    "inputGates": {
+        "I1": { "shortname": "register", "parameters": ["label_p"] },
+        "I2":   { "shortname": "update",   "parameters": ["counter_p"] }
+    },
+    "outputGates": {
+        "O1":  {                           "parameters": []          },
+        "O2": { "shortname": "confirm",  "parameters": ["counter_p"] }
+    },
+    "guards": {
+        "G1": { "lhs": {"var": "counter"}, "op": "<",  "rhs": {"integer": 5}       },
+        "G2": { "lhs": {"var": "counter"}, "op": ">=", "rhs": {"integer": 5}       },
+        "G3": { "lhs": {"var": "active"},  "op": "==", "rhs": true    },
+        "G4": { "lhs": {"var": "label"},   "op": "==", "rhs": {"var": "label_p"} }
+    },
+    "assignments": {
+        "A1": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": {"var": "counter_p"} } },
+        "A2": { "target": "active",  "expression": false     },
+        "A3": { "target": "active",  "expression": true      },
+        "A4": { "target": "label",   "expression": {"integer": 123} },
+        "A5": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": {"integer": 1} } }       
+    },
+    "switches": {
+        "r_low":    { "init_loc": 0, "gate": "I2", "guard": "G1", "assignments": ["A1"], "end_loc": 1 },
+        "r_high":   { "init_loc": 0, "gate": "I2", "guard": "G2", "assignments": ["A2"], "end_loc": 2 },
+        "r_active": { "init_loc": 1, "gate": "I1", "guard": "G3", "assignments": ["A4"], "end_loc": 0 },
+        "r_name":   { "init_loc": 1, "gate": "I1", "guard": "G4", "assignments": ["A3","A5"], "end_loc": 0 },
+        "r_notify": { "init_loc": 2, "gate": "O1", "assignments": [],       "end_loc": 0 }
+    }
+}
diff --git a/test/Test/Lattest/Util/STSJSONExamples/gate_id_dup.json b/test/Test/Lattest/Util/STSJSONExamples/gate_id_dup.json
new file mode 100644
--- /dev/null
+++ b/test/Test/Lattest/Util/STSJSONExamples/gate_id_dup.json
@@ -0,0 +1,45 @@
+{
+    "initial_location": 0,
+    "locationVariables": {
+        "counter": { "type": "integer" },
+        "label":   { "type": "string"  },
+        "active":  { "type": "bool"    }
+    },
+    "parameters": {
+        "counter_p": { "type": "integer" },
+        "label_p": { "type": "string"  }
+    },
+    "initialValuation": {
+        "counter": 1,
+        "active": false
+    },
+    "locations": [0, 1, 2],
+    "inputGates": {
+        "I1": { "shortname": "register", "parameters": ["label_p"] },
+        "I1": { "shortname": "update", "parameters": ["counter_p"] }
+    },
+    "outputGates": {
+        "O1": { "parameters": [] },
+        "O2": { "shortname": "confirm",  "parameters": ["counter_p"] }
+    },
+    "guards": {
+        "G1": { "lhs": {"var": "counter"}, "op": "<",  "rhs": {"integer": 5}       },
+        "G2": { "lhs": {"var": "counter"}, "op": ">=", "rhs": {"integer": 5}       },
+        "G3": { "lhs": {"var": "active"},  "op": "==", "rhs": true    },
+        "G4": { "lhs": {"var": "label"},   "op": "==", "rhs": {"var": "label_p"} }
+    },
+    "assignments": {
+        "A1": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": {"var": "counter_p"} } },
+        "A2": { "target": "active",  "expression": false     },
+        "A3": { "target": "active",  "expression": true      },
+        "A4": { "target": "label",   "expression": {"var": "label_p"} },
+        "A5": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": {"integer": 1} } }       
+    },
+    "switches": {
+        "r_low":    { "init_loc": 0, "gate": "I2", "guard": "G1", "assignments": ["A1"], "end_loc": 1 },
+        "r_high":   { "init_loc": 0, "gate": "I2", "guard": "G2", "assignments": ["A2"], "end_loc": 2 },
+        "r_active": { "init_loc": 1, "gate": "I1", "guard": "G3", "assignments": ["A4"], "end_loc": 0 },
+        "r_name":   { "init_loc": 1, "gate": "I1", "guard": "G4", "assignments": ["A3","A5"], "end_loc": 0 },
+        "r_notify": { "init_loc": 2, "gate": "O1", "assignments": [],       "end_loc": 0 }
+    }
+}
diff --git a/test/Test/Lattest/Util/STSJSONExamples/guard_type_mismatch.json b/test/Test/Lattest/Util/STSJSONExamples/guard_type_mismatch.json
new file mode 100644
--- /dev/null
+++ b/test/Test/Lattest/Util/STSJSONExamples/guard_type_mismatch.json
@@ -0,0 +1,41 @@
+{
+    "initial_location": 0,
+    "locationVariables": {
+        "counter": { "type": "integer" },
+        "label":   { "type": "string"  },
+        "active":  { "type": "bool"    }
+    },
+    "parameters": {
+        "counter_p": { "type": "integer" },
+        "label_p": { "type": "string"  }
+    },
+    "locations": [0, 1, 2],
+    "inputGates": {
+        "I1": { "shortname": "register", "parameters": ["label_p"] },
+        "I2": { "shortname": "update", "parameters": ["counter_p"] }
+    },
+    "outputGates": {
+        "O1": { "parameters": [] },
+        "O2": { "shortname": "confirm",  "parameters": ["counter_p"] }
+    },
+    "guards": {
+        "G1": { "lhs": {"var": "counter"}, "op": "<",  "rhs": {"integer": 5}       },
+        "G2": { "lhs": {"var": "counter"}, "op": ">=", "rhs": {"integer": 5}       },
+        "G3": { "lhs": {"var": "active"},  "op": "==", "rhs": true    },
+        "G4": { "lhs": {"var": "counter"},   "op": "==", "rhs": "a String is no Char" }
+    },
+    "assignments": {
+        "A1": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": {"var": "counter_p"} } },
+        "A2": { "target": "active",  "expression": false     },
+        "A3": { "target": "active",  "expression": true      },
+        "A4": { "target": "label",   "expression": {"var": "label_p"} },
+        "A5": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": {"integer": 1} } }       
+    },
+    "switches": {
+        "r_low":    { "init_loc": 0, "gate": "I2", "guard": "G1", "assignments": ["A1"], "end_loc": 1 },
+        "r_high":   { "init_loc": 0, "gate": "I2", "guard": "G2", "assignments": ["A2"], "end_loc": 2 },
+        "r_active": { "init_loc": 1, "gate": "I1", "guard": "G3", "assignments": ["A4"], "end_loc": 0 },
+        "r_name":   { "init_loc": 1, "gate": "I1", "guard": "G4", "assignments": ["A3","A5"], "end_loc": 0 },
+        "r_notify": { "init_loc": 2, "gate": "O1", "assignments": [],       "end_loc": 0 }
+    }
+}
diff --git a/test/Test/Lattest/Util/STSJSONExamples/missing_gates.json b/test/Test/Lattest/Util/STSJSONExamples/missing_gates.json
new file mode 100644
--- /dev/null
+++ b/test/Test/Lattest/Util/STSJSONExamples/missing_gates.json
@@ -0,0 +1,43 @@
+{
+    "initial_location": 0,
+    "locationVariables": {
+        "counter": { "type": "integer" },
+        "label":   { "type": "string"  },
+        "active":  { "type": "bool"    }
+    },
+    "parameters": {
+        "counter_p": { "type": "integer" },
+        "label_p": { "type": "string"  }
+    },
+    "initialValuation": {
+        "counter": 1,
+        "active": false
+    },
+    "locations": [0, 1, 2],
+    "inputGates": {
+        "I2": { "shortname": "update", "parameters": ["counter_p"] }
+    },
+    "outputGates": {
+        "O2": { "shortname": "confirm",  "parameters": ["counter_p"] }
+    },
+    "guards": {
+        "G1": { "lhs": {"var": "counter"}, "op": "<",  "rhs": {"integer": 5}       },
+        "G2": { "lhs": {"var": "counter"}, "op": ">=", "rhs": {"integer": 5}       },
+        "G3": { "lhs": {"var": "active"},  "op": "==", "rhs": true    },
+        "G4": { "lhs": {"var": "label"},   "op": "==", "rhs": {"var": "label_p"} }
+    },
+    "assignments": {
+        "A1": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": {"var": "counter_p"} } },
+        "A2": { "target": "active",  "expression": false     },
+        "A3": { "target": "active",  "expression": true      },
+        "A4": { "target": "label",   "expression": {"var": "label_p"} },
+        "A5": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": {"integer": 1} } }       
+    },
+    "switches": {
+        "r_low":    { "init_loc": 0, "gate": "I2", "guard": "G1", "assignments": ["A1"], "end_loc": 1 },
+        "r_high":   { "init_loc": 0, "gate": "I2", "guard": "G2", "assignments": ["A2"], "end_loc": 2 },
+        "r_active": { "init_loc": 1, "gate": "I1", "guard": "G3", "assignments": ["A4"], "end_loc": 0 },
+        "r_name":   { "init_loc": 1, "gate": "I1", "guard": "G4", "assignments": ["A3","A5"], "end_loc": 0 },
+        "r_notify": { "init_loc": 2, "gate": "O1", "assignments": [],       "end_loc": 0 }
+    }
+}
diff --git a/test/Test/Lattest/Util/STSJSONExamples/missing_switches.json b/test/Test/Lattest/Util/STSJSONExamples/missing_switches.json
new file mode 100644
--- /dev/null
+++ b/test/Test/Lattest/Util/STSJSONExamples/missing_switches.json
@@ -0,0 +1,38 @@
+{
+    "initial_location": 0,
+    "locationVariables": {
+        "counter": { "type": "integer" },
+        "label":   { "type": "string"  },
+        "active":  { "type": "bool"    }
+    },
+    "parameters": {
+        "counter_p": { "type": "integer" },
+        "label_p": { "type": "string"  }
+    },
+    "initialValuation": {
+        "counter": 1,
+        "active": false
+    },
+    "locations": [0, 1, 2],
+    "inputGates": {
+        "I1": { "shortname": "register", "parameters": ["label_p"] },
+        "I2": { "shortname": "update", "parameters": ["counter_p"] }
+    },
+    "outputGates": {
+        "O1": { "parameters": [] },
+        "O2": { "shortname": "confirm",  "parameters": ["counter_p"] }
+    },
+    "guards": {
+        "G1": { "lhs": {"var": "counter"}, "op": "<",  "rhs": {"integer": 5}       },
+        "G2": { "lhs": {"var": "counter"}, "op": ">=", "rhs": {"integer": 5}       },
+        "G3": { "lhs": {"var": "active"},  "op": "==", "rhs": true    },
+        "G4": { "lhs": {"var": "label"},   "op": "==", "rhs": {"var": "label_p"} }
+    },
+    "assignments": {
+        "A1": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": {"var": "counter_p"} } },
+        "A2": { "target": "active",  "expression": false     },
+        "A3": { "target": "active",  "expression": true      },
+        "A4": { "target": "label",   "expression": {"var": "label_p"} },
+        "A5": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": "1" } }       
+    }
+}
diff --git a/test/Test/Lattest/Util/STSJSONExamples/nominal_all_types.json b/test/Test/Lattest/Util/STSJSONExamples/nominal_all_types.json
new file mode 100644
--- /dev/null
+++ b/test/Test/Lattest/Util/STSJSONExamples/nominal_all_types.json
@@ -0,0 +1,47 @@
+{
+    "id": "STS1",
+    "initial_location": 0,
+    "locationVariables": {
+        "counter": { "type": "integer" },
+        "label":   { "type": "string"  },
+        "active":  { "type": "bool"    }
+    },
+    "parameters": {
+        "counter_p": { "type": "integer" },
+        "label_p": { "type": "string"  }
+    },
+    "initialValuation": {
+        "counter": 5,
+        "active": false,
+        "selector": "a"
+    },
+    "locations": [0, 1, 2],
+    "inputGates": {
+        "I1": { "shortname": "register", "parameters": ["label_p"] },
+        "I2": { "shortname": "update",   "parameters": ["counter_p"] }
+    },
+    "outputGates": {
+        "O1": { "parameters": [] },
+        "O2": { "shortname": "confirm",  "parameters": ["counter_p"] }
+    },
+    "guards": {
+        "G1": { "lhs": {"var": "counter"}, "op": "<",  "rhs": {"integer": 5}       },
+        "G2": { "lhs": {"var": "counter"}, "op": ">=", "rhs": {"integer": 4}       },
+        "G3": { "lhs": {"var": "active"},  "op": "==", "rhs": true    },
+        "G4": { "lhs": {"var": "label"},   "op": "==", "rhs": {"var": "label_p"} }
+    },
+    "assignments": {
+        "A1": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": {"var": "counter_p"} } },
+        "A2": { "target": "active",  "expression": false     },
+        "A3": { "target": "active",  "expression": true      },
+        "A4": { "target": "label",   "expression": {"var": "label_p"} },
+        "A5": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": {"integer": 1} } }
+    },
+    "switches": {
+        "r_low":    { "init_loc": 0, "gate": "I2", "guard": "G1", "assignments": ["A1"], "end_loc": 1 },
+        "r_high":   { "init_loc": 0, "gate": "I2", "guard": "G2", "assignments": ["A2"], "end_loc": 2 },
+        "r_active": { "init_loc": 1, "gate": "I1", "guard": "G3", "assignments": ["A4"], "end_loc": 0 },
+        "r_name":   { "init_loc": 1, "gate": "I1", "guard": "G4", "assignments": ["A3","A5"], "end_loc": 0 },
+        "r_notify": { "init_loc": 2, "gate": "O1", "assignments": [], "end_loc": 0 }
+    }
+}
diff --git a/test/Test/Lattest/Util/STSJSONExamples/nominal_float_types.json b/test/Test/Lattest/Util/STSJSONExamples/nominal_float_types.json
new file mode 100644
--- /dev/null
+++ b/test/Test/Lattest/Util/STSJSONExamples/nominal_float_types.json
@@ -0,0 +1,45 @@
+{
+    "initial_location": 0,
+    "locationVariables": {
+        "counter": { "type": "float"  },
+        "label":   { "type": "string" },
+        "active":  { "type": "bool"   }
+    },
+    "parameters": {
+        "counter_p": { "type": "float"  },
+        "label_p":   { "type": "string" }
+    },
+    "initialValuation": {
+        "counter": 0.0,
+        "active": false
+    },
+    "locations": [0, 1, 2],
+    "inputGates": {
+        "I1": { "shortname": "register", "parameters": ["label_p"]   },
+        "I2": { "shortname": "update",   "parameters": ["counter_p"] }
+    },
+    "outputGates": {
+        "O1": { "parameters": [] },
+        "O2": { "shortname": "confirm",  "parameters": ["counter_p"] }
+    },
+    "guards": {
+        "G1": { "lhs": {"var": "counter"}, "op": "<",  "rhs": {"float": 5.5}    },
+        "G2": { "lhs": {"var": "counter"}, "op": ">=", "rhs": {"float": 5.5}    },
+        "G3": { "lhs": {"var": "active"},  "op": "==", "rhs": true   },
+        "G4": { "lhs": {"var": "label"},   "op": "==", "rhs": {"var": "label_p"} }
+    },
+    "assignments": {
+        "A1": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": {"var": "counter_p"} } },
+        "A2": { "target": "active",  "expression": false     },
+        "A3": { "target": "active",  "expression": true      },
+        "A4": { "target": "label",   "expression": {"var": "label_p"} },
+        "A5": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": {"float": 1.0} } }
+    },
+    "switches": {
+        "r_low":    { "init_loc": 0, "gate": "I2", "guard": "G1", "assignments": ["A1"], "end_loc": 1 },
+        "r_high":   { "init_loc": 0, "gate": "I2", "guard": "G2", "assignments": ["A2"], "end_loc": 2 },
+        "r_active": { "init_loc": 1, "gate": "I1", "guard": "G3", "assignments": ["A4"], "end_loc": 0 },
+        "r_name":   { "init_loc": 1, "gate": "I1", "guard": "G4", "assignments": ["A3","A5"], "end_loc": 0 },
+        "r_notify": { "init_loc": 2, "gate": "O1", "assignments": [], "end_loc": 0 }
+    }
+}
diff --git a/test/Test/Lattest/Util/STSJSONExamples/unknown_type.json b/test/Test/Lattest/Util/STSJSONExamples/unknown_type.json
new file mode 100644
--- /dev/null
+++ b/test/Test/Lattest/Util/STSJSONExamples/unknown_type.json
@@ -0,0 +1,45 @@
+{
+    "initial_location": 0,
+    "locationVariables": {
+        "counter": { "type": "integer" },
+        "label":   { "type": "dummyType"  },
+        "active":  { "type": "bool"    }
+    },
+    "parameters": {
+        "counter_p": { "type": "integer" },
+        "label_p": { "type": "string"  }
+    },
+    "initialValuation": {
+        "counter": 1,
+        "active": false
+    },
+    "locations": [0, 1, 2],
+    "inputGates": {
+        "I1": { "shortname": "register", "parameters": ["label_p"] },
+        "I2": { "shortname": "update", "parameters": ["counter_p"] }
+    },
+    "outputGates": {
+        "O1": { "parameters": [] },
+        "O2": { "shortname": "confirm",  "parameters": ["counter_p"] }
+    },
+    "guards": {
+        "G1": { "lhs": {"var": "counter"}, "op": "<",  "rhs": {"integer": 5}       },
+        "G2": { "lhs": {"var": "counter"}, "op": ">=", "rhs": {"integer": 5}       },
+        "G3": { "lhs": {"var": "active"},  "op": "==", "rhs": true    },
+        "G4": { "lhs": {"var": "label"},   "op": "==", "rhs": {"var": "label_p"} }
+    },
+    "assignments": {
+        "A1": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": {"var": "counter_p"} } },
+        "A2": { "target": "active",  "expression": false     },
+        "A3": { "target": "active",  "expression": true      },
+        "A4": { "target": "label",   "expression": {"var": "label_p"} },
+        "A5": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": {"integer": 1} } }       
+    },
+    "switches": {
+        "r_low":    { "init_loc": 0, "gate": "I2", "guard": "G1", "assignments": ["A1"], "end_loc": 1 },
+        "r_high":   { "init_loc": 0, "gate": "I2", "guard": "G2", "assignments": ["A2"], "end_loc": 2 },
+        "r_active": { "init_loc": 1, "gate": "I1", "guard": "G3", "assignments": ["A4"], "end_loc": 0 },
+        "r_name":   { "init_loc": 1, "gate": "I1", "guard": "G4", "assignments": ["A3","A5"], "end_loc": 0 },
+        "r_notify": { "init_loc": 2, "gate": "O1", "assignments": [],       "end_loc": 0 }
+    }
+}
diff --git a/test/Test/Lattest/Util/STSJSONExamples/unsupported_assignment_operand.json b/test/Test/Lattest/Util/STSJSONExamples/unsupported_assignment_operand.json
new file mode 100644
--- /dev/null
+++ b/test/Test/Lattest/Util/STSJSONExamples/unsupported_assignment_operand.json
@@ -0,0 +1,45 @@
+{
+    "initial_location": 0,
+    "locationVariables": {
+        "counter": { "type": "integer" },
+        "label":   { "type": "string"  },
+        "active":  { "type": "bool"    }
+    },
+    "parameters": {
+        "counter_p": { "type": "integer" },
+        "label_p": { "type": "string"  }
+    },
+    "initialValuation": {
+        "counter": 1,
+        "active": false
+    },
+    "locations": [0, 1, 2],
+    "inputGates": {
+        "I1": { "shortname": "register", "parameters": ["label_p"] },
+        "I2": { "shortname": "update", "parameters": ["counter_p"] }
+    },
+    "outputGates": {
+        "O1": { "parameters": [] },
+        "O2": { "shortname": "confirm",  "parameters": ["counter_p"] }
+    },
+    "guards": {
+        "G1": { "lhs": {"var": "counter"}, "op": "<",  "rhs": {"integer": 5}       },
+        "G2": { "lhs": {"var": "counter"}, "op": ">=", "rhs": {"integer": 5}       },
+        "G3": { "lhs": {"var": "active"},  "op": "==", "rhs": true    },
+        "G4": { "lhs": {"var": "label"},   "op": "==", "rhs": {"var": "label_p"} }
+    },
+    "assignments": {
+        "A1": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "???", "rhs": {"var": "counter_p"} } },
+        "A2": { "target": "active",  "expression": false     },
+        "A3": { "target": "active",  "expression": true      },
+        "A4": { "target": "label",   "expression": {"var": "label_p"} },
+        "A5": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": {"integer": 1} } }       
+    },
+    "switches": {
+        "r_low":    { "init_loc": 0, "gate": "I2", "guard": "G1", "assignments": ["A1"], "end_loc": 1 },
+        "r_high":   { "init_loc": 0, "gate": "I2", "guard": "G2", "assignments": ["A2"], "end_loc": 2 },
+        "r_active": { "init_loc": 1, "gate": "I1", "guard": "G3", "assignments": ["A4"], "end_loc": 0 },
+        "r_name":   { "init_loc": 1, "gate": "I1", "guard": "G4", "assignments": ["A3","A5"], "end_loc": 0 },
+        "r_notify": { "init_loc": 2, "gate": "O1", "assignments": [],       "end_loc": 0 }
+    }
+}
diff --git a/test/Test/Lattest/Util/STSJSONExamples/unsupported_guard_operand.json b/test/Test/Lattest/Util/STSJSONExamples/unsupported_guard_operand.json
new file mode 100644
--- /dev/null
+++ b/test/Test/Lattest/Util/STSJSONExamples/unsupported_guard_operand.json
@@ -0,0 +1,45 @@
+{
+    "initial_location": 0,
+    "locationVariables": {
+        "counter": { "type": "integer" },
+        "label":   { "type": "string"  },
+        "active":  { "type": "bool"    }
+    },
+    "parameters": {
+        "counter_p": { "type": "integer" },
+        "label_p": { "type": "string"  }
+    },
+    "initialValuation": {
+        "counter": 1,
+        "active": false
+    },
+    "locations": [0, 1, 2],
+    "inputGates": {
+        "I1": { "shortname": "register", "parameters": ["label_p"] },
+        "I2": { "shortname": "update", "parameters": ["counter_p"] }
+    },
+    "outputGates": {
+        "O1": { "parameters": [] },
+        "O2": { "shortname": "confirm",  "parameters": ["counter_p"] }
+    },
+    "guards": {
+        "G1": { "lhs": {"var": "counter"}, "op": "<",  "rhs": {"integer": 5}       },
+        "G2": { "lhs": {"var": "counter"}, "op": ">=", "rhs": {"integer": 5}       },
+        "G3": { "lhs": {"var": "active"},  "op": "?!?", "rhs": true    },
+        "G4": { "lhs": {"var": "label"},   "op": "==", "rhs": {"var": "label_p"} }
+    },
+    "assignments": {
+        "A1": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": {"var": "counter_p"} } },
+        "A2": { "target": "active",  "expression": false     },
+        "A3": { "target": "active",  "expression": true      },
+        "A4": { "target": "label",   "expression": {"var": "label_p"} },
+        "A5": { "target": "counter", "expression": { "lhs": {"var": "counter"}, "op": "+", "rhs": "1" } }       
+    },
+    "switches": {
+        "r_low":    { "init_loc": 0, "gate": "I2", "guard": "G1", "assignments": ["A1"], "end_loc": 1 },
+        "r_high":   { "init_loc": 0, "gate": "I2", "guard": "G2", "assignments": ["A2"], "end_loc": 2 },
+        "r_active": { "init_loc": 1, "gate": "I1", "guard": "G3", "assignments": ["A4"], "end_loc": 0 },
+        "r_name":   { "init_loc": 1, "gate": "I1", "guard": "G4", "assignments": ["A3","A5"], "end_loc": 0 },
+        "r_notify": { "init_loc": 2, "gate": "O1", "assignments": [],       "end_loc": 0 }
+    }
+}
diff --git a/test/Test/Lattest/Util/STSJSONWriterExamples/composed_conjunction_expected.json b/test/Test/Lattest/Util/STSJSONWriterExamples/composed_conjunction_expected.json
new file mode 100644
--- /dev/null
+++ b/test/Test/Lattest/Util/STSJSONWriterExamples/composed_conjunction_expected.json
@@ -0,0 +1,164 @@
+{
+    "id": "composed",
+    "initialValuation": {
+        "items": [
+            1,
+            2,
+            3
+        ],
+        "pair": [
+            3,
+            "hi"
+        ],
+        "x": 5,
+        "y": true
+    },
+    "initial_location": [
+        "(\"A\",0)",
+        "(\"B\",0)"
+    ],
+    "locations": [
+        "(\"A\",0)",
+        "(\"A\",1)",
+        "(\"A\",2)",
+        "(\"A\",3)",
+        "(\"B\",0)",
+        "(\"B\",1)",
+        "(\"B\",2)",
+        "(\"B\",3)"
+    ],
+    "switches": [
+        {
+            "assignments": [
+                "Pair",
+                "Dup",
+                "Flip"
+            ],
+            "end_loc": "(\"A\",1)",
+            "gate": "?\"step\" [p:Int]",
+            "guard": [
+                "YFalse"
+            ],
+            "init_loc": "(\"A\",0)"
+        },
+        {
+            "assignments": [
+                "Dup"
+            ],
+            "end_loc": "(\"A\",3)",
+            "gate": "?\"stepA\" []",
+            "guard": [
+                "True"
+            ],
+            "init_loc": "(\"A\",0)"
+        },
+        {
+            "assignments": [],
+            "end_loc": "(\"A\",2)",
+            "gate": "!\"outA\" []",
+            "guard": [
+                "True"
+            ],
+            "init_loc": "(\"A\",1)"
+        },
+        [
+            {
+                "assignments": [
+                    "Flip"
+                ],
+                "end_loc": "(\"A\",0)",
+                "gate": "!\"outC\" [p:Int]",
+                "guard": [
+                    "GA"
+                ],
+                "init_loc": "(\"A\",2)"
+            },
+            {
+                "assignments": [
+                    "Flip"
+                ],
+                "end_loc": "(\"B\",0)",
+                "gate": "!\"outC\" [p:Int]",
+                "guard": [
+                    "GA"
+                ],
+                "init_loc": "(\"A\",2)"
+            }
+        ],
+        {
+            "assignments": [],
+            "end_loc": "(\"A\",2)",
+            "gate": "!\"outA\" []",
+            "guard": [
+                "True"
+            ],
+            "init_loc": "(\"A\",3)"
+        },
+        {
+            "assignments": [
+                "Dup",
+                "Flip"
+            ],
+            "end_loc": "(\"B\",1)",
+            "gate": "?\"step\" [p:Int]",
+            "guard": [
+                "YTrue"
+            ],
+            "init_loc": "(\"B\",0)"
+        },
+        {
+            "assignments": [
+                "Dup"
+            ],
+            "end_loc": "(\"B\",3)",
+            "gate": "?\"stepB\" []",
+            "guard": [
+                "True"
+            ],
+            "init_loc": "(\"B\",0)"
+        },
+        {
+            "assignments": [],
+            "end_loc": "(\"B\",2)",
+            "gate": "!\"outA\" []",
+            "guard": [
+                "True"
+            ],
+            "init_loc": "(\"B\",1)"
+        },
+        [
+            {
+                "assignments": [
+                    "Flip"
+                ],
+                "end_loc": "(\"A\",0)",
+                "gate": "!\"outC\" [p:Int]",
+                "guard": [
+                    "GB"
+                ],
+                "init_loc": "(\"B\",2)"
+            },
+            {
+                "assignments": [
+                    "Flip"
+                ],
+                "end_loc": "(\"B\",0)",
+                "gate": "!\"outC\" [p:Int]",
+                "guard": [
+                    "GB"
+                ],
+                "init_loc": "(\"B\",2)"
+            }
+        ],
+        {
+            "assignments": [],
+            "end_loc": "(\"B\",2)",
+            "gate": "!\"outA\" []",
+            "guard": [
+                "True"
+            ],
+            "init_loc": "(\"B\",3)"
+        }
+    ],
+    "enum_translation": []
+}
diff --git a/test/Test/Lattest/Util/dummy.aut b/test/Test/Lattest/Util/dummy.aut
new file mode 100644
--- /dev/null
+++ b/test/Test/Lattest/Util/dummy.aut
@@ -0,0 +1,6 @@
+des (Idle,4,4)
+(Idle, coin_i, CoinInserted)
+(CoinInserted, select_coffee_i, Brewing)
+(Brewing, ready_o, Ready)
+(Brewing, dummy_transition_not_parsed, Ready),
+(Ready, take_cup_i, Idle)
diff --git a/test/expected-test-output/composed.pathcondition.txt b/test/expected-test-output/composed.pathcondition.txt
new file mode 100644
--- /dev/null
+++ b/test/expected-test-output/composed.pathcondition.txt
@@ -0,0 +1,1037 @@
+
+=== [] ===
+specified: True
+allowed:   True
+
+=== [?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int]] ===
+specified: -p ≥ 0
+allowed:   True
+
+=== [?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int]] ===
+specified: True
+allowed:   True
+
+=== [!"esp" [p:Int,milk:Bool]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [?"a" [],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: -p ≥ 0
+allowed:   (¬((-p ≥ 0)∧¬milk_1))∧(¬((-p ≥ 0)∧(¬(p_1 = p))))
+
+=== [?"b" [p:Int],!"tea" [p:Int]] ===
+specified: -p ≥ 0
+allowed:   ¬(-p ≥ 0)
+
+=== [?"take" [],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int],?"a" []] ===
+specified: p+-2 ≥ 0
+allowed:   True
+
+=== [?"water" [p:Int],?"b" [p:Int]] ===
+specified: p+-p_1 ≥ 0
+allowed:   True
+
+=== [?"water" [p:Int],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int],?"water" [p:Int]] ===
+specified: ¬(p+-10 ≥ 0)
+allowed:   True
+
+=== [?"water" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: True
+allowed:   False
+
+=== [?"water" [p:Int],!"tea" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"a" []] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"b" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"take" []] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"water" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],!"esp" [p:Int,milk:Bool]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],!"tea" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"a" []] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"b" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"take" []] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"water" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],!"tea" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [?"a" [],?"a" [],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"a" [],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"a" [],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"a" [],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"a" [],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"a" [],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"b" [p:Int],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"b" [p:Int],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"b" [p:Int],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"b" [p:Int],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"b" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"b" [p:Int],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"take" [],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"take" [],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"take" [],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"take" [],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"take" [],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"take" [],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"water" [p:Int],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"water" [p:Int],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"water" [p:Int],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"water" [p:Int],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"water" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],?"water" [p:Int],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],!"esp" [p:Int,milk:Bool],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],!"esp" [p:Int,milk:Bool],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],!"esp" [p:Int,milk:Bool],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],!"esp" [p:Int,milk:Bool],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],!"esp" [p:Int,milk:Bool],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],!"esp" [p:Int,milk:Bool],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],!"tea" [p:Int],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],!"tea" [p:Int],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],!"tea" [p:Int],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],!"tea" [p:Int],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],!"tea" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"a" [],!"tea" [p:Int],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"a" [],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"a" [],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"a" [],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"a" [],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"a" [],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"a" [],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"b" [p:Int],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"b" [p:Int],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"b" [p:Int],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"b" [p:Int],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"b" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"b" [p:Int],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"take" [],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"take" [],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"take" [],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"take" [],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"take" [],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"take" [],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"water" [p:Int],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"water" [p:Int],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"water" [p:Int],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"water" [p:Int],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"water" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],?"water" [p:Int],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"b" [p:Int],!"esp" [p:Int,milk:Bool],?"a" []] ===
+specified: ¬((¬((-p ≥ 0)∧¬milk_1))∧(¬((-p ≥ 0)∧(¬(p_1 = p)))))
+allowed:   (¬((-p ≥ 0)∧¬milk_1))∧(¬((-p ≥ 0)∧(¬(p_1 = p))))
+
+=== [?"b" [p:Int],!"esp" [p:Int,milk:Bool],?"b" [p:Int]] ===
+specified: ¬((¬((-p ≥ 0)∧¬milk_1))∧(¬((-p ≥ 0)∧(¬(p_1 = p)))))
+allowed:   (¬((-p ≥ 0)∧¬milk_1))∧(¬((-p ≥ 0)∧(¬(p_1 = p))))
+
+=== [?"b" [p:Int],!"esp" [p:Int,milk:Bool],?"take" []] ===
+specified: ¬((¬(-p ≥ 0))∧(¬((-p ≥ 0)∧¬milk_1))∧(¬((-p ≥ 0)∧(¬(p_1 = p)))))
+allowed:   (¬((-p ≥ 0)∧¬milk_1))∧(¬((-p ≥ 0)∧(¬(p_1 = p))))
+
+=== [?"b" [p:Int],!"esp" [p:Int,milk:Bool],?"water" [p:Int]] ===
+specified: ¬((¬((-p ≥ 0)∧¬milk_1))∧(¬((-p ≥ 0)∧(¬(p_1 = p)))))
+allowed:   (¬((-p ≥ 0)∧¬milk_1))∧(¬((-p ≥ 0)∧(¬(p_1 = p))))
+
+=== [?"b" [p:Int],!"esp" [p:Int,milk:Bool],!"esp" [p:Int,milk:Bool]] ===
+specified: ¬((¬(-p ≥ 0))∧(¬((-p ≥ 0)∧¬milk_1))∧(¬((-p ≥ 0)∧(¬(p_1 = p)))))
+allowed:   (¬(-p ≥ 0))∧(¬((-p ≥ 0)∧¬milk_1))∧(¬((-p ≥ 0)∧(¬(p_1 = p))))
+
+=== [?"b" [p:Int],!"esp" [p:Int,milk:Bool],!"tea" [p:Int]] ===
+specified: ¬((¬(-p ≥ 0))∧(¬((-p ≥ 0)∧¬milk_1))∧(¬((-p ≥ 0)∧(¬(p_1 = p)))))
+allowed:   (¬(-p ≥ 0))∧(¬((-p ≥ 0)∧¬milk_1))∧(¬((-p ≥ 0)∧(¬(p_1 = p))))
+
+=== [?"b" [p:Int],!"tea" [p:Int],?"a" []] ===
+specified: -p ≥ 0
+allowed:   ¬(-p ≥ 0)
+
+=== [?"b" [p:Int],!"tea" [p:Int],?"b" [p:Int]] ===
+specified: -p ≥ 0
+allowed:   ¬(-p ≥ 0)
+
+=== [?"b" [p:Int],!"tea" [p:Int],?"take" []] ===
+specified: -p ≥ 0
+allowed:   ¬(-p ≥ 0)
+
+=== [?"b" [p:Int],!"tea" [p:Int],?"water" [p:Int]] ===
+specified: -p ≥ 0
+allowed:   ¬(-p ≥ 0)
+
+=== [?"b" [p:Int],!"tea" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: -p ≥ 0
+allowed:   ¬(-p ≥ 0)
+
+=== [?"b" [p:Int],!"tea" [p:Int],!"tea" [p:Int]] ===
+specified: -p ≥ 0
+allowed:   ¬(-p ≥ 0)
+
+=== [?"take" [],?"a" [],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"a" [],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"a" [],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"a" [],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"a" [],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"a" [],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"b" [p:Int],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"b" [p:Int],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"b" [p:Int],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"b" [p:Int],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"b" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"b" [p:Int],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"take" [],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"take" [],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"take" [],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"take" [],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"take" [],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"take" [],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"water" [p:Int],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"water" [p:Int],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"water" [p:Int],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"water" [p:Int],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"water" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],?"water" [p:Int],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],!"esp" [p:Int,milk:Bool],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],!"esp" [p:Int,milk:Bool],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],!"esp" [p:Int,milk:Bool],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],!"esp" [p:Int,milk:Bool],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],!"esp" [p:Int,milk:Bool],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],!"esp" [p:Int,milk:Bool],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],!"tea" [p:Int],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],!"tea" [p:Int],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],!"tea" [p:Int],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],!"tea" [p:Int],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],!"tea" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"take" [],!"tea" [p:Int],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int],?"a" [],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int],?"a" [],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int],?"a" [],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int],?"a" [],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int],?"a" [],!"esp" [p:Int,milk:Bool]] ===
+specified: p+-2 ≥ 0
+allowed:   ¬(p+-2 ≥ 0)
+
+=== [?"water" [p:Int],?"a" [],!"tea" [p:Int]] ===
+specified: p+-2 ≥ 0
+allowed:   ¬((p+-2 ≥ 0)∧(¬(p_2 = 2)))
+
+=== [?"water" [p:Int],?"b" [p:Int],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int],?"b" [p:Int],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int],?"b" [p:Int],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int],?"b" [p:Int],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int],?"b" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: p+-p_1 ≥ 0
+allowed:   (¬((p+-p_1 ≥ 0)∧¬milk_2))∧(¬((p+-p_1 ≥ 0)∧(¬(p_2 = p_1))))
+
+=== [?"water" [p:Int],?"b" [p:Int],!"tea" [p:Int]] ===
+specified: p+-p_1 ≥ 0
+allowed:   ¬(p+-p_1 ≥ 0)
+
+=== [?"water" [p:Int],?"take" [],?"a" []] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int],?"take" [],?"b" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int],?"take" [],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int],?"take" [],?"water" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int],?"take" [],!"esp" [p:Int,milk:Bool]] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int],?"take" [],!"tea" [p:Int]] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int],?"water" [p:Int],?"a" []] ===
+specified: (p+p_1+-2 ≥ 0)∧(¬(p+-10 ≥ 0))
+allowed:   True
+
+=== [?"water" [p:Int],?"water" [p:Int],?"b" [p:Int]] ===
+specified: (p+p_1+-p_2 ≥ 0)∧(¬(p+-10 ≥ 0))
+allowed:   True
+
+=== [?"water" [p:Int],?"water" [p:Int],?"take" []] ===
+specified: False
+allowed:   True
+
+=== [?"water" [p:Int],?"water" [p:Int],?"water" [p:Int]] ===
+specified: (¬(p+p_1+-10 ≥ 0))∧(¬(p+-10 ≥ 0))
+allowed:   True
+
+=== [?"water" [p:Int],?"water" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: ¬(p+-10 ≥ 0)
+allowed:   p+-10 ≥ 0
+
+=== [?"water" [p:Int],?"water" [p:Int],!"tea" [p:Int]] ===
+specified: ¬(p+-10 ≥ 0)
+allowed:   p+-10 ≥ 0
+
+=== [?"water" [p:Int],!"esp" [p:Int,milk:Bool],?"a" []] ===
+specified: True
+allowed:   False
+
+=== [?"water" [p:Int],!"esp" [p:Int,milk:Bool],?"b" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [?"water" [p:Int],!"esp" [p:Int,milk:Bool],?"take" []] ===
+specified: True
+allowed:   False
+
+=== [?"water" [p:Int],!"esp" [p:Int,milk:Bool],?"water" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [?"water" [p:Int],!"esp" [p:Int,milk:Bool],!"esp" [p:Int,milk:Bool]] ===
+specified: True
+allowed:   False
+
+=== [?"water" [p:Int],!"esp" [p:Int,milk:Bool],!"tea" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [?"water" [p:Int],!"tea" [p:Int],?"a" []] ===
+specified: True
+allowed:   False
+
+=== [?"water" [p:Int],!"tea" [p:Int],?"b" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [?"water" [p:Int],!"tea" [p:Int],?"take" []] ===
+specified: True
+allowed:   False
+
+=== [?"water" [p:Int],!"tea" [p:Int],?"water" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [?"water" [p:Int],!"tea" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: True
+allowed:   False
+
+=== [?"water" [p:Int],!"tea" [p:Int],!"tea" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"a" [],?"a" []] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"a" [],?"b" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"a" [],?"take" []] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"a" [],?"water" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"a" [],!"esp" [p:Int,milk:Bool]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"a" [],!"tea" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"b" [p:Int],?"a" []] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"b" [p:Int],?"b" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"b" [p:Int],?"take" []] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"b" [p:Int],?"water" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"b" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"b" [p:Int],!"tea" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"take" [],?"a" []] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"take" [],?"b" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"take" [],?"take" []] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"take" [],?"water" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"take" [],!"esp" [p:Int,milk:Bool]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"take" [],!"tea" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"water" [p:Int],?"a" []] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"water" [p:Int],?"b" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"water" [p:Int],?"take" []] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"water" [p:Int],?"water" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"water" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],?"water" [p:Int],!"tea" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],!"esp" [p:Int,milk:Bool],?"a" []] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],!"esp" [p:Int,milk:Bool],?"b" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],!"esp" [p:Int,milk:Bool],?"take" []] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],!"esp" [p:Int,milk:Bool],?"water" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],!"esp" [p:Int,milk:Bool],!"esp" [p:Int,milk:Bool]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],!"esp" [p:Int,milk:Bool],!"tea" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],!"tea" [p:Int],?"a" []] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],!"tea" [p:Int],?"b" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],!"tea" [p:Int],?"take" []] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],!"tea" [p:Int],?"water" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],!"tea" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: True
+allowed:   False
+
+=== [!"esp" [p:Int,milk:Bool],!"tea" [p:Int],!"tea" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"a" [],?"a" []] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"a" [],?"b" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"a" [],?"take" []] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"a" [],?"water" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"a" [],!"esp" [p:Int,milk:Bool]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"a" [],!"tea" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"b" [p:Int],?"a" []] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"b" [p:Int],?"b" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"b" [p:Int],?"take" []] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"b" [p:Int],?"water" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"b" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"b" [p:Int],!"tea" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"take" [],?"a" []] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"take" [],?"b" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"take" [],?"take" []] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"take" [],?"water" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"take" [],!"esp" [p:Int,milk:Bool]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"take" [],!"tea" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"water" [p:Int],?"a" []] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"water" [p:Int],?"b" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"water" [p:Int],?"take" []] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"water" [p:Int],?"water" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"water" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],?"water" [p:Int],!"tea" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],!"esp" [p:Int,milk:Bool],?"a" []] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],!"esp" [p:Int,milk:Bool],?"b" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],!"esp" [p:Int,milk:Bool],?"take" []] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],!"esp" [p:Int,milk:Bool],?"water" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],!"esp" [p:Int,milk:Bool],!"esp" [p:Int,milk:Bool]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],!"esp" [p:Int,milk:Bool],!"tea" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],!"tea" [p:Int],?"a" []] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],!"tea" [p:Int],?"b" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],!"tea" [p:Int],?"take" []] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],!"tea" [p:Int],?"water" [p:Int]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],!"tea" [p:Int],!"esp" [p:Int,milk:Bool]] ===
+specified: True
+allowed:   False
+
+=== [!"tea" [p:Int],!"tea" [p:Int],!"tea" [p:Int]] ===
+specified: True
+allowed:   False
+
diff --git a/test/expected-test-output/composed.setree.txt b/test/expected-test-output/composed.setree.txt
new file mode 100644
--- /dev/null
+++ b/test/expected-test-output/composed.setree.txt
@@ -0,0 +1,557 @@
+
+configuration:
+  ∧ (4 conjuncts):
+    conjunct 1:
+      step ?"a" [], branches:
+        if False then
+            step ?"a" [], branches:
+              ⊤ (underspecified)
+            step ?"b" [p:Int], branches:
+              ⊤ (underspecified)
+            step ?"take" [], branches:
+              ⊤ (underspecified)
+            step ?"water" [p:Int], branches:
+              ⊤ (underspecified)
+            step !"esp" [p:Int,milk:Bool], branches:
+              ⊥ (forbidden)
+            step !"tea" [p:Int], branches:
+              if p_1 = 2 then
+                  step ?"a" [], branches:
+                    ⊤ (underspecified)
+                  step ?"b" [p:Int], branches:
+                    ⊤ (underspecified)
+                  step ?"take" [], branches:
+                    ⊤ (underspecified)
+                  step ?"water" [p:Int], branches:
+                    ⊤ (underspecified)
+                  step !"esp" [p:Int,milk:Bool], branches:
+                    ⊤ (underspecified)
+                  step !"tea" [p:Int], branches:
+                    ⊤ (underspecified)
+              else:
+                  ⊥ (forbidden)
+        else:
+            ⊤ (underspecified)
+      step ?"b" [p:Int], branches:
+        ⊤ (underspecified)
+      step ?"take" [], branches:
+        ⊤ (underspecified)
+      step ?"water" [p:Int], branches:
+        ⊤ (underspecified)
+      step !"esp" [p:Int,milk:Bool], branches:
+        ⊥ (forbidden)
+      step !"tea" [p:Int], branches:
+        ⊥ (forbidden)
+    conjunct 2:
+      step ?"a" [], branches:
+        ⊤ (underspecified)
+      step ?"b" [p:Int], branches:
+        if -p ≥ 0 then
+            step ?"a" [], branches:
+              ⊤ (underspecified)
+            step ?"b" [p:Int], branches:
+              ⊤ (underspecified)
+            step ?"take" [], branches:
+              ⊤ (underspecified)
+            step ?"water" [p:Int], branches:
+              ⊤ (underspecified)
+            step !"esp" [p:Int,milk:Bool], branches:
+              if p_1 = p then
+                  step ?"a" [], branches:
+                    ⊤ (underspecified)
+                  step ?"b" [p:Int], branches:
+                    ⊤ (underspecified)
+                  step ?"take" [], branches:
+                    ⊤ (underspecified)
+                  step ?"water" [p:Int], branches:
+                    ⊤ (underspecified)
+                  step !"esp" [p:Int,milk:Bool], branches:
+                    ⊤ (underspecified)
+                  step !"tea" [p:Int], branches:
+                    ⊤ (underspecified)
+              else:
+                  ⊥ (forbidden)
+            step !"tea" [p:Int], branches:
+              ⊥ (forbidden)
+        else:
+            ⊤ (underspecified)
+      step ?"take" [], branches:
+        ⊤ (underspecified)
+      step ?"water" [p:Int], branches:
+        ⊤ (underspecified)
+      step !"esp" [p:Int,milk:Bool], branches:
+        ⊥ (forbidden)
+      step !"tea" [p:Int], branches:
+        ⊥ (forbidden)
+    conjunct 3:
+      step ?"a" [], branches:
+        ⊤ (underspecified)
+      step ?"b" [p:Int], branches:
+        if -p ≥ 0 then
+            step ?"a" [], branches:
+              ⊤ (underspecified)
+            step ?"b" [p:Int], branches:
+              ⊤ (underspecified)
+            step ?"take" [], branches:
+              ⊤ (underspecified)
+            step ?"water" [p:Int], branches:
+              ⊤ (underspecified)
+            step !"esp" [p:Int,milk:Bool], branches:
+              if milk_1 then
+                  step ?"a" [], branches:
+                    ⊤ (underspecified)
+                  step ?"b" [p:Int], branches:
+                    ⊤ (underspecified)
+                  step ?"take" [], branches:
+                    ⊤ (underspecified)
+                  step ?"water" [p:Int], branches:
+                    ⊤ (underspecified)
+                  step !"esp" [p:Int,milk:Bool], branches:
+                    ⊤ (underspecified)
+                  step !"tea" [p:Int], branches:
+                    ⊤ (underspecified)
+              else:
+                  ⊥ (forbidden)
+            step !"tea" [p:Int], branches:
+              ⊥ (forbidden)
+        else:
+            ⊤ (underspecified)
+      step ?"take" [], branches:
+        ⊤ (underspecified)
+      step ?"water" [p:Int], branches:
+        ⊤ (underspecified)
+      step !"esp" [p:Int,milk:Bool], branches:
+        ⊥ (forbidden)
+      step !"tea" [p:Int], branches:
+        ⊥ (forbidden)
+    conjunct 4:
+      step ?"a" [], branches:
+        if False then
+            step ?"a" [], branches:
+              ⊤ (underspecified)
+            step ?"b" [p:Int], branches:
+              ⊤ (underspecified)
+            step ?"take" [], branches:
+              ⊤ (underspecified)
+            step ?"water" [p:Int], branches:
+              ⊤ (underspecified)
+            step !"esp" [p:Int,milk:Bool], branches:
+              if True then
+                  step ?"a" [], branches:
+                    ⊤ (underspecified)
+                  step ?"b" [p:Int], branches:
+                    ⊤ (underspecified)
+                  step ?"take" [], branches:
+                    ∧ (4 conjuncts):
+                      conjunct 1:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊤ (underspecified)
+                      conjunct 2:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊤ (underspecified)
+                      conjunct 3:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊤ (underspecified)
+                      conjunct 4:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊤ (underspecified)
+                  step ?"water" [p:Int], branches:
+                    ⊤ (underspecified)
+                  step !"esp" [p:Int,milk:Bool], branches:
+                    ⊥ (forbidden)
+                  step !"tea" [p:Int], branches:
+                    ⊥ (forbidden)
+              else:
+                  ⊥ (forbidden)
+            step !"tea" [p:Int], branches:
+              if True then
+                  step ?"a" [], branches:
+                    ⊤ (underspecified)
+                  step ?"b" [p:Int], branches:
+                    ⊤ (underspecified)
+                  step ?"take" [], branches:
+                    ∧ (4 conjuncts):
+                      conjunct 1:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊤ (underspecified)
+                      conjunct 2:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊤ (underspecified)
+                      conjunct 3:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊤ (underspecified)
+                      conjunct 4:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊤ (underspecified)
+                  step ?"water" [p:Int], branches:
+                    ⊤ (underspecified)
+                  step !"esp" [p:Int,milk:Bool], branches:
+                    ⊥ (forbidden)
+                  step !"tea" [p:Int], branches:
+                    ⊥ (forbidden)
+              else:
+                  ⊥ (forbidden)
+        else:
+            ⊤ (underspecified)
+      step ?"b" [p:Int], branches:
+        if -p ≥ 0 then
+            step ?"a" [], branches:
+              ⊤ (underspecified)
+            step ?"b" [p:Int], branches:
+              ⊤ (underspecified)
+            step ?"take" [], branches:
+              ⊤ (underspecified)
+            step ?"water" [p:Int], branches:
+              ⊤ (underspecified)
+            step !"esp" [p:Int,milk:Bool], branches:
+              if True then
+                  step ?"a" [], branches:
+                    ⊤ (underspecified)
+                  step ?"b" [p:Int], branches:
+                    ⊤ (underspecified)
+                  step ?"take" [], branches:
+                    ∧ (4 conjuncts):
+                      conjunct 1:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊤ (underspecified)
+                      conjunct 2:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊤ (underspecified)
+                      conjunct 3:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊤ (underspecified)
+                      conjunct 4:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊤ (underspecified)
+                  step ?"water" [p:Int], branches:
+                    ⊤ (underspecified)
+                  step !"esp" [p:Int,milk:Bool], branches:
+                    ⊥ (forbidden)
+                  step !"tea" [p:Int], branches:
+                    ⊥ (forbidden)
+              else:
+                  ⊥ (forbidden)
+            step !"tea" [p:Int], branches:
+              if True then
+                  step ?"a" [], branches:
+                    ⊤ (underspecified)
+                  step ?"b" [p:Int], branches:
+                    ⊤ (underspecified)
+                  step ?"take" [], branches:
+                    ∧ (4 conjuncts):
+                      conjunct 1:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊤ (underspecified)
+                      conjunct 2:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊤ (underspecified)
+                      conjunct 3:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊤ (underspecified)
+                      conjunct 4:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊤ (underspecified)
+                  step ?"water" [p:Int], branches:
+                    ⊤ (underspecified)
+                  step !"esp" [p:Int,milk:Bool], branches:
+                    ⊥ (forbidden)
+                  step !"tea" [p:Int], branches:
+                    ⊥ (forbidden)
+              else:
+                  ⊥ (forbidden)
+        else:
+            ⊤ (underspecified)
+      step ?"take" [], branches:
+        ⊤ (underspecified)
+      step ?"water" [p:Int], branches:
+        ∧ (4 conjuncts):
+          conjunct 1:
+            if True then
+                step ?"a" [], branches:
+                  if p+-2 ≥ 0 then
+                      step ?"a" [], branches:
+                        ⊤ (underspecified)
+                      step ?"b" [p:Int], branches:
+                        ⊤ (underspecified)
+                      step ?"take" [], branches:
+                        ⊤ (underspecified)
+                      step ?"water" [p:Int], branches:
+                        ⊤ (underspecified)
+                      step !"esp" [p:Int,milk:Bool], branches:
+                        ⊥ (forbidden)
+                      step !"tea" [p:Int], branches:
+                        if p_2 = 2 then
+                            … (depth limit)
+                        else:
+                            ⊥ (forbidden)
+                  else:
+                      ⊤ (underspecified)
+                step ?"b" [p:Int], branches:
+                  ⊤ (underspecified)
+                step ?"take" [], branches:
+                  ⊤ (underspecified)
+                step ?"water" [p:Int], branches:
+                  ⊤ (underspecified)
+                step !"esp" [p:Int,milk:Bool], branches:
+                  ⊥ (forbidden)
+                step !"tea" [p:Int], branches:
+                  ⊥ (forbidden)
+            else:
+                ⊤ (underspecified)
+          conjunct 2:
+            if True then
+                step ?"a" [], branches:
+                  ⊤ (underspecified)
+                step ?"b" [p:Int], branches:
+                  if p+-p_1 ≥ 0 then
+                      step ?"a" [], branches:
+                        ⊤ (underspecified)
+                      step ?"b" [p:Int], branches:
+                        ⊤ (underspecified)
+                      step ?"take" [], branches:
+                        ⊤ (underspecified)
+                      step ?"water" [p:Int], branches:
+                        ⊤ (underspecified)
+                      step !"esp" [p:Int,milk:Bool], branches:
+                        if p_2 = p_1 then
+                            … (depth limit)
+                        else:
+                            ⊥ (forbidden)
+                      step !"tea" [p:Int], branches:
+                        ⊥ (forbidden)
+                  else:
+                      ⊤ (underspecified)
+                step ?"take" [], branches:
+                  ⊤ (underspecified)
+                step ?"water" [p:Int], branches:
+                  ⊤ (underspecified)
+                step !"esp" [p:Int,milk:Bool], branches:
+                  ⊥ (forbidden)
+                step !"tea" [p:Int], branches:
+                  ⊥ (forbidden)
+            else:
+                ⊤ (underspecified)
+          conjunct 3:
+            if True then
+                step ?"a" [], branches:
+                  ⊤ (underspecified)
+                step ?"b" [p:Int], branches:
+                  if p+-p_1 ≥ 0 then
+                      step ?"a" [], branches:
+                        ⊤ (underspecified)
+                      step ?"b" [p:Int], branches:
+                        ⊤ (underspecified)
+                      step ?"take" [], branches:
+                        ⊤ (underspecified)
+                      step ?"water" [p:Int], branches:
+                        ⊤ (underspecified)
+                      step !"esp" [p:Int,milk:Bool], branches:
+                        if milk_2 then
+                            … (depth limit)
+                        else:
+                            ⊥ (forbidden)
+                      step !"tea" [p:Int], branches:
+                        ⊥ (forbidden)
+                  else:
+                      ⊤ (underspecified)
+                step ?"take" [], branches:
+                  ⊤ (underspecified)
+                step ?"water" [p:Int], branches:
+                  ⊤ (underspecified)
+                step !"esp" [p:Int,milk:Bool], branches:
+                  ⊥ (forbidden)
+                step !"tea" [p:Int], branches:
+                  ⊥ (forbidden)
+            else:
+                ⊤ (underspecified)
+          conjunct 4:
+            if True then
+                step ?"a" [], branches:
+                  if p+-2 ≥ 0 then
+                      step ?"a" [], branches:
+                        ⊤ (underspecified)
+                      step ?"b" [p:Int], branches:
+                        ⊤ (underspecified)
+                      step ?"take" [], branches:
+                        ⊤ (underspecified)
+                      step ?"water" [p:Int], branches:
+                        ⊤ (underspecified)
+                      step !"esp" [p:Int,milk:Bool], branches:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊥ (forbidden)
+                      step !"tea" [p:Int], branches:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊥ (forbidden)
+                  else:
+                      ⊤ (underspecified)
+                step ?"b" [p:Int], branches:
+                  if p+-p_1 ≥ 0 then
+                      step ?"a" [], branches:
+                        ⊤ (underspecified)
+                      step ?"b" [p:Int], branches:
+                        ⊤ (underspecified)
+                      step ?"take" [], branches:
+                        ⊤ (underspecified)
+                      step ?"water" [p:Int], branches:
+                        ⊤ (underspecified)
+                      step !"esp" [p:Int,milk:Bool], branches:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊥ (forbidden)
+                      step !"tea" [p:Int], branches:
+                        if True then
+                            … (depth limit)
+                        else:
+                            ⊥ (forbidden)
+                  else:
+                      ⊤ (underspecified)
+                step ?"take" [], branches:
+                  ⊤ (underspecified)
+                step ?"water" [p:Int], branches:
+                  ∧ (4 conjuncts):
+                    conjunct 1:
+                      if ¬(p+-10 ≥ 0) then
+                          step ?"a" [], branches:
+                            if p+p_1+-2 ≥ 0 then
+                                … (depth limit)
+                            else:
+                                ⊤ (underspecified)
+                          step ?"b" [p:Int], branches:
+                            ⊤ (underspecified)
+                          step ?"take" [], branches:
+                            ⊤ (underspecified)
+                          step ?"water" [p:Int], branches:
+                            ⊤ (underspecified)
+                          step !"esp" [p:Int,milk:Bool], branches:
+                            ⊥ (forbidden)
+                          step !"tea" [p:Int], branches:
+                            ⊥ (forbidden)
+                      else:
+                          ⊤ (underspecified)
+                    conjunct 2:
+                      if ¬(p+-10 ≥ 0) then
+                          step ?"a" [], branches:
+                            ⊤ (underspecified)
+                          step ?"b" [p:Int], branches:
+                            if p+p_1+-p_2 ≥ 0 then
+                                … (depth limit)
+                            else:
+                                ⊤ (underspecified)
+                          step ?"take" [], branches:
+                            ⊤ (underspecified)
+                          step ?"water" [p:Int], branches:
+                            ⊤ (underspecified)
+                          step !"esp" [p:Int,milk:Bool], branches:
+                            ⊥ (forbidden)
+                          step !"tea" [p:Int], branches:
+                            ⊥ (forbidden)
+                      else:
+                          ⊤ (underspecified)
+                    conjunct 3:
+                      if ¬(p+-10 ≥ 0) then
+                          step ?"a" [], branches:
+                            ⊤ (underspecified)
+                          step ?"b" [p:Int], branches:
+                            if p+p_1+-p_2 ≥ 0 then
+                                … (depth limit)
+                            else:
+                                ⊤ (underspecified)
+                          step ?"take" [], branches:
+                            ⊤ (underspecified)
+                          step ?"water" [p:Int], branches:
+                            ⊤ (underspecified)
+                          step !"esp" [p:Int,milk:Bool], branches:
+                            ⊥ (forbidden)
+                          step !"tea" [p:Int], branches:
+                            ⊥ (forbidden)
+                      else:
+                          ⊤ (underspecified)
+                    conjunct 4:
+                      if ¬(p+-10 ≥ 0) then
+                          step ?"a" [], branches:
+                            if p+p_1+-2 ≥ 0 then
+                                … (depth limit)
+                            else:
+                                ⊤ (underspecified)
+                          step ?"b" [p:Int], branches:
+                            if p+p_1+-p_2 ≥ 0 then
+                                … (depth limit)
+                            else:
+                                ⊤ (underspecified)
+                          step ?"take" [], branches:
+                            ⊤ (underspecified)
+                          step ?"water" [p:Int], branches:
+                            ∧ (4 conjuncts):
+                              conjunct 1:
+                                if ¬(p+p_1+-10 ≥ 0) then
+                                    … (depth limit)
+                                else:
+                                    ⊤ (underspecified)
+                              conjunct 2:
+                                if ¬(p+p_1+-10 ≥ 0) then
+                                    … (depth limit)
+                                else:
+                                    ⊤ (underspecified)
+                              conjunct 3:
+                                if ¬(p+p_1+-10 ≥ 0) then
+                                    … (depth limit)
+                                else:
+                                    ⊤ (underspecified)
+                              conjunct 4:
+                                if ¬(p+p_1+-10 ≥ 0) then
+                                    … (depth limit)
+                                else:
+                                    ⊤ (underspecified)
+                          step !"esp" [p:Int,milk:Bool], branches:
+                            ⊥ (forbidden)
+                          step !"tea" [p:Int], branches:
+                            ⊥ (forbidden)
+                      else:
+                          ⊤ (underspecified)
+                step !"esp" [p:Int,milk:Bool], branches:
+                  ⊥ (forbidden)
+                step !"tea" [p:Int], branches:
+                  ⊥ (forbidden)
+            else:
+                ⊤ (underspecified)
+      step !"esp" [p:Int,milk:Bool], branches:
+        ⊥ (forbidden)
+      step !"tea" [p:Int], branches:
+        ⊥ (forbidden)
diff --git a/test/expected-test-output/printSTS.txt b/test/expected-test-output/printSTS.txt
new file mode 100644
--- /dev/null
+++ b/test/expected-test-output/printSTS.txt
@@ -0,0 +1,14 @@
+
+current state configuration: [(0,{x:=0})]
+initial location configuration: [0]
+locations: 0, 1, 2
+transitions:
+0  ――?"water" [p:Int]⟶  [((((-p+10)) ≥ 0)∧(((p+-1)) ≥ 0), {x:=(p+x)},1)]
+0  ――!"coffee" []⟶  [(((x+-15)) ≥ 0, {},2)]
+0  ――!"ok" [p:Int]⟶  ⊥
+1  ――?"water" [p:Int]⟶  ⊤
+1  ――!"coffee" []⟶  ⊥
+1  ――!"ok" [p:Int]⟶  [((x) = (p), {},0)]
+2  ――?"water" [p:Int]⟶  ⊤
+2  ――!"coffee" []⟶  ⊥
+2  ――!"ok" [p:Int]⟶  ⊥
