(component (type $x (;0;) (resource (rep i32))) (core func $f1 (;0;) (canon resource.new $x)) (core func $f2 (;1;) (canon resource.rep $x)) (core func $f3 (;2;) (canon resource.drop $x)) (core module $m (;0;) (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32))) (import "" "f1" (func (;0;) (type 0))) (import "" "f2" (func (;1;) (type 0))) (import "" "f3" (func (;2;) (type 1))) ) (core instance (;0;) (export "f1" (func $f1)) (export "f2" (func $f2)) (export "f3" (func $f3)) ) (core instance (;1;) (instantiate $m (with "" (instance 0)) ) ) )