From e53badb26a1a3d2de0c7df30bb7e656299d91b21 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 11 Nov 2015 20:49:51 -0800 Subject: text --- test/example/find_div0s.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test/example/find_div0s.cpp') diff --git a/test/example/find_div0s.cpp b/test/example/find_div0s.cpp index 77a5d2c61..be273390f 100644 --- a/test/example/find_div0s.cpp +++ b/test/example/find_div0s.cpp @@ -1,11 +1,18 @@ +// +// Tiny example, using Binaryen to walk a WebAssembly module in search +// for direct integer divisions by zero. To do so, we inherit from +// WasmWalker, and implement visitBinary, which is called on every +// Binary node in the module's functions. +// + #include #include using namespace wasm; int main() { - // A module with a function with a division by zero in the body + // A module with a function with a division by zero in the body. Module module; Function func; func.name = "func"; -- cgit v1.2.3