You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A variable on the LHS of the rule is being seen as on teh RHS of the rule for the haskell backend.
Input Files
module TEST
imports MAP
imports INT
imports BOOL
syntax Pgm ::= "a" | "b"
rule <k> a => b </k>
syntax Int ::= f ( Int ) [function, functional, no-evaluators]
configuration <k> $PGM:Pgm </k>
rule <k> a => b </k> requires f(_X) ==Int 3
endmodule
Reproduction Steps
+ kompile --backend haskell test.k --main-module TEST --syntax-module TEST
[Error] Compiler: Found variable _X on right hand side of rule, not bound on
left hand side. Did you mean "?_X"?
Source(/home/dev/src/k/test.k)
Location(14,37,14,39)
14 | rule <k> a => b </k> requires f(_X) ==Int 3
. ^~
[Error] Compiler: Had 1 structural errors.
Expected Behavior
This should kompile just fine for the haskell backend, variables in the requires clause should be considered as part of LHS for haskell backend.
The text was updated successfully, but these errors were encountered:
K Version
Actual version: 6f12ca3
Description
A variable on the LHS of the rule is being seen as on teh RHS of the rule for the haskell backend.
Input Files
Reproduction Steps
Expected Behavior
This should kompile just fine for the haskell backend, variables in the
requires
clause should be considered as part of LHS for haskell backend.The text was updated successfully, but these errors were encountered: