Skip to content

Commit

Permalink
Nested loop test case
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <[email protected]>
  • Loading branch information
Alan Jowett committed Nov 5, 2024
1 parent 7b356f4 commit c9db0a3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test-data/loop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -440,3 +440,27 @@ post:
- pc[2]=1

messages: []

---
# Nested loops with inner infinite loop
test-case: nested loops with inner infinite loop
options: ["termination"]

pre:
- "r0.type=number"
- "r0.svalue=0"
- "r0.uvalue=0"
code:
<start>: |
r0 += 1
if r0 > 10 goto <out>
<inner>: |
if r0 > 0 goto <inner>
<out>: |
exit
post: []
messages:
- "1:3: Code is unreachable after 1:3"
- "2: Loop counter is too large (pc[2] < 100000)"
- "2:3: Code is unreachable after 2:3"

Check failure on line 466 in test-data/loop.yaml

View workflow job for this annotation

GitHub Actions / validate-yaml

466:41 [new-line-at-end-of-file] no new line character at the end of file

Check failure on line 466 in test-data/loop.yaml

View workflow job for this annotation

GitHub Actions / validate-yaml

466:41 [new-line-at-end-of-file] no new line character at the end of file

0 comments on commit c9db0a3

Please sign in to comment.