aboutsummaryrefslogtreecommitdiffstats
path: root/cil/doc/examples/ex26.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cil/doc/examples/ex26.txt')
-rw-r--r--cil/doc/examples/ex26.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/cil/doc/examples/ex26.txt b/cil/doc/examples/ex26.txt
new file mode 100644
index 00000000..8f5b1718
--- /dev/null
+++ b/cil/doc/examples/ex26.txt
@@ -0,0 +1,29 @@
+/* Generated by CIL v. 1.3.5 */
+/* print_CIL_Input is true */
+
+#line 1 "cilcode.tmp/ex26.c"
+int foo(int predicate )
+{ int __retres ;
+
+ {
+#line 2
+ if (predicate <= 0) {
+#line 3
+ __retres = 1;
+ goto return_label;
+ } else {
+#line 5
+ if (predicate > 5) {
+#line 6
+ __retres = 2;
+ goto return_label;
+ }
+#line 7
+ __retres = 3;
+ goto return_label;
+ }
+ return_label: /* CIL Label */
+#line 1
+ return (__retres);
+}
+}