Skip to content

Commit

Permalink
fixed wrong k-bound
Browse files Browse the repository at this point in the history
  • Loading branch information
mtygesen committed Nov 27, 2023
1 parent 9556417 commit c03739c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/dk/aau/cs/model/tapn/TimedArcPetriNet.java
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ private int countTokens(Expression expression, int numberOf) {
for (ExprStringPosition exprStringPosition : expression.getChildren()) {
Expression child = exprStringPosition.getObject();
if (child instanceof AllExpression) {
result += ((AllExpression) child).size();
result += ((AllExpression) child).size() * numberOf;
} else if (child instanceof NumberOfExpression) {
result += (countTokens(child, ((NumberOfExpression) child).getNumber()));
} else {
Expand Down

0 comments on commit c03739c

Please sign in to comment.