Merge lp:~tapaal-contributor/tapaal/cpn-solvedBy into lp:~tapaal-contributor/tapaal/cpn-gui-dev
- cpn-solvedBy
- Merge into cpn-gui-dev
Proposed by
Kenneth Yrke Jørgensen
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jiri Srba | ||||
Approved revision: | 1576 | ||||
Merged at revision: | 1581 | ||||
Proposed branch: | lp:~tapaal-contributor/tapaal/cpn-solvedBy | ||||
Merge into: | lp:~tapaal-contributor/tapaal/cpn-gui-dev | ||||
Diff against target: |
375 lines (+33/-55) 9 files modified
src/dk/aau/cs/approximation/ApproximationWorker.java (+22/-22) src/dk/aau/cs/verification/QueryResult.java (+0/-9) src/dk/aau/cs/verification/UPPAAL/UppaalIconSelector.java (+1/-1) src/dk/aau/cs/verification/VerificationResult.java (+0/-4) src/dk/aau/cs/verification/VerifyTAPN/VerifyPN.java (+1/-2) src/dk/aau/cs/verification/VerifyTAPN/VerifyPNCTLOutputParser.java (+0/-1) src/dk/aau/cs/verification/VerifyTAPN/VerifyPNOutputParser.java (+0/-1) src/dk/aau/cs/verification/VerifyTAPN/VerifyTAPNOutputParser.java (+1/-5) src/net/tapaal/gui/petrinet/verification/RunVerification.java (+8/-10) |
||||
To merge this branch: | bzr merge lp:~tapaal-contributor/tapaal/cpn-solvedBy | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jiri Srba | Approve | ||
Review via email: mp+415019@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
Kenneth Yrke Jørgensen (yrke) wrote : | # |
- 1575. By Kenneth Yrke Jørgensen
-
Fixed placement of show raw query btn and fixed detection of solved siphon-trap.
Also removed old solved by state-equation (covered by query simplification)
- 1576. By Kenneth Yrke Jørgensen
-
Updated skeleton analysis text
Revision history for this message
Jiri Srba (srba) : | # |
review:
Approve
- 1577. By Kenneth Yrke Jørgensen
-
Merged cpn branch into solvedBy
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'src/dk/aau/cs/approximation/ApproximationWorker.java' | |||
2 | --- src/dk/aau/cs/approximation/ApproximationWorker.java 2022-01-28 12:08:30 +0000 | |||
3 | +++ src/dk/aau/cs/approximation/ApproximationWorker.java 2022-02-08 09:07:46 +0000 | |||
4 | @@ -82,7 +82,7 @@ | |||
5 | 82 | decomposeTrace(result.getSecondaryTrace(), nameMapping, netNetwork), | 82 | decomposeTrace(result.getSecondaryTrace(), nameMapping, netNetwork), |
6 | 83 | result.verificationTime(), | 83 | result.verificationTime(), |
7 | 84 | result.stats(), | 84 | result.stats(), |
9 | 85 | result.isSolvedUsingStateEquation(), | 85 | false, |
10 | 86 | result.getUnfoldedModel()); | 86 | result.getUnfoldedModel()); |
11 | 87 | toReturn.setNameMapping(transformedModel.value2()); | 87 | toReturn.setNameMapping(transformedModel.value2()); |
12 | 88 | 88 | ||
13 | @@ -103,7 +103,7 @@ | |||
14 | 103 | decomposeTrace(approxResult.getSecondaryTrace(), nameMapping, netNetwork), | 103 | decomposeTrace(approxResult.getSecondaryTrace(), nameMapping, netNetwork), |
15 | 104 | approxResult.verificationTime(), | 104 | approxResult.verificationTime(), |
16 | 105 | approxResult.stats(), | 105 | approxResult.stats(), |
18 | 106 | approxResult.isSolvedUsingStateEquation(), | 106 | false, |
19 | 107 | approxResult.getUnfoldedModel()); | 107 | approxResult.getUnfoldedModel()); |
20 | 108 | toReturn.setNameMapping(nameMapping); | 108 | toReturn.setNameMapping(nameMapping); |
21 | 109 | 109 | ||
22 | @@ -151,7 +151,7 @@ | |||
23 | 151 | decomposeTrace(result.getSecondaryTrace(), nameMapping, netNetwork), | 151 | decomposeTrace(result.getSecondaryTrace(), nameMapping, netNetwork), |
24 | 152 | approxResult.verificationTime() + result.verificationTime(), | 152 | approxResult.verificationTime() + result.verificationTime(), |
25 | 153 | approxResult.stats(), | 153 | approxResult.stats(), |
27 | 154 | approxResult.isSolvedUsingStateEquation(), | 154 | false, |
28 | 155 | approxResult.getUnfoldedModel()); | 155 | approxResult.getUnfoldedModel()); |
29 | 156 | toReturn.setNameMapping(nameMapping); | 156 | toReturn.setNameMapping(nameMapping); |
30 | 157 | 157 | ||
31 | @@ -176,7 +176,7 @@ | |||
32 | 176 | decomposeTrace(approxResult.getSecondaryTrace(), nameMapping, netNetwork), | 176 | decomposeTrace(approxResult.getSecondaryTrace(), nameMapping, netNetwork), |
33 | 177 | approxResult.verificationTime(), | 177 | approxResult.verificationTime(), |
34 | 178 | approxResult.stats(), | 178 | approxResult.stats(), |
36 | 179 | approxResult.isSolvedUsingStateEquation(), | 179 | false, |
37 | 180 | approxResult.getUnfoldedModel()); | 180 | approxResult.getUnfoldedModel()); |
38 | 181 | toReturn.setNameMapping(nameMapping); | 181 | toReturn.setNameMapping(nameMapping); |
39 | 182 | 182 | ||
40 | @@ -196,7 +196,7 @@ | |||
41 | 196 | decomposeTrace(approxResult.getSecondaryTrace(), nameMapping, netNetwork), | 196 | decomposeTrace(approxResult.getSecondaryTrace(), nameMapping, netNetwork), |
42 | 197 | approxResult.verificationTime(), | 197 | approxResult.verificationTime(), |
43 | 198 | approxResult.stats(), | 198 | approxResult.stats(), |
45 | 199 | approxResult.isSolvedUsingStateEquation(), | 199 | false, |
46 | 200 | approxResult.getUnfoldedModel()); | 200 | approxResult.getUnfoldedModel()); |
47 | 201 | toReturn.setNameMapping(nameMapping); | 201 | toReturn.setNameMapping(nameMapping); |
48 | 202 | 202 | ||
49 | @@ -231,7 +231,7 @@ | |||
50 | 231 | decomposeTrace(result.getSecondaryTrace(), nameMapping, netNetwork), | 231 | decomposeTrace(result.getSecondaryTrace(), nameMapping, netNetwork), |
51 | 232 | result.verificationTime(), | 232 | result.verificationTime(), |
52 | 233 | result.stats(), | 233 | result.stats(), |
54 | 234 | result.isSolvedUsingStateEquation(), | 234 | false, |
55 | 235 | result.getUnfoldedModel()); | 235 | result.getUnfoldedModel()); |
56 | 236 | toReturn.setNameMapping(nameMapping); | 236 | toReturn.setNameMapping(nameMapping); |
57 | 237 | 237 | ||
58 | @@ -252,7 +252,7 @@ | |||
59 | 252 | decomposeTrace(result.getSecondaryTrace(), nameMapping, netNetwork), | 252 | decomposeTrace(result.getSecondaryTrace(), nameMapping, netNetwork), |
60 | 253 | result.verificationTime(), | 253 | result.verificationTime(), |
61 | 254 | result.stats(), | 254 | result.stats(), |
63 | 255 | result.isSolvedUsingStateEquation(), | 255 | false, |
64 | 256 | result.getUnfoldedModel()); | 256 | result.getUnfoldedModel()); |
65 | 257 | toReturn.setNameMapping(nameMapping); | 257 | toReturn.setNameMapping(nameMapping); |
66 | 258 | 258 | ||
67 | @@ -271,7 +271,7 @@ | |||
68 | 271 | decomposeTrace(approxResult.getSecondaryTrace(), nameMapping, netNetwork), | 271 | decomposeTrace(approxResult.getSecondaryTrace(), nameMapping, netNetwork), |
69 | 272 | approxResult.verificationTime(), | 272 | approxResult.verificationTime(), |
70 | 273 | approxResult.stats(), | 273 | approxResult.stats(), |
72 | 274 | result.isSolvedUsingStateEquation(), | 274 | false, |
73 | 275 | result.getUnfoldedModel()); | 275 | result.getUnfoldedModel()); |
74 | 276 | toReturn.setNameMapping(nameMapping); | 276 | toReturn.setNameMapping(nameMapping); |
75 | 277 | 277 | ||
76 | @@ -323,7 +323,7 @@ | |||
77 | 323 | decomposeTrace(result.getSecondaryTrace(), nameMapping, netNetwork), | 323 | decomposeTrace(result.getSecondaryTrace(), nameMapping, netNetwork), |
78 | 324 | approxResult.verificationTime() + result.verificationTime(), | 324 | approxResult.verificationTime() + result.verificationTime(), |
79 | 325 | approxResult.stats(), | 325 | approxResult.stats(), |
81 | 326 | approxResult.isSolvedUsingStateEquation(), | 326 | false, |
82 | 327 | approxResult.getUnfoldedModel()); | 327 | approxResult.getUnfoldedModel()); |
83 | 328 | toReturn.setNameMapping(transformedModel.value2()); | 328 | toReturn.setNameMapping(transformedModel.value2()); |
84 | 329 | } | 329 | } |
85 | @@ -342,7 +342,7 @@ | |||
86 | 342 | decomposeTrace(approxResult.getSecondaryTrace(), nameMapping, netNetwork), | 342 | decomposeTrace(approxResult.getSecondaryTrace(), nameMapping, netNetwork), |
87 | 343 | approxResult.verificationTime(), | 343 | approxResult.verificationTime(), |
88 | 344 | approxResult.stats(), | 344 | approxResult.stats(), |
90 | 345 | approxResult.isSolvedUsingStateEquation(), | 345 | false, |
91 | 346 | approxResult.getUnfoldedModel()); | 346 | approxResult.getUnfoldedModel()); |
92 | 347 | toReturn.setNameMapping(nameMapping); | 347 | toReturn.setNameMapping(nameMapping); |
93 | 348 | } | 348 | } |
94 | @@ -359,7 +359,7 @@ | |||
95 | 359 | decomposeTrace(result.getSecondaryTrace(), nameMapping, netNetwork), | 359 | decomposeTrace(result.getSecondaryTrace(), nameMapping, netNetwork), |
96 | 360 | result.verificationTime(), | 360 | result.verificationTime(), |
97 | 361 | result.stats(), | 361 | result.stats(), |
99 | 362 | result.isSolvedUsingStateEquation(), | 362 | false, |
100 | 363 | result.getRawOutput(), | 363 | result.getRawOutput(), |
101 | 364 | result.getUnfoldedModel()); | 364 | result.getUnfoldedModel()); |
102 | 365 | toReturn.setNameMapping(nameMapping); | 365 | toReturn.setNameMapping(nameMapping); |
103 | @@ -428,7 +428,7 @@ | |||
104 | 428 | verificationResult.getSecondaryTrace(), | 428 | verificationResult.getSecondaryTrace(), |
105 | 429 | verificationResult.verificationTime(), | 429 | verificationResult.verificationTime(), |
106 | 430 | verificationResult.stats(), | 430 | verificationResult.stats(), |
108 | 431 | verificationResult.isSolvedUsingStateEquation(), | 431 | false, |
109 | 432 | verificationResult.getUnfoldedModel()); | 432 | verificationResult.getUnfoldedModel()); |
110 | 433 | value.setNameMapping(composedModel.value2()); | 433 | value.setNameMapping(composedModel.value2()); |
111 | 434 | } else { | 434 | } else { |
112 | @@ -446,7 +446,7 @@ | |||
113 | 446 | decomposeTrace(approxResult.getSecondaryTrace(), nameMapping, netNetwork), | 446 | decomposeTrace(approxResult.getSecondaryTrace(), nameMapping, netNetwork), |
114 | 447 | approxResult.verificationTime(), | 447 | approxResult.verificationTime(), |
115 | 448 | approxResult.stats(), | 448 | approxResult.stats(), |
117 | 449 | verificationResult.isSolvedUsingStateEquation(), | 449 | false, |
118 | 450 | verificationResult.getUnfoldedModel()); | 450 | verificationResult.getUnfoldedModel()); |
119 | 451 | valueNetwork.setNameMapping(nameMapping); | 451 | valueNetwork.setNameMapping(nameMapping); |
120 | 452 | 452 | ||
121 | @@ -488,7 +488,7 @@ | |||
122 | 488 | approxResult.getSecondaryTrace(), | 488 | approxResult.getSecondaryTrace(), |
123 | 489 | approxResult.verificationTime() + verificationResult.verificationTime(), | 489 | approxResult.verificationTime() + verificationResult.verificationTime(), |
124 | 490 | approxResult.stats(), | 490 | approxResult.stats(), |
126 | 491 | verificationResult.isSolvedUsingStateEquation(), | 491 | false, |
127 | 492 | verificationResult.getUnfoldedModel()); | 492 | verificationResult.getUnfoldedModel()); |
128 | 493 | value.setNameMapping(composedModel.value2()); | 493 | value.setNameMapping(composedModel.value2()); |
129 | 494 | } | 494 | } |
130 | @@ -508,7 +508,7 @@ | |||
131 | 508 | verificationResult.getSecondaryTrace(), | 508 | verificationResult.getSecondaryTrace(), |
132 | 509 | verificationResult.verificationTime(), | 509 | verificationResult.verificationTime(), |
133 | 510 | verificationResult.stats(), | 510 | verificationResult.stats(), |
135 | 511 | verificationResult.isSolvedUsingStateEquation(), | 511 | false, |
136 | 512 | verificationResult.getUnfoldedModel()); | 512 | verificationResult.getUnfoldedModel()); |
137 | 513 | value.setNameMapping(composedModel.value2()); | 513 | value.setNameMapping(composedModel.value2()); |
138 | 514 | } | 514 | } |
139 | @@ -525,7 +525,7 @@ | |||
140 | 525 | verificationResult.getSecondaryTrace(), | 525 | verificationResult.getSecondaryTrace(), |
141 | 526 | verificationResult.verificationTime(), | 526 | verificationResult.verificationTime(), |
142 | 527 | verificationResult.stats(), | 527 | verificationResult.stats(), |
144 | 528 | verificationResult.isSolvedUsingStateEquation(), | 528 | false, |
145 | 529 | verificationResult.getUnfoldedModel()); | 529 | verificationResult.getUnfoldedModel()); |
146 | 530 | value.setNameMapping(composedModel.value2()); | 530 | value.setNameMapping(composedModel.value2()); |
147 | 531 | } | 531 | } |
148 | @@ -544,7 +544,7 @@ | |||
149 | 544 | verificationResult.getSecondaryTrace(), | 544 | verificationResult.getSecondaryTrace(), |
150 | 545 | verificationResult.verificationTime(), | 545 | verificationResult.verificationTime(), |
151 | 546 | verificationResult.stats(), | 546 | verificationResult.stats(), |
153 | 547 | verificationResult.isSolvedUsingStateEquation(), | 547 | false, |
154 | 548 | verificationResult.getUnfoldedModel()); | 548 | verificationResult.getUnfoldedModel()); |
155 | 549 | value.setNameMapping(composedModel.value2()); | 549 | value.setNameMapping(composedModel.value2()); |
156 | 550 | } | 550 | } |
157 | @@ -562,7 +562,7 @@ | |||
158 | 562 | verificationResult.getSecondaryTrace(), | 562 | verificationResult.getSecondaryTrace(), |
159 | 563 | verificationResult.verificationTime(), | 563 | verificationResult.verificationTime(), |
160 | 564 | verificationResult.stats(), | 564 | verificationResult.stats(), |
162 | 565 | verificationResult.isSolvedUsingStateEquation(), | 565 | false, |
163 | 566 | verificationResult.getUnfoldedModel()); | 566 | verificationResult.getUnfoldedModel()); |
164 | 567 | value.setNameMapping(composedModel.value2()); | 567 | value.setNameMapping(composedModel.value2()); |
165 | 568 | 568 | ||
166 | @@ -584,7 +584,7 @@ | |||
167 | 584 | decomposeTrace(approxResult.getSecondaryTrace(), nameMapping, netNetwork), | 584 | decomposeTrace(approxResult.getSecondaryTrace(), nameMapping, netNetwork), |
168 | 585 | approxResult.verificationTime(), | 585 | approxResult.verificationTime(), |
169 | 586 | approxResult.stats(), | 586 | approxResult.stats(), |
171 | 587 | approxResult.isSolvedUsingStateEquation(), | 587 | false, |
172 | 588 | verificationResult.getUnfoldedModel()); | 588 | verificationResult.getUnfoldedModel()); |
173 | 589 | valueNetwork.setNameMapping(nameMapping); | 589 | valueNetwork.setNameMapping(nameMapping); |
174 | 590 | 590 | ||
175 | @@ -631,7 +631,7 @@ | |||
176 | 631 | verificationResult.getSecondaryTrace(), | 631 | verificationResult.getSecondaryTrace(), |
177 | 632 | verificationResult.verificationTime() + approxResult.verificationTime(), | 632 | verificationResult.verificationTime() + approxResult.verificationTime(), |
178 | 633 | verificationResult.stats(), | 633 | verificationResult.stats(), |
180 | 634 | verificationResult.isSolvedUsingStateEquation(), | 634 | false, |
181 | 635 | verificationResult.getUnfoldedModel()); | 635 | verificationResult.getUnfoldedModel()); |
182 | 636 | value.setNameMapping(composedModel.value2()); | 636 | value.setNameMapping(composedModel.value2()); |
183 | 637 | } | 637 | } |
184 | @@ -646,7 +646,7 @@ | |||
185 | 646 | verificationResult.getSecondaryTrace(), | 646 | verificationResult.getSecondaryTrace(), |
186 | 647 | verificationResult.verificationTime(), | 647 | verificationResult.verificationTime(), |
187 | 648 | verificationResult.stats(), | 648 | verificationResult.stats(), |
189 | 649 | verificationResult.isSolvedUsingStateEquation(), | 649 | false, |
190 | 650 | verificationResult.getUnfoldedModel()); | 650 | verificationResult.getUnfoldedModel()); |
191 | 651 | value.setNameMapping(composedModel.value2()); | 651 | value.setNameMapping(composedModel.value2()); |
192 | 652 | } | 652 | } |
193 | @@ -660,7 +660,7 @@ | |||
194 | 660 | verificationResult.getSecondaryTrace(), | 660 | verificationResult.getSecondaryTrace(), |
195 | 661 | verificationResult.verificationTime(), | 661 | verificationResult.verificationTime(), |
196 | 662 | verificationResult.stats(), | 662 | verificationResult.stats(), |
198 | 663 | verificationResult.isSolvedUsingStateEquation(), | 663 | false, |
199 | 664 | verificationResult.getUnfoldedModel()); | 664 | verificationResult.getUnfoldedModel()); |
200 | 665 | value.setNameMapping(composedModel.value2()); | 665 | value.setNameMapping(composedModel.value2()); |
201 | 666 | } | 666 | } |
202 | 667 | 667 | ||
203 | === modified file 'src/dk/aau/cs/verification/QueryResult.java' | |||
204 | --- src/dk/aau/cs/verification/QueryResult.java 2022-02-02 14:59:29 +0000 | |||
205 | +++ src/dk/aau/cs/verification/QueryResult.java 2022-02-08 09:07:46 +0000 | |||
206 | @@ -26,14 +26,6 @@ | |||
207 | 26 | this.solvedUsingTraceAbstractRefinement = solvedUsingTraceAbstractRefinement; | 26 | this.solvedUsingTraceAbstractRefinement = solvedUsingTraceAbstractRefinement; |
208 | 27 | } | 27 | } |
209 | 28 | 28 | ||
210 | 29 | public boolean isSolvedUsingStateEquation() { | ||
211 | 30 | return solvedUsingStateEquation; | ||
212 | 31 | } | ||
213 | 32 | |||
214 | 33 | public void setSolvedUsingStateEquation(boolean solvedUsingStateEquation) { | ||
215 | 34 | this.solvedUsingStateEquation = solvedUsingStateEquation; | ||
216 | 35 | } | ||
217 | 36 | |||
218 | 37 | public boolean isSolvedUsingSiphonTrap() { | 29 | public boolean isSolvedUsingSiphonTrap() { |
219 | 38 | return solvedUsingSiphonTrap; | 30 | return solvedUsingSiphonTrap; |
220 | 39 | } | 31 | } |
221 | @@ -44,7 +36,6 @@ | |||
222 | 44 | 36 | ||
223 | 45 | private boolean solvedUsingQuerySimplification; | 37 | private boolean solvedUsingQuerySimplification; |
224 | 46 | private boolean solvedUsingTraceAbstractRefinement; | 38 | private boolean solvedUsingTraceAbstractRefinement; |
225 | 47 | private boolean solvedUsingStateEquation; | ||
226 | 48 | private boolean solvedUsingSiphonTrap; | 39 | private boolean solvedUsingSiphonTrap; |
227 | 49 | 40 | ||
228 | 50 | public boolean isCTL = false; | 41 | public boolean isCTL = false; |
229 | 51 | 42 | ||
230 | === modified file 'src/dk/aau/cs/verification/UPPAAL/UppaalIconSelector.java' | |||
231 | --- src/dk/aau/cs/verification/UPPAAL/UppaalIconSelector.java 2020-04-18 15:55:51 +0000 | |||
232 | +++ src/dk/aau/cs/verification/UPPAAL/UppaalIconSelector.java 2022-02-08 09:07:46 +0000 | |||
233 | @@ -11,7 +11,7 @@ | |||
234 | 11 | @Override | 11 | @Override |
235 | 12 | public ImageIcon getIconFor(VerificationResult<?> result){ | 12 | public ImageIcon getIconFor(VerificationResult<?> result){ |
236 | 13 | if (result.getQueryResult().isApproximationInconclusive()) return rerunIcon; | 13 | if (result.getQueryResult().isApproximationInconclusive()) return rerunIcon; |
238 | 14 | if(result.isSolvedUsingStateEquation()) return result.isQuerySatisfied()? satisfiedIcon:notSatisfiedIcon; // If we got a result from over-approximation, this is always conclusive. | 14 | if(result.isResolvedUsingSkeletonPreprocessor()) return result.isQuerySatisfied()? satisfiedIcon:notSatisfiedIcon; // If we got a result from over-approximation, this is always conclusive. |
239 | 15 | if(result.getQueryResult().hasDeadlock()) return inconclusiveIcon; | 15 | if(result.getQueryResult().hasDeadlock()) return inconclusiveIcon; |
240 | 16 | 16 | ||
241 | 17 | switch(result.getQueryResult().queryType()) | 17 | switch(result.getQueryResult().queryType()) |
242 | 18 | 18 | ||
243 | === modified file 'src/dk/aau/cs/verification/VerificationResult.java' | |||
244 | --- src/dk/aau/cs/verification/VerificationResult.java 2022-02-02 14:59:29 +0000 | |||
245 | +++ src/dk/aau/cs/verification/VerificationResult.java 2022-02-08 09:07:46 +0000 | |||
246 | @@ -30,10 +30,6 @@ | |||
247 | 30 | return queryResult.isSolvedUsingTraceAbstractRefinement(); | 30 | return queryResult.isSolvedUsingTraceAbstractRefinement(); |
248 | 31 | } | 31 | } |
249 | 32 | 32 | ||
250 | 33 | public boolean isSolvedUsingStateEquation() { | ||
251 | 34 | return queryResult.isSolvedUsingStateEquation(); | ||
252 | 35 | } | ||
253 | 36 | |||
254 | 37 | public boolean isSolvedUsingSiphonTrap() { | 33 | public boolean isSolvedUsingSiphonTrap() { |
255 | 38 | return queryResult.isSolvedUsingSiphonTrap(); | 34 | return queryResult.isSolvedUsingSiphonTrap(); |
256 | 39 | } | 35 | } |
257 | 40 | 36 | ||
258 | === modified file 'src/dk/aau/cs/verification/VerifyTAPN/VerifyPN.java' | |||
259 | --- src/dk/aau/cs/verification/VerifyTAPN/VerifyPN.java 2022-02-08 08:56:59 +0000 | |||
260 | +++ src/dk/aau/cs/verification/VerifyTAPN/VerifyPN.java 2022-02-08 09:07:46 +0000 | |||
261 | @@ -347,10 +347,9 @@ | |||
262 | 347 | tapnTrace = parseTrace(errorOutput, options, model, exportedModel, query, queryResult.value1()); | 347 | tapnTrace = parseTrace(errorOutput, options, model, exportedModel, query, queryResult.value1()); |
263 | 348 | } | 348 | } |
264 | 349 | } | 349 | } |
265 | 350 | |||
266 | 350 | var result = new VerificationResult<TimedArcPetriNetTrace>(queryResult.value1(), tapnTrace, runner.getRunningTime(), queryResult.value2(), false, standardOutput + "\n\n" + errorOutput, model); | 351 | var result = new VerificationResult<TimedArcPetriNetTrace>(queryResult.value1(), tapnTrace, runner.getRunningTime(), queryResult.value2(), false, standardOutput + "\n\n" + errorOutput, model); |
267 | 351 | if (queryResult.value1().isSolvedUsingStateEquation()) { | ||
268 | 352 | 352 | ||
269 | 353 | } | ||
270 | 354 | return result; | 353 | return result; |
271 | 355 | } | 354 | } |
272 | 356 | } | 355 | } |
273 | 357 | 356 | ||
274 | === modified file 'src/dk/aau/cs/verification/VerifyTAPN/VerifyPNCTLOutputParser.java' | |||
275 | --- src/dk/aau/cs/verification/VerifyTAPN/VerifyPNCTLOutputParser.java 2022-02-02 14:59:29 +0000 | |||
276 | +++ src/dk/aau/cs/verification/VerifyTAPN/VerifyPNCTLOutputParser.java 2022-02-08 09:07:46 +0000 | |||
277 | @@ -90,7 +90,6 @@ | |||
278 | 90 | BoundednessAnalysisResult boundedAnalysis = new BoundednessAnalysisResult(totalTokens, maxUsedTokens, extraTokens); | 90 | BoundednessAnalysisResult boundedAnalysis = new BoundednessAnalysisResult(totalTokens, maxUsedTokens, extraTokens); |
279 | 91 | var qr = new QueryResult(result, boundedAnalysis, query, false); | 91 | var qr = new QueryResult(result, boundedAnalysis, query, false); |
280 | 92 | qr.setSolvedUsingQuerySimplification(solvedUsingQuerySimplification); | 92 | qr.setSolvedUsingQuerySimplification(solvedUsingQuerySimplification); |
281 | 93 | qr.setSolvedUsingStateEquation(solvedUsingStateEquation); | ||
282 | 94 | qr.setSolvedUsingTraceAbstractRefinement(solvedUsingTraceAbstractRefinement); | 93 | qr.setSolvedUsingTraceAbstractRefinement(solvedUsingTraceAbstractRefinement); |
283 | 95 | qr.setSolvedUsingSiphonTrap(solvedUsingSiphonTrap); | 94 | qr.setSolvedUsingSiphonTrap(solvedUsingSiphonTrap); |
284 | 96 | 95 | ||
285 | 97 | 96 | ||
286 | === modified file 'src/dk/aau/cs/verification/VerifyTAPN/VerifyPNOutputParser.java' | |||
287 | --- src/dk/aau/cs/verification/VerifyTAPN/VerifyPNOutputParser.java 2022-02-02 14:59:29 +0000 | |||
288 | +++ src/dk/aau/cs/verification/VerifyTAPN/VerifyPNOutputParser.java 2022-02-08 09:07:46 +0000 | |||
289 | @@ -177,7 +177,6 @@ | |||
290 | 177 | 177 | ||
291 | 178 | var qr = new QueryResult(result, boundedAnalysis, query, false); | 178 | var qr = new QueryResult(result, boundedAnalysis, query, false); |
292 | 179 | qr.setSolvedUsingQuerySimplification(solvedUsingQuerySimplification); | 179 | qr.setSolvedUsingQuerySimplification(solvedUsingQuerySimplification); |
293 | 180 | qr.setSolvedUsingStateEquation(solvedUsingStateEquation); | ||
294 | 181 | qr.setSolvedUsingTraceAbstractRefinement(solvedUsingTraceAbstractRefinement); | 180 | qr.setSolvedUsingTraceAbstractRefinement(solvedUsingTraceAbstractRefinement); |
295 | 182 | qr.setSolvedUsingSiphonTrap(solvedUsingSiphonTrap); | 181 | qr.setSolvedUsingSiphonTrap(solvedUsingSiphonTrap); |
296 | 183 | return new Tuple<QueryResult, Stats>(qr, new Stats(discovered, explored, explored, transitionStats, placeBoundStats, reductionStats)); | 182 | return new Tuple<QueryResult, Stats>(qr, new Stats(discovered, explored, explored, transitionStats, placeBoundStats, reductionStats)); |
297 | 184 | 183 | ||
298 | === modified file 'src/dk/aau/cs/verification/VerifyTAPN/VerifyTAPNOutputParser.java' | |||
299 | --- src/dk/aau/cs/verification/VerifyTAPN/VerifyTAPNOutputParser.java 2022-02-02 14:59:29 +0000 | |||
300 | +++ src/dk/aau/cs/verification/VerifyTAPN/VerifyTAPNOutputParser.java 2022-02-08 09:07:46 +0000 | |||
301 | @@ -38,9 +38,7 @@ | |||
302 | 38 | boolean solvedUsingQuerySimplification = false; | 38 | boolean solvedUsingQuerySimplification = false; |
303 | 39 | private static final String solvedUsingTraceAbstractRefinement_STRING = "Solved using Trace Abstraction Refinement"; | 39 | private static final String solvedUsingTraceAbstractRefinement_STRING = "Solved using Trace Abstraction Refinement"; |
304 | 40 | boolean solvedUsingTraceAbstractRefinement = false; | 40 | boolean solvedUsingTraceAbstractRefinement = false; |
308 | 41 | private static final String solvedUsingStateEquation_STRING = "Solved using Trace Abstraction Refinement"; | 41 | private static final String solvedUsingSiphonTrap_STRING = "Query solved by Siphon-Trap Analysis."; |
306 | 42 | boolean solvedUsingStateEquation = false; | ||
307 | 43 | private static final String solvedUsingSiphonTrap_STRING = "Solved using Siphon Trap"; | ||
309 | 44 | boolean solvedUsingSiphonTrap = false; | 42 | boolean solvedUsingSiphonTrap = false; |
310 | 45 | 43 | ||
311 | 46 | void parseSolvedMethod(String line) { | 44 | void parseSolvedMethod(String line) { |
312 | @@ -48,8 +46,6 @@ | |||
313 | 48 | solvedUsingQuerySimplification = true; | 46 | solvedUsingQuerySimplification = true; |
314 | 49 | } else if (line.contains(solvedUsingTraceAbstractRefinement_STRING)) { | 47 | } else if (line.contains(solvedUsingTraceAbstractRefinement_STRING)) { |
315 | 50 | solvedUsingTraceAbstractRefinement = true; | 48 | solvedUsingTraceAbstractRefinement = true; |
316 | 51 | } else if (line.contains(solvedUsingStateEquation_STRING)) { | ||
317 | 52 | solvedUsingStateEquation = true; | ||
318 | 53 | } else if (line.contains(solvedUsingSiphonTrap_STRING)) { | 49 | } else if (line.contains(solvedUsingSiphonTrap_STRING)) { |
319 | 54 | solvedUsingSiphonTrap = true; | 50 | solvedUsingSiphonTrap = true; |
320 | 55 | } | 51 | } |
321 | 56 | 52 | ||
322 | === modified file 'src/net/tapaal/gui/petrinet/verification/RunVerification.java' | |||
323 | --- src/net/tapaal/gui/petrinet/verification/RunVerification.java 2022-02-03 12:31:00 +0000 | |||
324 | +++ src/net/tapaal/gui/petrinet/verification/RunVerification.java 2022-02-08 09:07:46 +0000 | |||
325 | @@ -382,34 +382,32 @@ | |||
326 | 382 | if (result.getRawOutput() != null) { | 382 | if (result.getRawOutput() != null) { |
327 | 383 | JButton showRawQueryButton = new JButton("Show raw query results"); | 383 | JButton showRawQueryButton = new JButton("Show raw query results"); |
328 | 384 | showRawQueryButton.addActionListener(arg0 -> JOptionPane.showMessageDialog(panel, createRawQueryPanel(result.getRawOutput()), "Raw query results", JOptionPane.INFORMATION_MESSAGE)); | 384 | showRawQueryButton.addActionListener(arg0 -> JOptionPane.showMessageDialog(panel, createRawQueryPanel(result.getRawOutput()), "Raw query results", JOptionPane.INFORMATION_MESSAGE)); |
330 | 385 | gbc = GridBagHelper.as(1, 5, WEST, new Insets(0,0,10,0)); | 385 | gbc = GridBagHelper.as(1, rowOffset+1, WEST, new Insets(0,0,10,0)); |
331 | 386 | panel.add(showRawQueryButton, gbc); | 386 | panel.add(showRawQueryButton, gbc); |
332 | 387 | } | 387 | } |
333 | 388 | 388 | ||
334 | 389 | if (result.isResolvedUsingSkeletonPreprocessor()) { | 389 | if (result.isResolvedUsingSkeletonPreprocessor()) { |
336 | 390 | gbc = GridBagHelper.as(0, rowOffset+1, GridBagHelper.Anchor.WEST, new Insets(0,0,15,0)); | 390 | gbc = GridBagHelper.as(0, rowOffset+2, GridBagHelper.Anchor.WEST, new Insets(0,0,15,0)); |
337 | 391 | gbc.gridwidth = 2; | 391 | gbc.gridwidth = 2; |
339 | 392 | panel.add(new JLabel(toHTML("The query was resolved using Skeleton Analysis preprocessing")), gbc); | 392 | panel.add(new JLabel(toHTML("The query was answered by Skeleton Analysis preprocessing.")), gbc); |
340 | 393 | } | 393 | } |
341 | 394 | 394 | ||
342 | 395 | 395 | ||
344 | 396 | gbc = GridBagHelper.as(0, rowOffset+2, WEST, new Insets(0,0,15,0)); | 396 | gbc = GridBagHelper.as(0, rowOffset+3, WEST, new Insets(0,0,15,0)); |
345 | 397 | gbc.gridwidth = 2; | 397 | gbc.gridwidth = 2; |
346 | 398 | if(result.isSolvedUsingQuerySimplification()){ | 398 | if(result.isSolvedUsingQuerySimplification()){ |
347 | 399 | panel.add(new JLabel(toHTML("The query was resolved using Query Simplification.")), gbc); | 399 | panel.add(new JLabel(toHTML("The query was resolved using Query Simplification.")), gbc); |
348 | 400 | } else if (result.isSolvedUsingTraceAbstractRefinement()){ | 400 | } else if (result.isSolvedUsingTraceAbstractRefinement()){ |
352 | 401 | panel.add(new JLabel(toHTML("The query was not resolved using Trace Abstraction Refinement.")), gbc); | 401 | panel.add(new JLabel(toHTML("The query was resolved using Trace Abstraction Refinement.")), gbc); |
350 | 402 | } else if (result.isSolvedUsingStateEquation()) { | ||
351 | 403 | panel.add(new JLabel(toHTML("The query was resolved using state equations.")), gbc); | ||
353 | 404 | } else if (result.isSolvedUsingSiphonTrap()) { | 402 | } else if (result.isSolvedUsingSiphonTrap()) { |
354 | 405 | panel.add(new JLabel(toHTML("The query was resolved using Siphon Trap.")), gbc); | 403 | panel.add(new JLabel(toHTML("The query was resolved using Siphon Trap.")), gbc); |
355 | 406 | } | 404 | } |
356 | 407 | 405 | ||
358 | 408 | gbc = GridBagHelper.as(0, rowOffset+3, WEST); | 406 | gbc = GridBagHelper.as(0, rowOffset+4, WEST); |
359 | 409 | gbc.gridwidth = 2; | 407 | gbc.gridwidth = 2; |
360 | 410 | panel.add(new JLabel(result.getVerificationTimeString()), gbc); | 408 | panel.add(new JLabel(result.getVerificationTimeString()), gbc); |
361 | 411 | 409 | ||
363 | 412 | gbc = GridBagHelper.as(0, rowOffset+4, WEST); | 410 | gbc = GridBagHelper.as(0, rowOffset+5, WEST); |
364 | 413 | gbc.gridwidth = 2; | 411 | gbc.gridwidth = 2; |
365 | 414 | panel.add(new JLabel("Estimated memory usage: "+MemoryMonitor.getPeakMemory()), gbc); | 412 | panel.add(new JLabel("Estimated memory usage: "+MemoryMonitor.getPeakMemory()), gbc); |
366 | 415 | 413 | ||
367 | @@ -421,7 +419,7 @@ | |||
368 | 421 | (queryResult.queryType() == QueryType.AF && queryResult.isQuerySatisfied())) | 419 | (queryResult.queryType() == QueryType.AF && queryResult.isQuerySatisfied())) |
369 | 422 | && modelChecker.useDiscreteSemantics()) { | 420 | && modelChecker.useDiscreteSemantics()) { |
370 | 423 | 421 | ||
372 | 424 | gbc = GridBagHelper.as(0, rowOffset+7, WEST); | 422 | gbc = GridBagHelper.as(0, rowOffset+8, WEST); |
373 | 425 | gbc.gridwidth = 2; | 423 | gbc.gridwidth = 2; |
374 | 426 | panel.add(new JLabel("<html><font color=red>The verification answer is guaranteed for<br/>the discrete semantics only (integer delays).</font></html>"), gbc); | 424 | panel.add(new JLabel("<html><font color=red>The verification answer is guaranteed for<br/>the discrete semantics only (integer delays).</font></html>"), gbc); |
375 | 427 | } | 425 | } |
Made the following changes:
Renamed untimed state equation to preproces using skeleton analysis, and result is displayed independently from general state equation.
Not will report the solution method (if output by engine)
- query reduction
- TAR