-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test with predicates that are always false
- Loading branch information
1 parent
fb0ece1
commit a4158b1
Showing
4 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
test/monitors/whamm/monitors/correctness/app/false-pred.wasm.app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../profile_bytecode.wasm |
1 change: 1 addition & 0 deletions
1
test/monitors/whamm/monitors/correctness/expected/false-pred.wasm.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
success is earned, not given |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
(module | ||
(import "wizeng" "puts" (func $puts (param i32 i32))) | ||
(memory (export "mem") 1 1) | ||
(data (i32.const 0x00) "if you are reading this, you failed the test") | ||
(data (i32.const 0x80) "success is earned, not given\n") | ||
|
||
(func (export "$false_call") (param i32 i32) (result i32) | ||
(i32.const 0) | ||
) | ||
(func (export "wasm:opcode:call/$false_call(fid, pc)/") | ||
(call $puts (i32.const 0x00) (i32.const 45)) | ||
) | ||
|
||
(func (export "$false_i32_const") (param i32 i32) (result i32) | ||
(i32.const 0) | ||
) | ||
(func (export "wasm:opcode:i32.const/$false_i32_const(fid, pc)/") | ||
(call $puts (i32.const 0x00) (i32.const 45)) | ||
) | ||
|
||
(func (export "$false_i32_load") (param i32 i32) (result i32) | ||
(i32.const 0) | ||
) | ||
(func (export "wasm:opcode:i32.load/$false_i32_load(fid, pc)/") | ||
(call $puts (i32.const 0x00) (i32.const 45)) | ||
) | ||
|
||
(func (export "$false_local_get") (param i32 i32) (result i32) | ||
(i32.const 0) | ||
) | ||
(func (export "wasm:opcode:local.get/$false_local_get(fid, pc)/") | ||
(call $puts (i32.const 0x00) (i32.const 45)) | ||
) | ||
|
||
(func (export "wasm:exit") | ||
(call $puts (i32.const 0x80) (i32.const 29)) | ||
) | ||
|
||
) | ||
|