Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Crocus] crocus example does not work #10277

Open
bongjunj opened this issue Feb 23, 2025 · 1 comment
Open

[Crocus] crocus example does not work #10277

bongjunj opened this issue Feb 23, 2025 · 1 comment

Comments

@bongjunj
Copy link

Hi, I'm running the examples of crocus (cranelift/isle/veri/veri_engine).
The doc says I can test crocus using the following command:

cargo build --package=veri_engine # build crocus

path/to/pcrocus -i cranelift/isle/veri/veri_engine/examples/mid-end/broken_bor_band_consts.isle -t simplify --codegen cranelift/codegen/ --x64

(I added --x64 part since the error message tells me to do so)

But it fails with the following error messages

Writing generated file: /home/llfuzz/transopt-experiment/wasmtime/output/clif_opt.isle
Writing generated file: /home/llfuzz/transopt-experiment/wasmtime/output/clif_lower.isle
Missing term type instantiation for simplify

But the input ISLE file does have instantiation for simplify.

// wasmtime/cranelift/isle/veri/veri_engine/examples/mid-end/broken_bor_band_consts.isle
// ...

(spec (simplify x) (provide (= x result)))
(instantiate simplify
    ((args (bv 8)) (ret (bv 8)) (canon (bv 8)))
    ((args (bv 16)) (ret (bv 16)) (canon (bv 16)))
    ((args (bv 32)) (ret (bv 32)) (canon (bv 32)))
    ((args (bv 64)) (ret (bv 64)) (canon (bv 64)))
)
(decl simplify (Value) Value)

// ...

I think the parsing part is not working for crocus.

@cfallin
Copy link
Member

cfallin commented Feb 24, 2025

cc @avanhatt or @mmcloughlin , any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants