-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Radu Mereuta <[email protected]> Co-authored-by: rv-jenkins <[email protected]>
- Loading branch information
1 parent
f132621
commit 207ff55
Showing
4 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
k-distribution/tests/regression-new/checkWarns/checkRHSHaskell.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// This should kompile just fine for the haskell backend, variables | ||
// in the requires clause should be considered as part of LHS for haskell backend. | ||
// https://github.com/runtimeverification/k/issues/2687 | ||
|
||
module CHECKRHSHASKELL-SYNTAX | ||
|
||
endmodule | ||
|
||
module CHECKRHSHASKELL | ||
imports CHECKRHSHASKELL-SYNTAX | ||
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 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters