Skip to content
Snippets Groups Projects
Commit 6f01e052 authored by hansen's avatar hansen
Browse files

fixed minor bug

parent dd2cb7fa
No related branches found
No related tags found
No related merge requests found
...@@ -188,7 +188,7 @@ public class LTLFormulaPrinter extends DepthFirstAdapter { ...@@ -188,7 +188,7 @@ public class LTLFormulaPrinter extends DepthFirstAdapter {
} }
tlaPrinter.moduleStringAppend("\\neg(ENABLED("); tlaPrinter.moduleStringAppend("\\neg(ENABLED(");
tlaPrinter.moduleStringAppend(action1.getOperation().getText()); tlaPrinter.moduleStringAppend(action1.getOperation().getText());
tlaPrinter.moduleStringAppend("), ENABLED("); tlaPrinter.moduleStringAppend(") /\\ ENABLED(");
AOpActions action2 = (AOpActions) copy.get(j); AOpActions action2 = (AOpActions) copy.get(j);
tlaPrinter.moduleStringAppend(action2.getOperation().getText()); tlaPrinter.moduleStringAppend(action2.getOperation().getText());
tlaPrinter.moduleStringAppend("))"); tlaPrinter.moduleStringAppend("))");
......
...@@ -182,7 +182,7 @@ public class LtlFormulaTest { ...@@ -182,7 +182,7 @@ public class LtlFormulaTest {
String machine = "MACHINE test\n" String machine = "MACHINE test\n"
+ "OPERATIONS foo = skip; bar = skip; bazz = skip\n" + "OPERATIONS foo = skip; bar = skip; bazz = skip\n"
+ "END"; + "END";
String expected = "\\neg(ENABLED(foo),ENABLED(bar))/\\ \\neg(ENABLED(foo),ENABLED(bazz))/\\ \\neg(ENABLED(bar),ENABLED(bazz))"; String expected = "\\neg(ENABLED(foo) /\\ ENABLED(bar)) /\\ \\neg(ENABLED(foo) /\\ ENABLED(bazz)) /\\ \\neg(ENABLED(bar) /\\ ENABLED(bazz))";
compareLTLFormula(expected, machine, "deterministic(foo,bar,bazz)"); compareLTLFormula(expected, machine, "deterministic(foo,bar,bazz)");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment