-
Notifications
You must be signed in to change notification settings - Fork 153
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
[K-Bug] “Cannot define constructor: sort has domain values” #3460
Comments
You are correct. The haskell backend complains that you are extending a token sort with a constructor. We need to add a check in the front end. Maybe here: |
…untimeverification#3122) * haskell-backend/src/main/native/haskell-backend: 31277dfa5 - Fix strictness bug in definedness check (runtimeverification#3457) * Sync flake inputs to submodules * haskell-backend/src/main/native/haskell-backend: 4354413a2 - Update dependency: deps/k_release (runtimeverification#3452) * Sync flake inputs to submodules * haskell-backend/src/main/native/haskell-backend: 142466333 - Fix output of debug rewrite rules (runtimeverification#3428) (runtimeverification#3456) * Sync flake inputs to submodules * haskell-backend/src/main/native/haskell-backend: 08f413c69 - Moving average timeouts (runtimeverification#3471) * Sync flake inputs to submodules * haskell-backend/src/main/native/haskell-backend: ba5075df4 - Update dependency: deps/k_release (runtimeverification#3460) * Sync flake inputs to submodules --------- Co-authored-by: rv-jenkins <devops@runtimeverification.com>
Why is this ok on the llvm backend but not the haskell backend? Should token sorts be allowed to have non-function productions? |
From @dwightguth: It shouldn't be allowed in llvm-backend as well. It should be blocked by the frontend. |
The problem here is that we identify and print the sort that must contain domain values here. But this information isn't available easily in any part of the code. |
What component is the issue in?
haskell-backend
Which command
What K Version?
5.6.90
Operating System
Linux
K Definitions (If Possible)
Steps to Reproduce
Note that this is probably a legitimate error, but the error message seems to be asking me to report a bug.
It might be that the error should have been caught earlier.
This does not occur in the LLVM backend. I don't know if that's expected.
Expected Results
Either no error, or a proper error message instead of an internal error.
The text was updated successfully, but these errors were encountered: