- Install go
- Install java
- Install ant
- Install maven
Set current working directory to modelfuzz-java.
go buildSet current working directory to tlc-controlled-with-benchmarks/tlc-controlled.
ant -f customBuild.xml compile
ant -f customBuild.xml compile-test
ant -f customBuild.xml distSet current working directory to ratis-fuzzing.
mvn clean package -DskipTestsFirst, run the TLC server. Run the following command from tlc-controlled-with-benchmarks/tlc-controlled:
java -jar dist/tla2tools_server.jar -controlled <path-to-tla-file> -config <path-to-cfg-file> -mapperparams "name=raft"where <path-to-a-tla-file> can be one of the files inside tla-benchmarks/Raft/model. For example:
java -jar dist/tla2tools_server.jar -controlled ..\tla-benchmarks\Raft\model\RAFT_1_3.tla -config ..\tla-benchmarks\Raft\model\RAFT_1_3.cfg -mapperparams "name=raft"Now, within the modelfuzz directory, run the fuzzer using:
./modelfuzz-javaThe seed is not included in the comand, instead it can be specified in main.go
Fir further information check analysis folder and README.md