Sha256: a5705dce60a8bf6b36fd0c85f7e2a8bb064515279e8745d02bdc63b80fa49dfb

Contents?: true

Size: 462 Bytes

Versions: 2

Compression:

Stored size: 462 Bytes

Contents

(type T (enum (A) (B)))
(type U (enum (C) (D)))
(type V (enum (E) (F)))

(convert T U t_to_u)
(convert U T u_to_t)
(convert U V u_to_v)

(decl t_to_u (T) U)
(decl u_to_t (U) T)
(decl u_to_v (U) V)

(rule (t_to_u (T.A)) (U.C))
(rule (t_to_u (T.B)) (U.D))

(rule (u_to_t (U.C)) (T.A))
(rule (u_to_t (U.D)) (T.B))

(rule (u_to_v (U.C)) (V.E))
(rule (u_to_v (U.D)) (V.F))

(extern extractor u_to_t u_to_t)
      

(decl X (T U) V)
(rule (X (U.C) (U.D))
      (U.D))

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/cranelift-isle-0.116.0/isle_examples/pass/conversions.isle
wasmtime-28.0.0 ./ext/cargo-vendor/cranelift-isle-0.115.0/isle_examples/pass/conversions.isle