Skip to content

Commit

Permalink
Merge pull request #94 from vasylenson/fix-level
Browse files Browse the repository at this point in the history
Fix level predicate
  • Loading branch information
rindPHI authored Jul 1, 2024
2 parents 3de0299 + 4d79e47 commit 1a04b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/isla/isla_predicates.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def level_check( # noqa: C901
if path_1[idx] != path_2[idx]:
break

prefix = path_1[:idx]
prefix = path_1[:idx + 1] # should consider a prefix up to and including the current index
if context_tree.get_subtree(prefix).value == nonterminal:
common_nonterminal_prefixes.append(prefix)

Expand Down

0 comments on commit 1a04b78

Please sign in to comment.