(module (type (;0;) (func (result i32 i32))) (type (;1;) (func (result i32))) (func $dup (;0;) (type 0) (result i32 i32) i32.const 0 i32.const 1 ) (func $fold-two (;1;) (type 1) (result i32) call $dup i32.add ) (func $cant-fold (;2;) (type 1) (result i32) call $dup i32.const 1 i32.add drop ) (func $partial-fold (;3;) (type 1) (result i32) call $dup call $dup i32.add i32.sub drop ) )