Skip to content

Commit

Permalink
Fix error parsing nested compound SERE
Browse files Browse the repository at this point in the history
  • Loading branch information
nickg committed Dec 1, 2024
1 parent 798e349 commit 5554392
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -12012,7 +12012,7 @@ static psl_node_t p_psl_compound_sere(psl_node_t head)
// | Compound_SERE within Compound_SERE
// | Parameterized_SERE

BEGIN("PSL Compund SERE");
BEGIN("PSL Compound SERE");

if (head == NULL) {
switch (peek()) {
Expand Down Expand Up @@ -12162,7 +12162,8 @@ static psl_node_t p_psl_sere(void)
case tTIMESRPT:
case tEQRPT:
case tGOTORPT:
return p_psl_compound_sere(head);
head = p_psl_compound_sere(head);
continue;
default:
return head;
}
Expand Down
1 change: 1 addition & 0 deletions test/psl/parse3.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ begin
-- psl assert {a} |=> {b;c};
-- psl assert {a} |-> {b};

-- psl assert {a} |=> {{b[->3]} && {(a and not c)[+]}; not c and b};
end architecture;

0 comments on commit 5554392

Please sign in to comment.