Merge lp:~verifypn-maintainers/verifypn/verifypnRuleBfix into lp:~verifypn-maintainers/verifypn/trunk

Proposed by Jiri Srba
Status: Merged
Approved by: Jiri Srba
Approved revision: 48
Merged at revision: 48
Proposed branch: lp:~verifypn-maintainers/verifypn/verifypnRuleBfix
Merge into: lp:~verifypn-maintainers/verifypn/trunk
Diff against target: 15 lines (+2/-2)
1 file modified
PetriEngine/Reducer.cpp (+2/-2)
To merge this branch: bzr merge lp:~verifypn-maintainers/verifypn/verifypnRuleBfix
Reviewer Review Type Date Requested Status
Jiri Srba Approve
Review via email: mp+211599@code.launchpad.net

Commit message

Fixed a condition in Rule B that now checks that the output places
of t' are not part in the query.

Description of the change

Fixed a condition in Rule B that now checks that the output places
of t' are not part in the query.

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
1=== modified file 'PetriEngine/Reducer.cpp'
2--- PetriEngine/Reducer.cpp 2014-03-16 12:34:08 +0000
3+++ PetriEngine/Reducer.cpp 2014-03-18 18:20:13 +0000
4@@ -215,9 +215,9 @@
5 {
6 continue;
7 }
8- // Check if the output places of tPost do not have any inhibitor arcs connected
9+ // Check if the output places of tPost do not have any inhibitor arcs connected and are not used in the query
10 for (size_t _p = 0; _p < net->numberOfPlaces(); _p++) {
11- if (net->outArc(tPost, _p) > 0 && placeInInhib[_p] > 0) {
12+ if (net->outArc(tPost, _p) > 0 && (placeInInhib[_p] > 0 || placeInQuery[_p]>0)) {
13 ok = false;
14 break;
15 }

Subscribers

People subscribed via source and target branches