Merge lp:~tapaal-contributor/tapaal/broken-boundedness-check-games-2006111 into lp:tapaal/3.9

Proposed by Lena Ernstsen
Status: Merged
Approved by: Jiri Srba
Approved revision: 1181
Merged at revision: 1180
Proposed branch: lp:~tapaal-contributor/tapaal/broken-boundedness-check-games-2006111
Merge into: lp:tapaal/3.9
Diff against target: 59 lines (+12/-8)
3 files modified
src/dk/aau/cs/verification/VerificationResult.java (+8/-6)
src/dk/aau/cs/verification/VerifyTAPN/VerifyDTAPNOptions.java (+2/-1)
src/pipe/gui/KBoundAnalyzer.java (+2/-1)
To merge this branch: bzr merge lp:~tapaal-contributor/tapaal/broken-boundedness-check-games-2006111
Reviewer Review Type Date Requested Status
Jiri Srba Approve
Review via email: mp+436900@code.launchpad.net

Commit message

Fixed boundedness check error for game nets

To post a comment you must log in.
Revision history for this message
Jiri Srba (srba) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/dk/aau/cs/verification/VerificationResult.java'
--- src/dk/aau/cs/verification/VerificationResult.java 2023-01-09 11:11:07 +0000
+++ src/dk/aau/cs/verification/VerificationResult.java 2023-02-06 11:17:40 +0000
@@ -36,12 +36,14 @@
36 this.stats = stats;36 this.stats = stats;
37 this.rawOutput = rawOutput;37 this.rawOutput = rawOutput;
3838
39 String[] lines = rawOutput.split(System.getProperty("line.separator"));39 if (rawOutput != null) {
40 for (String line : lines) {40 String[] lines = rawOutput.split(System.getProperty("line.separator"));
41 Matcher matcher = Pattern.compile("\\s*-k\\s*(\\d+)\\s*").matcher(line);41 for (String line : lines) {
42 if (matcher.find()) {42 Matcher matcher = Pattern.compile("\\s*-k\\s*(\\d+)\\s*").matcher(line);
43 this.bound = Integer.parseInt(matcher.group(1));43 if (matcher.find()) {
44 break;44 this.bound = Integer.parseInt(matcher.group(1));
45 break;
46 }
45 }47 }
46 }48 }
47 }49 }
4850
=== modified file 'src/dk/aau/cs/verification/VerifyTAPN/VerifyDTAPNOptions.java'
--- src/dk/aau/cs/verification/VerifyTAPN/VerifyDTAPNOptions.java 2020-07-13 13:58:47 +0000
+++ src/dk/aau/cs/verification/VerifyTAPN/VerifyDTAPNOptions.java 2023-02-06 11:17:40 +0000
@@ -23,6 +23,7 @@
23 TraceOption traceOption,23 TraceOption traceOption,
24 SearchOption search,24 SearchOption search,
25 boolean symmetry,25 boolean symmetry,
26 boolean gcd,
26 boolean timeDarts,27 boolean timeDarts,
27 boolean pTrie,28 boolean pTrie,
28 boolean enableOverApproximation,29 boolean enableOverApproximation,
@@ -30,7 +31,7 @@
30 int approximationDenominator,31 int approximationDenominator,
31 boolean stubbornReduction32 boolean stubbornReduction
32 ) {33 ) {
33 this(extraTokens, traceOption, search, symmetry, true, timeDarts, pTrie, false, false, new InclusionPlaces(), WorkflowMode.NOT_WORKFLOW, 0, enableOverApproximation, enableUnderApproximation, approximationDenominator, stubbornReduction);34 this(extraTokens, traceOption, search, symmetry, gcd, timeDarts, pTrie, false, false, new InclusionPlaces(), WorkflowMode.NOT_WORKFLOW, 0, enableOverApproximation, enableUnderApproximation, approximationDenominator, stubbornReduction);
34 this.dontUseDeadPlaces = dontUseDeadPlaces;35 this.dontUseDeadPlaces = dontUseDeadPlaces;
35 }36 }
3637
3738
=== modified file 'src/pipe/gui/KBoundAnalyzer.java'
--- src/pipe/gui/KBoundAnalyzer.java 2021-10-02 16:01:49 +0000
+++ src/pipe/gui/KBoundAnalyzer.java 2023-02-06 11:17:40 +0000
@@ -71,7 +71,8 @@
71 } else if(modelChecker instanceof VerifyTAPN){71 } else if(modelChecker instanceof VerifyTAPN){
72 return new VerifyTAPNOptions(k, TraceOption.NONE, SearchOption.BFS, true, false, true, false, false, 1);72 return new VerifyTAPNOptions(k, TraceOption.NONE, SearchOption.BFS, true, false, true, false, false, 1);
73 } else if(modelChecker instanceof VerifyTAPNDiscreteVerification){73 } else if(modelChecker instanceof VerifyTAPNDiscreteVerification){
74 return new VerifyDTAPNOptions(true, k, TraceOption.NONE, SearchOption.BFS, true, !tapnNetwork.hasUrgentTransitions(), true, false, false, 1, false);74 boolean isGame = CreateGui.getCurrentTab().getLens().isGame();
75 return new VerifyDTAPNOptions(true, k, TraceOption.NONE, SearchOption.BFS, true, !isGame, !tapnNetwork.hasUrgentTransitions(), true, false, false, 1, false);
75 }76 }
76 return null;77 return null;
77 }78 }

Subscribers

People subscribed via source and target branches