summaryrefslogtreecommitdiff
path: root/test/example/relooper-fuzz.c
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-07-20 21:31:46 -0700
committerGitHub <noreply@github.com>2016-07-20 21:31:46 -0700
commit12abb63203788cba23f5c65a971a2af922e05bfc (patch)
tree47160f540810e408ccd74ae8e4b422afaf59e0fb /test/example/relooper-fuzz.c
parent5e9058c9b108298406da7474c524e8d452431710 (diff)
parentfa60ade30e03c6a13bbce26ff81c03ed1ae4da0b (diff)
downloadbinaryen-12abb63203788cba23f5c65a971a2af922e05bfc.tar.gz
binaryen-12abb63203788cba23f5c65a971a2af922e05bfc.tar.bz2
binaryen-12abb63203788cba23f5c65a971a2af922e05bfc.zip
Merge pull request #648 from WebAssembly/relooper-opts
Relooper improvements
Diffstat (limited to 'test/example/relooper-fuzz.c')
-rw-r--r--test/example/relooper-fuzz.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/example/relooper-fuzz.c b/test/example/relooper-fuzz.c
index ecb204347..65d00aa5d 100644
--- a/test/example/relooper-fuzz.c
+++ b/test/example/relooper-fuzz.c
@@ -256,12 +256,14 @@ int main() {
// memory
BinaryenSetMemory(module, 1, 1, "mem", NULL, NULL, NULL, 0);
+ assert(BinaryenModuleValidate(module));
+
+ BinaryenModulePrint(module);
+
BinaryenModuleOptimize(module);
assert(BinaryenModuleValidate(module));
- // write it out
-
BinaryenModulePrint(module);
BinaryenModuleDispose(module);