Commit 81847005 authored by Philipp Meyer's avatar Philipp Meyer
Browse files

Fix generation of protocols without precondition

parent 76fa0232
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ else:
            protocol["transitions"][i][p] = list(map(to_string, protocol["transitions"][i][p]))

        protocol["predicate"] = re.sub(r'C\[([^]]*)\]', lambda match: to_string(match.group(1)), protocol["predicate"])
        if "precondition" in protocol:
          protocol["precondition"] = re.sub(r'C\[([^]]*)\]', lambda match: to_string(match.group(1)), protocol["precondition"])

        if "statesStyle" in protocol: