Skip to content

Commit 09d68bb

Browse files
committed
Reorganize tests
1 parent e155e58 commit 09d68bb

5 files changed

+225
-202
lines changed

booster/test/rpc-integration/test-vacuous/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,15 @@ Rules `init` and `AC` introduce constraints on this variable:
4747
_Expected:_
4848
- The state is simplified and discovered to be `vacuous` (with state `b`).
4949

50+
1) _unchecked-vacuous-rewritten_
51+
52+
_Input:_ same as _vacuous-not-rewritten_
53+
- `execute` request with initial state `<k>b</k><int>N</int> \and N
54+
==Int 1 \and N =/=Int 1` (A contradiction in the initial constraints).
55+
56+
_Expected:_
57+
- the input constraints are not checked for satisfiability (`"assume-defined": true` is in params)
58+
- one rewrite step is made and the result is `stuck`
59+
5060
With `kore-rpc-dev`, some contradictions will be discovered before or while
5161
attempting to rewrite (at the time of writing, it returns `stuck`, though).

booster/test/rpc-integration/test-vacuous/params-vacuous-but-rewritten.json

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,215 @@
1+
{
2+
"jsonrpc": "2.0",
3+
"id": 1,
4+
"result": {
5+
"reason": "stuck",
6+
"depth": 0,
7+
"state": {
8+
"term": {
9+
"format": "KORE",
10+
"version": 1,
11+
"term": {
12+
"tag": "App",
13+
"name": "Lbl'-LT-'generatedTop'-GT-'",
14+
"sorts": [],
15+
"args": [
16+
{
17+
"tag": "App",
18+
"name": "Lbl'-LT-'k'-GT-'",
19+
"sorts": [],
20+
"args": [
21+
{
22+
"tag": "App",
23+
"name": "kseq",
24+
"sorts": [],
25+
"args": [
26+
{
27+
"tag": "App",
28+
"name": "inj",
29+
"sorts": [
30+
{
31+
"tag": "SortApp",
32+
"name": "SortState",
33+
"args": []
34+
},
35+
{
36+
"tag": "SortApp",
37+
"name": "SortKItem",
38+
"args": []
39+
}
40+
],
41+
"args": [
42+
{
43+
"tag": "DV",
44+
"sort": {
45+
"tag": "SortApp",
46+
"name": "SortState",
47+
"args": []
48+
},
49+
"value": "d"
50+
}
51+
]
52+
},
53+
{
54+
"tag": "App",
55+
"name": "dotk",
56+
"sorts": [],
57+
"args": []
58+
}
59+
]
60+
}
61+
]
62+
},
63+
{
64+
"tag": "App",
65+
"name": "Lbl'-LT-'int'-GT-'",
66+
"sorts": [],
67+
"args": [
68+
{
69+
"tag": "EVar",
70+
"name": "N",
71+
"sort": {
72+
"tag": "SortApp",
73+
"name": "SortInt",
74+
"args": []
75+
}
76+
}
77+
]
78+
},
79+
{
80+
"tag": "App",
81+
"name": "Lbl'-LT-'generatedCounter'-GT-'",
82+
"sorts": [],
83+
"args": [
84+
{
85+
"tag": "DV",
86+
"sort": {
87+
"tag": "SortApp",
88+
"name": "SortInt",
89+
"args": []
90+
},
91+
"value": "0"
92+
}
93+
]
94+
}
95+
]
96+
}
97+
},
98+
"predicate": {
99+
"format": "KORE",
100+
"version": 1,
101+
"term": {
102+
"tag": "And",
103+
"sort": {
104+
"tag": "SortApp",
105+
"name": "SortGeneratedTopCell",
106+
"args": []
107+
},
108+
"patterns": [
109+
{
110+
"tag": "Equals",
111+
"argSort": {
112+
"tag": "SortApp",
113+
"name": "SortBool",
114+
"args": []
115+
},
116+
"sort": {
117+
"tag": "SortApp",
118+
"name": "SortGeneratedTopCell",
119+
"args": []
120+
},
121+
"first": {
122+
"tag": "DV",
123+
"sort": {
124+
"tag": "SortApp",
125+
"name": "SortBool",
126+
"args": []
127+
},
128+
"value": "true"
129+
},
130+
"second": {
131+
"tag": "App",
132+
"name": "Lbl'UndsEqlsEqls'Int'Unds'",
133+
"sorts": [],
134+
"args": [
135+
{
136+
"tag": "EVar",
137+
"name": "N",
138+
"sort": {
139+
"tag": "SortApp",
140+
"name": "SortInt",
141+
"args": []
142+
}
143+
},
144+
{
145+
"tag": "DV",
146+
"sort": {
147+
"tag": "SortApp",
148+
"name": "SortInt",
149+
"args": []
150+
},
151+
"value": "0"
152+
}
153+
]
154+
}
155+
},
156+
{
157+
"tag": "Equals",
158+
"argSort": {
159+
"tag": "SortApp",
160+
"name": "SortBool",
161+
"args": []
162+
},
163+
"sort": {
164+
"tag": "SortApp",
165+
"name": "SortGeneratedTopCell",
166+
"args": []
167+
},
168+
"first": {
169+
"tag": "DV",
170+
"sort": {
171+
"tag": "SortApp",
172+
"name": "SortBool",
173+
"args": []
174+
},
175+
"value": "true"
176+
},
177+
"second": {
178+
"tag": "App",
179+
"name": "LblnotBool'Unds'",
180+
"sorts": [],
181+
"args": [
182+
{
183+
"tag": "App",
184+
"name": "Lbl'UndsEqlsEqls'Int'Unds'",
185+
"sorts": [],
186+
"args": [
187+
{
188+
"tag": "EVar",
189+
"name": "N",
190+
"sort": {
191+
"tag": "SortApp",
192+
"name": "SortInt",
193+
"args": []
194+
}
195+
},
196+
{
197+
"tag": "DV",
198+
"sort": {
199+
"tag": "SortApp",
200+
"name": "SortInt",
201+
"args": []
202+
},
203+
"value": "0"
204+
}
205+
]
206+
}
207+
]
208+
}
209+
}
210+
]
211+
}
212+
}
213+
}
214+
}
215+
}

booster/test/rpc-integration/test-vacuous/state-vacuous-but-rewritten.execute

-1
This file was deleted.

0 commit comments

Comments
 (0)