Skip to content

Commit 62e1ff0

Browse files
committed
test/issue-1665
1 parent e0d6539 commit 62e1ff0

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed

test/issue-1665/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include $(CURDIR)/../include.mk

test/issue-1665/issue-1665-spec.k

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module VERIFICATION
2+
import TEST
3+
endmodule
4+
5+
module ISSUE-1665-SPEC
6+
import VERIFICATION
7+
8+
// Proving this claim requires inferring that the left-hand side of an
9+
// intermediate proof goal is defined.
10+
//
11+
rule <k> begin _ => end ?_ </k>
12+
endmodule
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#True

test/issue-1665/test.k

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module TEST-SYNTAX
2+
import INT
3+
4+
syntax Pgm ::= "begin" Int | "end" Int
5+
syntax Int ::= fun(Int) [function, no-evaluators]
6+
syntax Bool ::= isFun(Int) [function, functional, no-evaluators]
7+
8+
endmodule
9+
10+
module TEST
11+
import TEST-SYNTAX
12+
13+
configuration <k> $PGM:Pgm </k>
14+
15+
rule begin X => end fun(X)
16+
17+
rule [ceil-fun]: #Ceil(fun(X:Int)) => #True requires isFun(X) [anywhere, simplification]
18+
19+
endmodule

0 commit comments

Comments
 (0)