Skip to content

Instantly share code, notes, and snippets.

@emilbayes
Created August 14, 2018 09:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emilbayes/11b02a1a60dc1ce063bde7a20e26c2ee to your computer and use it in GitHub Desktop.
Save emilbayes/11b02a1a60dc1ce063bde7a20e26c2ee to your computer and use it in GitHub Desktop.
(module
(memory (export "memory") 1)
(func $decide
(export "decide")
(param $zero i32)
(result i32)
(if (result i32)
(i32.eqz (get_local $zero))
(then (i32.const 0))
(else (i32.const 1)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment