Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaTP committed Jul 26, 2024
1 parent cf20a92 commit ceaea25
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,17 +363,13 @@ public void shouldConsumeStackLoopOperations() {
Module.builder("fac.wasm")
.withUnsafeExecutionListener(
(Instruction instruction, long[] operands, MStack stack) -> {
// System.out.println(
// "iter -> " +
// instruction.opcode() + " " +
// stack.size());
finalStackSize.set(stack.size());
})
.build()
.instantiate();
var facSsa = instance.export("fac-ssa");

var number = 200;
var number = 100;
var result = facSsa.apply(Value.i32(number));
assertEquals(factorial(number), result[0].asInt());

Expand Down

0 comments on commit ceaea25

Please sign in to comment.