Skip to content

Commit

Permalink
Revert change on stack isExistential
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Dec 3, 2023
1 parent 4be9e80 commit 8e9fbea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vdmj/src/main/java/com/fujitsu/vdmj/pog/POContextStack.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,8 @@ public PODefinition getDefinition()

public boolean isExistential()
{
for (int i = size() - 1; i >= 0; i--) // NB. reverse order, for tail "exists"
for (POContext ctxt: this)
{
POContext ctxt = get(i);

if (ctxt instanceof PONameContext ||
ctxt instanceof PONoCheckContext ||
ctxt instanceof POScopeContext)
Expand Down

0 comments on commit 8e9fbea

Please sign in to comment.