Skip to content
Snippets Groups Projects
Commit 19d463c3 authored by hansen's avatar hansen
Browse files

update build.gradle

parent c8a1349a
No related branches found
No related tags found
No related merge requests found
...@@ -19,3 +19,5 @@ Club_tla.mch ...@@ -19,3 +19,5 @@ Club_tla.mch
testing testing
Club.prob Club.prob
TLA2B.jar TLA2B.jar
src/test/resources/test
src/test/resources/bugs
...@@ -38,7 +38,7 @@ dependencies { ...@@ -38,7 +38,7 @@ dependencies {
compile (group: 'de.hhu.stups', name: 'ltlparser', version: parser_version) compile (group: 'de.hhu.stups', name: 'ltlparser', version: parser_version)
testCompile (group: 'de.hhu.stups', name: 'de.prob2.kernel', version: prob_version) //testCompile (group: 'de.hhu.stups', name: 'de.prob2.kernel', version: prob_version)
testCompile (group: 'junit', name: 'junit', version: '4.+') testCompile (group: 'junit', name: 'junit', version: '4.+')
} }
......
...@@ -13,10 +13,10 @@ import de.be4.classicalb.core.parser.BParser; ...@@ -13,10 +13,10 @@ import de.be4.classicalb.core.parser.BParser;
import de.be4.classicalb.core.parser.exceptions.BException; import de.be4.classicalb.core.parser.exceptions.BException;
import de.be4.classicalb.core.parser.node.Node; import de.be4.classicalb.core.parser.node.Node;
import de.be4.classicalb.core.parser.node.Start; import de.be4.classicalb.core.parser.node.Start;
import de.prob.scripting.Api; //import de.prob.scripting.Api;
import de.prob.statespace.StateSpace; //import de.prob.statespace.StateSpace;
import de.prob.statespace.Trace; //import de.prob.statespace.Trace;
import de.prob.statespace.Transition; //import de.prob.statespace.Transition;
import de.tla2b.exceptions.FrontEndException; import de.tla2b.exceptions.FrontEndException;
import de.tla2b.exceptions.TLA2BException; import de.tla2b.exceptions.TLA2BException;
import de.tla2b.output.ASTPrettyPrinter; import de.tla2b.output.ASTPrettyPrinter;
...@@ -201,20 +201,20 @@ public class TestUtil { ...@@ -201,20 +201,20 @@ public class TestUtil {
} }
public static void load_TLA_File(String tlaFile) throws Exception { public static void load_TLA_File(String tlaFile) throws Exception {
Api api = de.prob.Main.getInjector().getInstance(Api.class); // Api api = de.prob.Main.getInjector().getInstance(Api.class);
// TODO translate here and then pass the AST to api // // TODO translate here and then pass the AST to api
// Currently B definitions are not recognized by the api load command // // Currently B definitions are not recognized by the api load command
// Translator t = new Translator(tlaFile); // // Translator t = new Translator(tlaFile);
// Start start = t.translate(); // // Start start = t.translate();
// ASTPrettyPrinter aP = new ASTPrettyPrinter(start); // // ASTPrettyPrinter aP = new ASTPrettyPrinter(start);
// start.apply(aP); // // start.apply(aP);
// System.out.println(aP.getResultString()); // // System.out.println(aP.getResultString());
// StateSpace stateSpace = api.b_load(start); // // StateSpace stateSpace = api.b_load(start);
//
StateSpace stateSpace = api.tla_load(tlaFile); // StateSpace stateSpace = api.tla_load(tlaFile);
Trace trace = new Trace(stateSpace); // Trace trace = new Trace(stateSpace);
Set<Transition> nextTransitions = trace.getNextTransitions(); // Set<Transition> nextTransitions = trace.getNextTransitions();
assertTrue(nextTransitions.size() > 0); // assertTrue(nextTransitions.size() > 0);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment