aboutsummaryrefslogtreecommitdiffstats
path: root/cil/doc/examples/ex23.txt
diff options
context:
space:
mode:
authorxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2009-03-29 09:47:11 +0000
committerxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2009-03-29 09:47:11 +0000
commita5f03d96eee482cd84861fc8cefff9eb451c0cad (patch)
treecbc66cbc183a7c5ef2c044ed9ed04b8011df9cd4 /cil/doc/examples/ex23.txt
parenta9621943087a5578c995d88b06f87c5158eb5d00 (diff)
downloadcompcert-a5f03d96eee482cd84861fc8cefff9eb451c0cad.tar.gz
compcert-a5f03d96eee482cd84861fc8cefff9eb451c0cad.zip
Cleaned up configure script.
Distribution of CIL as an expanded source tree with changes applied (instead of original .tar.gz + patches to be applied at config time). git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1020 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'cil/doc/examples/ex23.txt')
-rw-r--r--cil/doc/examples/ex23.txt56
1 files changed, 56 insertions, 0 deletions
diff --git a/cil/doc/examples/ex23.txt b/cil/doc/examples/ex23.txt
new file mode 100644
index 00000000..d48a1358
--- /dev/null
+++ b/cil/doc/examples/ex23.txt
@@ -0,0 +1,56 @@
+/* Generated by CIL v. 1.3.5 */
+/* print_CIL_Input is true */
+
+#line 1 "cilcode.tmp/ex23.c"
+int foo(int predicate )
+{ int x ;
+
+ {
+#line 2
+ x = 0;
+#line 4
+ if (predicate == 0) {
+ goto switch_0_0;
+ } else {
+#line 5
+ if (predicate == 1) {
+ goto switch_0_1;
+ } else {
+#line 6
+ if (predicate == 2) {
+ goto switch_0_2;
+ } else {
+#line 7
+ if (predicate == 3) {
+ goto switch_0_3;
+ } else {
+ {
+ goto switch_0_default;
+#line 3
+ if (0) {
+ switch_0_0: /* CIL Label */
+#line 4
+ return (111);
+ switch_0_1: /* CIL Label */
+#line 5
+ x ++;
+ switch_0_2: /* CIL Label */
+#line 6
+ return (x + 3);
+ switch_0_3: /* CIL Label */
+ goto switch_0_break;
+ switch_0_default: /* CIL Label */ ;
+#line 8
+ return (222);
+ } else {
+ switch_0_break: /* CIL Label */ ;
+ }
+ }
+ }
+ }
+ }
+ }
+#line 10
+ return (333);
+}
+}