Skip to content

Commit 2e2259d

Browse files
use driver's entrypoint by default
1 parent 8f45912 commit 2e2259d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/scala/wasm/StagedConcolicMiniWasm.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ trait StagedWasmCppGen extends CGenBase with CppSAICodeGenBase {
10471047
|End of Generated Code
10481048
|*******************************************/
10491049
|int main(int argc, char *argv[]) {
1050-
| Snippet(std::monostate{});
1050+
| start_concolic_execution_with(Snippet);
10511051
| return 0;
10521052
|}""".stripMargin)
10531053
}
@@ -1091,7 +1091,7 @@ object WasmToCppCompiler {
10911091
}
10921092

10931093
import sys.process._
1094-
val command = s"g++ -std=c++20 $outputCpp -o $outputExe -O3 -g " + generated.headerFolders.map(f => s"-I$f").mkString(" ")
1094+
val command = s"g++ -std=c++20 $outputCpp -o $outputExe -O3 -g -l z3 " + generated.headerFolders.map(f => s"-I$f").mkString(" ")
10951095
if (command.! != 0) {
10961096
throw new RuntimeException(s"Compilation failed for $outputCpp")
10971097
}

src/test/scala/genwasym/TestStagedConcolicEval.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class TestStagedConcolicEval extends FunSuite {
3030
})
3131
}
3232

33-
test("ack-cpp") { testFileToCpp("./benchmarks/wasm/ack.wat", Some("real_main"), expect=Some(List(7))) }
33+
test("ack-cpp") { testFileToCpp("./benchmarks/wasm/ack.wat", Some("real_main")) }
3434

3535
test("bug-finding") {
3636
testFileToCpp("./benchmarks/wasm/branch-strip-buggy.wat", Some("real_main"))

0 commit comments

Comments
 (0)