Skip to content

RValue as const Eq parsing failure: unexpected Eq #171

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

Closed
yanliu18 opened this issue Jul 3, 2023 · 0 comments
Closed

RValue as const Eq parsing failure: unexpected Eq #171

yanliu18 opened this issue Jul 3, 2023 · 0 comments
Labels
bug Something isn't working mir-parser MIR syntax in K

Comments

@yanliu18
Copy link
Contributor

yanliu18 commented Jul 3, 2023

On branch builtin-identifiers, the handwritten test- https://github.com/runtimeverification/mir-semantics/blob/refactor/builtin-identifiers/kmir/src/tests/integration/test-data/handwritten-mir/parsing/const-enum-same-as-builtin.mir
failed due to syntax error, unexpected Eq, expecting fn

It is expected to be parsed as the RValue::Use(Operand)::Constant kind.

This issue is related to

TODO: these sorts may need refactoring to closer match the `rustc` implementation.

and the issue #54

It is very likely we might need to investigate if we need to include 'tcx (type context) implementation in the semantic model.
It is also related to the problem of Rust's memory model #170

@yanliu18 yanliu18 added bug Something isn't working mir-parser MIR syntax in K labels Jul 3, 2023
@yanliu18 yanliu18 added this to the Milestone 3 - KMIR Semantics milestone Jul 13, 2023
@dkcumming dkcumming removed their assignment Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mir-parser MIR syntax in K
Projects
None yet
Development

No branches or pull requests

2 participants