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

[K-Bug] NullPointerException when kompiling simple file #4716

Open
1 of 6 tasks
VCherukuri8 opened this issue Dec 19, 2024 · 0 comments
Open
1 of 6 tasks

[K-Bug] NullPointerException when kompiling simple file #4716

VCherukuri8 opened this issue Dec 19, 2024 · 0 comments

Comments

@VCherukuri8
Copy link

What component is the issue in?

None

Which command

  • kompile
  • kast
  • krun
  • kprove
  • kprovex
  • ksearch

What K Version?

v7.1.170

Operating System

Linux

K Definitions (If Possible)

module INTEGERS-SYNTAX
imports INT-SYNTAX

   syntax Addr ::= r" [\\+|\\-] " [token]
   syntax Mulx ::= r" [\\*|/] " [token]

   syntax Exp ::= "(" Exp ")" [bracket]
                  > Int [group(uneg)]
                  > left:
                  Exp Mulx Exp [group(muls), function]
                 | Exp Addr Exp [group(adds), function]

   syntax priority uneg > muls > adds

endmodule

module INTEGERS
imports INTEGERS-SYNTAX
imports INT

   rule A + B => A +Int B
   rule A - B => A -Int B
   rule A * B => A *Int B
   rule A / B => A /Int B

endmodule

Steps to Reproduce

literally just kompile this file and it'll cause the bug

Expected Results

I expected it to compile successfully

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

1 participant