Skip to content

Commit bf2622c

Browse files
committed
add sleep function
1 parent f7076f3 commit bf2622c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cmd/cmd_iso.ml

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ let binaryen_fuzzing_support_module () =
3636
let call_export_catch _n =
3737
Symbolic_choice_with_memory.return @@ Smtml.Expr.value (Smtml.Value.Int 0)
3838
in
39+
let sleep _ms id = Symbolic_choice_with_memory.return id in
3940
let functions =
4041
[ ( "log-i32"
4142
, Symbolic.Extern_func.Extern_func (Func (Arg (I32, Res), R0), log_i32) )
@@ -51,6 +52,9 @@ let binaryen_fuzzing_support_module () =
5152
; ( "call-export-catch"
5253
, Symbolic.Extern_func.Extern_func
5354
(Func (Arg (I32, Res), R1 I32), call_export_catch) )
55+
; ( "sleep"
56+
, Symbolic.Extern_func.Extern_func
57+
(Func (Arg (I32, Arg (I32, Res)), R1 I32), sleep) )
5458
]
5559
in
5660
{ Link.functions }

0 commit comments

Comments
 (0)