Verified Commit 0e236555 authored by Tim Gymnich's avatar Tim Gymnich
Browse files

added example-1.c

parent 64a5f548
...@@ -247,6 +247,7 @@ set(SAMPLES ...@@ -247,6 +247,7 @@ set(SAMPLES
while-2 while-2
while-bigger-steps while-bigger-steps
while-neg while-neg
example-1
) )
# Older CMake version do not support list transformations # Older CMake version do not support list transformations
......
volatile int x1,x2,x3;
volatile int condition;
void P() {
if (condition) {
x1 = x1 + x2 + 1;
x3 = x3 + 1;
P();
x1 = x1 - x2;
}
}
int main() {
x2 = x1;
x3 = 0;
P();
x1 = 1 - x2 - x3;
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment