File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 2929
3030CC =clang
3131CFLAGS =-O3 -DNXT
32- OUTPUT =ltl2ba
32+ OUTPUT =ltl2ba.exe
3333
3434LTL2BA = parse.o lex.o main.o trans.o buchi.o set.o \
3535 mem.o rewrt.o cache.o alternating.o generalized.o
Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ public static void main(String[] args) {
3535 VerifierService verifierService = new VerifierService (automatonService );
3636 Diagram diagram = diagramService .parseDiagram (modelFile );
3737 Automaton <Formula <String >> automaton = automatonService .createFromDiagram (diagram );
38+ if (ltlScanner == null ){
39+ System .err .println ("" );
40+ System .exit (1 );
41+ }
3842 while (ltlScanner .hasNextLine ()){
3943 String formula = ltlScanner .nextLine ();
4044 log .info ("Considering the formula " + formula );
@@ -52,7 +56,7 @@ public static void main(String[] args) {
5256 }
5357 }
5458 } catch (IOException e ) {
55- // Option parser exception. Scanner never throws IOException
59+ System . err . println ( e . getMessage ());
5660 System .exit (1 );
5761 }
5862 }
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public Automaton<Formula<String>> createFromLtl(String ltl) {
7676 }
7777
7878 public List <State > createStateListFromLtl (String ltl ) {
79- String [] command = new String []{"ltl2ba/ltl2ba" , "-f" , ltl };
79+ String [] command = new String []{"ltl2ba/ltl2ba.exe " , "-f" , ltl };
8080 return systemService .executeForRead (command , inputStream -> {
8181 try {
8282 String string = StreamUtils .toString (inputStream );
You can’t perform that action at this time.
0 commit comments