Skip to content

Commit

Permalink
CN: VIP: simple test that illustrates a problem
Browse files Browse the repository at this point in the history
This is about the simplest case that exercises the loop invariant
mechanism and the need for temporaries (such as the function
parameter) to be implicitly added to the invariants.
  • Loading branch information
talsewell authored and dc-mak committed Aug 16, 2023
1 parent a30715d commit f31ebe0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/cn/simple_loop.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@



int
simple_loop (int y)
{
while (0)
{
}
return y;
}

0 comments on commit f31ebe0

Please sign in to comment.