In order to package the project call (it requires mongodb running with default settings)
mvn clean packageIf you'd like to skip the test with:
mvn clean package -DskipTestsAfter the packaging, the jar can be found in the ./usage/target/ folder.
Run the command
java -cp usage-0.5.jar automata.ExtractModelAndCnst file class method automata constraints projectWhere:
fileis the path of the file to analyzeclassis the name of the class to analyzemethodis the name of the method to analyzeautomatais the path of the file where to store the automata modelconstraintsis the path of the file where to store the list of expressions to monitor with the dynamic analysisprojectis the root path of the project that contains the chosenfile
Run your java program attaching the agent found in the ./code-instrumentation/target/ folder.
As parameter to the agent, pass the file containing the expressions to monitor created with the previous command.
java -javaagent:code-instrumentation-0.1.jar=path/to/constraint.conf yourProgram.jarIt will creates a file with the name traces[0-9]+.txt in the working directory of where you start the command.
After the packaging, the jar can be found in the ./usage/target/ folder.
Run the command
java -cp usage-0.5.jar automata.ExampleCombineTraces automata traces outputDirWhere:
automatais the path of the file which contains the automaton modeltracesis the path of the file which is created with the dynamic analysisoutputDiris the path of the directory in which store the results