Skip to content

Commit 87ccb76

Browse files
author
Curtis Madsen
committed
Fixed LPN generation
1 parent 72f607a commit 87ccb76

File tree

1 file changed

+2
-2
lines changed
  • verification/src/main/java/edu/utah/ece/async/lema/verification/lpn

1 file changed

+2
-2
lines changed

verification/src/main/java/edu/utah/ece/async/lema/verification/lpn/LPN.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,10 @@ public static LPN convertToLHPN(ArrayList<String> specs, ArrayList<Object[]> con
345345
}
346346
if (!rate.equals("") || !reactionProductions.equals("")) {
347347
if (rate.equals("")) {
348-
rate = "(" + reactionProductions + ")";
348+
rate = "(" + np + "*(" + reactionProductions + "))";
349349
}
350350
else if (!reactionProductions.equals("")) {
351-
rate = "(" + rate + "+" + reactionProductions + ")";
351+
rate = "(" + rate + "+" + np + "*(" + reactionProductions + "))";
352352
}
353353
LHPN.addTransition(specs.get(i) + "_trans" + transNum);
354354
LHPN.addMovement(previousPlaceName, specs.get(i) + "_trans" + transNum);

0 commit comments

Comments
 (0)