Skip to content

Commit

Permalink
rebuild qmaxuse
Browse files Browse the repository at this point in the history
  • Loading branch information
classicwuhao committed Jan 4, 2022
1 parent fff7ac0 commit d466444
Show file tree
Hide file tree
Showing 21 changed files with 37 additions and 17 deletions.
Binary file modified build/classes/org/tzi/use/query/QueryCompiler.class
Binary file not shown.
Binary file modified build/classes/org/tzi/use/query/setup/Settings.class
Binary file not shown.
Binary file modified lib/qmaxuse.jar
Binary file not shown.
Binary file modified lib/use-gui.jar
Binary file not shown.
Binary file modified lib/use-runtime.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/org/tzi/use/parser/generator/GeneratorLexer.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $ANTLR 3.4 Generator.g 2022-01-04 15:59:36
// $ANTLR 3.4 Generator.g 2022-01-04 16:20:13

package org.tzi.use.parser.generator;

Expand Down
2 changes: 1 addition & 1 deletion src/main/org/tzi/use/parser/generator/GeneratorParser.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $ANTLR 3.4 Generator.g 2022-01-04 15:59:36
// $ANTLR 3.4 Generator.g 2022-01-04 16:20:13

/*
* USE - UML based specification environment
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/tzi/use/parser/ocl/OCLLexer.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $ANTLR 3.4 OCL.g 2022-01-04 15:59:32
// $ANTLR 3.4 OCL.g 2022-01-04 16:20:09

package org.tzi.use.parser.ocl;

Expand Down
2 changes: 1 addition & 1 deletion src/main/org/tzi/use/parser/ocl/OCLParser.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $ANTLR 3.4 OCL.g 2022-01-04 15:59:31
// $ANTLR 3.4 OCL.g 2022-01-04 16:20:09

/*
* USE - UML based specification environment
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/tzi/use/parser/shell/ShellCommandLexer.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $ANTLR 3.4 ShellCommand.g 2022-01-04 15:59:35
// $ANTLR 3.4 ShellCommand.g 2022-01-04 16:20:13

/*
* USE - UML based specification environment
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/tzi/use/parser/shell/ShellCommandParser.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $ANTLR 3.4 ShellCommand.g 2022-01-04 15:59:35
// $ANTLR 3.4 ShellCommand.g 2022-01-04 16:20:12

/*
* USE - UML based specification environment
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/tzi/use/parser/soil/SoilLexer.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $ANTLR 3.4 Soil.g 2022-01-04 15:59:32
// $ANTLR 3.4 Soil.g 2022-01-04 16:20:10

/*
* USE - UML based specification environment
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/tzi/use/parser/soil/SoilParser.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $ANTLR 3.4 Soil.g 2022-01-04 15:59:32
// $ANTLR 3.4 Soil.g 2022-01-04 16:20:10

/*
* USE - UML based specification environment
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/tzi/use/parser/testsuite/TestSuiteLexer.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $ANTLR 3.4 TestSuite.g 2022-01-04 15:59:37
// $ANTLR 3.4 TestSuite.g 2022-01-04 16:20:14

/*
* USE - UML based specification environment
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/tzi/use/parser/testsuite/TestSuiteParser.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $ANTLR 3.4 TestSuite.g 2022-01-04 15:59:36
// $ANTLR 3.4 TestSuite.g 2022-01-04 16:20:14

/*
* USE - UML based specification environment
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/tzi/use/parser/use/USELexer.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $ANTLR 3.4 USE.g 2022-01-04 15:59:33
// $ANTLR 3.4 USE.g 2022-01-04 16:20:11

/*
* USE - UML based specification environment
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/tzi/use/parser/use/USEParser.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $ANTLR 3.4 USE.g 2022-01-04 15:59:33
// $ANTLR 3.4 USE.g 2022-01-04 16:20:11

/*
* USE - UML based specification environment
Expand Down
23 changes: 21 additions & 2 deletions src/main/org/tzi/use/query/QueryCompiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.tzi.use.query.io.Color;
import org.tzi.use.query.graph.*;
import org.tzi.use.query.setup.Settings;
import org.tzi.use.query.setup.OS;
import org.tzi.use.query.setup.Solver;
import java.io.PrintStream;
import org.tzi.use.common.*;
Expand All @@ -42,11 +43,29 @@ public class QueryCompiler{
public QueryCompiler(){}

public static void set_solver(String solver){
OS os = settings.System();
if (solver.equals(Solver.Z3.toString())){
settings.SetSolver(Solver.Z3);
if (os==OS.WINDOWS | os==OS.LINUX | os==OS.MACOS){
settings.SetSolver(Solver.Z3);
}
else{
System.out.println("Z3 is currently supported for Windows, Linux and MacOS.");
settings.SetSolver(Solver.UNDEF);
}
}
else if (solver.equals(Solver.CVC5.toString())){
settings.SetSolver(Solver.CVC5);
if (os==OS.LINUX | os==OS.MACOS){
settings.SetSolver(Solver.CVC5);
}
else if (os==OS.WINDOWS){
System.out.println("CVC5 is not supported for Windows");
System.out.println("Switch back to Z3.");
settings.SetSolver(Solver.Z3);
}
else{
System.out.println("CVC5 is currently supported for Linux and MacOS.");
settings.SetSolver(Solver.UNDEF);
}
}
else {
System.out.println("unrecognised solver - "+solver);
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/tzi/use/query/QueryLexer.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $ANTLR 3.4 Query.g 2022-01-04 15:59:34
// $ANTLR 3.4 Query.g 2022-01-04 16:20:12

package org.tzi.use.query;
import org.tzi.use.query.ast.*;
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/tzi/use/query/QueryParser.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $ANTLR 3.4 Query.g 2022-01-04 15:59:34
// $ANTLR 3.4 Query.g 2022-01-04 16:20:12

package org.tzi.use.query;
import org.tzi.use.query.ast.*;
Expand Down
3 changes: 2 additions & 1 deletion src/main/org/tzi/use/query/setup/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ else if (strOS.contains("Windows")){
}

public String OS(){return this.os.toString();}

public OS System(){return this.os;}

public void SetSolver(Solver solver){
if (solver!=Solver.UNDEF){
this.MainSolver=solver;
Expand Down

0 comments on commit d466444

Please sign in to comment.