Skip to content

Commit

Permalink
Resolved bug: properties now tested in final state
Browse files Browse the repository at this point in the history
  • Loading branch information
rensink committed Dec 3, 2024
1 parent 416b039 commit d992b74
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,9 @@ private void buildAttempt(TermKey termKey) {
// property switches
Set<NestedSwitch> switches = new LinkedHashSet<>();
// see if we need a property test
// start states of procedures are exempt
boolean isProcStart = loc.isStart() && isProcedure();
if (hasProperties() && !isProcStart && locType != Type.FINAL
&& termKey.isFirstSteady()) {
// start and final states of procedures are exempt
boolean isProcStartOrFinal = (loc.isStart() || locType == Type.FINAL) && isProcedure();
if (hasProperties() && !isProcStartOrFinal && termKey.isFirstSteady()) {
for (Action prop : getProperties()) {
assert prop.isProperty() && prop instanceof Rule;
if (((Rule) prop).getPolicy() != CheckPolicy.OFF) {
Expand Down

0 comments on commit d992b74

Please sign in to comment.