#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int a = 5;
  int b, ii;
  printf("Enter an integer : ");
  scanf("%d", &b);
  printf("\nIf-then-else statment : ");
  if (a < b)
    printf("%d is less than %d\n", a, b);
  else
    printf("%d is not less than %d\n", a, b);
  printf("\nSwitch statement : ");
  switch (b) {
  case 1:
    printf("You entered a one.\n");
    break;
  case 2:
    printf("You entered a two.\n");
    break;
  case 3:
    printf("You entered a three.\n");
    break;
  case 4:
    printf("You entered a four\n");
    break;
  default:
    printf("You entered a number greater than 4 or less than 1\n");
  }
  printf("\nWhile loop : \n");
  ii = 0;
  while (ii <= b) {
    printf("  Your number = %d, loop variable = %d\n", b, ii);
    ii = ii + 2;
  }
  printf("\nDo-while loop : \n");
  do {
    printf("  Your number = %d, loop variable = %d\n", b, ii);
    ii -= 2;
  } while ((ii > 0));
  printf("\nFor loop : \n");
  for (ii = 0; ii < b; ii++) {
    printf("  loop variable = %d\n", ii);
  }
  printf("\nBreak example : \n");
  while (1) {
    if (a > 100) {
      printf("  Breaking . . \n");
      break;
    } else {
      a++;
    }
  }
  printf("\nContinue example : \n");
  for (ii = 0; ii <= b; ii++) {
    if ((ii % 3) != 0) {
      continue;
    }
    printf("  %d", ii);
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x5,-0x8(%rbp)
lea    0xed3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1065(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1187 <main+0x67>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    119b <main+0x7b>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x3,%eax
ja     121e <main+0xfe>
mov    -0x18(%rbp),%rax
lea    0xe37(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    122c <main+0x10c>
lea    0xea7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    122c <main+0x10c>
lea    0xea8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    122c <main+0x10c>
lea    0xeab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    122c <main+0x10c>
lea    0xeac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     126f <main+0x14f>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x10(%rbp)
jmp    1241 <main+0x121>
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
jg     127d <main+0x15d>
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12e4 <main+0x1c4>
mov    -0x10(%rbp),%esi
lea    0xe8f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    12b9 <main+0x199>
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x64,-0x8(%rbp)
jle    130f <main+0x1ef>
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    131d <main+0x1fd>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12f2 <main+0x1d2>
lea    0xe74(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     1376 <main+0x256>
mov    -0x10(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1357 <main+0x237>
jmp    1368 <main+0x248>
mov    -0x10(%rbp),%esi
lea    0xe4d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1332 <main+0x212>
lea    0xe19(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
lea    0xeb1(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf50(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1060 <scanf@plt>
lea    0xea4(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%edx
cmp    $0x6,%edx
lea    0xea9(%rip),%rax
lea    0xeb6(%rip),%rdi
cmovge %rax,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeb7(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x3,%eax
ja     11c8 <main+0x88>
cltq
lea    0xfd9(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    11cf <main+0x8f>
lea    0xf96(%rip),%rdi
call   1040 <puts@plt>
lea    0xeea(%rip),%rdi
call   1040 <puts@plt>
mov    0xc(%rsp),%esi
test   %esi,%esi
js     1217 <main+0xd7>
lea    0xe80(%rip),%r14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %ebx,%edx
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x2,%ebx
mov    0xc(%rsp),%esi
cmp    %esi,%ebx
jle    1200 <main+0xc0>
lea    0xeb6(%rip),%rdi
call   1040 <puts@plt>
lea    0xe45(%rip),%r14
nopw   0x0(%rax,%rax,1)
mov    0xc(%rsp),%esi
mov    %r14,%rdi
mov    %ebx,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    -0x2(%rbx),%eax
cmp    $0x2,%ebx
mov    %eax,%ebx
jg     1230 <main+0xf0>
lea    0xe95(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0xc(%rsp)
jle    1285 <main+0x145>
lea    0xe33(%rip),%rbx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    0xc(%rsp),%ebp
jl     1270 <main+0x130>
lea    0xe67(%rip),%rdi
call   1040 <puts@plt>
lea    0xe6d(%rip),%rdi
call   1040 <puts@plt>
lea    0xe71(%rip),%rdi
call   1040 <puts@plt>
mov    0xc(%rsp),%eax
test   %eax,%eax
js     12fc <main+0x1bc>
mov    $0xaaaaaaab,%ebp
lea    0xdf0(%rip),%r14
xor    %ebx,%ebx
jmp    12d9 <main+0x199>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0x1(%rbx),%ecx
cmp    %eax,%ebx
mov    %ecx,%ebx
jge    12fc <main+0x1bc>
mov    %ebx,%ecx
imul   %rbp,%rcx
shr    $0x21,%rcx
lea    (%rcx,%rcx,2),%ecx
cmp    %ebx,%ecx
jne    12d0 <main+0x190>
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%eax
jmp    12d0 <main+0x190>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Enter an integer : \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [26 x i8] c"\0AIf-then-else statment : \00"
@.str.3 = [20 x i8] c"%d is less than %d\0A\00"
@.str.4 = [24 x i8] c"%d is not less than %d\0A\00"
@.str.5 = [21 x i8] c"\0ASwitch statement : \00"
@.str.6 = [20 x i8] c"You entered a one.\0A\00"
@.str.7 = [20 x i8] c"You entered a two.\0A\00"
@.str.8 = [22 x i8] c"You entered a three.\0A\00"
@.str.9 = [20 x i8] c"You entered a four\0A\00"
@.str.10 = [52 x i8] c"You entered a number greater than 4 or less than 1\0A\00"
@.str.11 = [16 x i8] c"\0AWhile loop : \0A\00"
@.str.12 = [40 x i8] c" Your number = %d, loop variable = %d\0A\00"
@.str.13 = [19 x i8] c"\0ADo-while loop : \0A\00"
@.str.14 = [14 x i8] c"\0AFor loop : \0A\00"
@.str.15 = [22 x i8] c" loop variable = %d\0A\00"
@.str.16 = [19 x i8] c"\0ABreak example : \0A\00"
@.str.17 = [17 x i8] c" Breaking . . \0A\00"
@.str.18 = [22 x i8] c"\0AContinue example : \0A\00"
@.str.19 = [5 x i8] c" %d\00"
@.str.20 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 5, i32* %2
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
%8 = load i32, i32* %2
%9 = load i32, i32* %3
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %15
11: ; preds = %0
%12 = load i32, i32* %2
%13 = load i32, i32* %3
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 %12, i32 %13)
br label %19
15: ; preds = %0
%16 = load i32, i32* %2
%17 = load i32, i32* %3
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i32 %16, i32 %17)
br label %19
19: ; preds = %15, %11
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%21 = load i32, i32* %3
switch i32 %21, label %30 [
i32 1, label %22
i32 2, label %24
i32 3, label %26
i32 4, label %28
]
22: ; preds = %19
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
br label %32
24: ; preds = %19
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
br label %32
26: ; preds = %19
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
br label %32
28: ; preds = %19
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
br label %32
30: ; preds = %19
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.10, i64 0, i64 0))
br label %32
32: ; preds = %30, %28, %26, %24, %22
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0))
store i32 0, i32* %4
br label %34
34: ; preds = %38, %32
%35 = load i32, i32* %4
%36 = load i32, i32* %3
%37 = icmp sle i32 %35, %36
br i1 %37, label %38, label %44
38: ; preds = %34
%39 = load i32, i32* %3
%40 = load i32, i32* %4
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.12, i64 0, i64 0), i32 %39, i32 %40)
%42 = load i32, i32* %4
%43 = add nsw i32 %42, 2
store i32 %43, i32* %4
br label %34
44: ; preds = %34
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0))
br label %46
46: ; preds = %52, %44
%47 = load i32, i32* %3
%48 = load i32, i32* %4
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.12, i64 0, i64 0), i32 %47, i32 %48)
%50 = load i32, i32* %4
%51 = sub nsw i32 %50, 2
store i32 %51, i32* %4
br label %52
52: ; preds = %46
%53 = load i32, i32* %4
%54 = icmp sgt i32 %53, 0
br i1 %54, label %46, label %55
55: ; preds = %52
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0))
store i32 0, i32* %4
br label %57
57: ; preds = %64, %55
%58 = load i32, i32* %4
%59 = load i32, i32* %3
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %67
61: ; preds = %57
%62 = load i32, i32* %4
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0), i32 %62)
br label %64
64: ; preds = %61
%65 = load i32, i32* %4
%66 = add nsw i32 %65, 1
store i32 %66, i32* %4
br label %57
67: ; preds = %57
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0))
br label %69
69: ; preds = %67, %77
%70 = load i32, i32* %2
%71 = icmp sgt i32 %70, 100
br i1 %71, label %72, label %74
72: ; preds = %69
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.17, i64 0, i64 0))
br label %78
74: ; preds = %69
%75 = load i32, i32* %2
%76 = add nsw i32 %75, 1
store i32 %76, i32* %2
br label %77
77: ; preds = %74
br label %69
78: ; preds = %72
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.18, i64 0, i64 0))
store i32 0, i32* %4
br label %80
80: ; preds = %92, %78
%81 = load i32, i32* %4
%82 = load i32, i32* %3
%83 = icmp sle i32 %81, %82
br i1 %83, label %84, label %95
84: ; preds = %80
%85 = load i32, i32* %4
%86 = srem i32 %85, 3
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %89
88: ; preds = %84
br label %92
89: ; preds = %84
%90 = load i32, i32* %4
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %90)
br label %92
92: ; preds = %89, %88
%93 = load i32, i32* %4
%94 = add nsw i32 %93, 1
store i32 %94, i32* %4
br label %80
95: ; preds = %80
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"Enter an integer : \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [26 x i8] c"\0AIf-then-else statment : \00"
@.str.3 = [20 x i8] c"%d is less than %d\0A\00"
@.str.4 = [24 x i8] c"%d is not less than %d\0A\00"
@.str.5 = [21 x i8] c"\0ASwitch statement : \00"
@.str.12 = [40 x i8] c" Your number = %d, loop variable = %d\0A\00"
@.str.15 = [22 x i8] c" loop variable = %d\0A\00"
@.str.19 = [5 x i8] c" %d\00"
@str = [19 x i8] c"You entered a four\00"
@str.21 = [15 x i8] c"\0AWhile loop : \00"
@str.22 = [18 x i8] c"\0ADo-while loop : \00"
@str.23 = [13 x i8] c"\0AFor loop : \00"
@str.24 = [18 x i8] c"\0ABreak example : \00"
@str.25 = [16 x i8] c" Breaking . . \00"
@str.26 = [21 x i8] c"\0AContinue example : \00"
@str.27 = [21 x i8] c"You entered a three.\00"
@str.28 = [19 x i8] c"You entered a two.\00"
@str.29 = [19 x i8] c"You entered a one.\00"
@str.30 = [51 x i8] c"You entered a number greater than 4 or less than 1\00"
@reltable.main = [4 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @str.29 to i64), i64 ptrtoint ([4 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @str.28 to i64), i64 ptrtoint ([4 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @str.27 to i64), i64 ptrtoint ([4 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @str to i64), i64 ptrtoint ([4 x i32]* @reltable.main to i64)) to i32)]
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
%6 = load i32, i32* %1
%7 = icmp sgt i32 %6, 5
%8 = select i1 %7, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %8, i32 5, i32 %6)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%11 = load i32, i32* %1
%12 = add i32 %11, -1
%13 = icmp ult i32 %12, 4
br i1 %13, label %14, label %18
14: ; preds = %0
%15 = sext i32 %12 to i64
%16 = shl i64 %15, 2
%17 = call i8* @llvm.load.relative.i64(i8* bitcast ([4 x i32]* @reltable.main to i8*), i64 %16)
br label %18
18: ; preds = %0, %14
%19 = phi i8* [ %17, %14 ], [ getelementptr inbounds ([51 x i8], [51 x i8]* @str.30, i64 0, i64 0), %0 ]
%20 = call i32 @puts(i8* dereferenceable(1) %19)
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.21, i64 0, i64 0))
%22 = load i32, i32* %1
%23 = icmp slt i32 %22, 0
br i1 %23, label %31, label %24
24: ; preds = %18, %24
%25 = phi i32 [ %29, %24 ], [ %22, %18 ]
%26 = phi i32 [ %28, %24 ], [ 0, %18 ]
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.12, i64 0, i64 0), i32 %25, i32 %26)
%28 = add nuw nsw i32 %26, 2
%29 = load i32, i32* %1
%30 = icmp sgt i32 %28, %29
br i1 %30, label %31, label %24
31: ; preds = %24, %18
%32 = phi i32 [ 0, %18 ], [ %28, %24 ]
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.22, i64 0, i64 0))
br label %34
34: ; preds = %34, %31
%35 = phi i32 [ %32, %31 ], [ %38, %34 ]
%36 = load i32, i32* %1
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.12, i64 0, i64 0), i32 %36, i32 %35)
%38 = add nsw i32 %35, -2
%39 = icmp sgt i32 %35, 2
br i1 %39, label %34, label %40
40: ; preds = %34
%41 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.23, i64 0, i64 0))
%42 = load i32, i32* %1
%43 = icmp sgt i32 %42, 0
br i1 %43, label %44, label %50
44: ; preds = %40, %44
%45 = phi i32 [ %47, %44 ], [ 0, %40 ]
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0), i32 %45)
%47 = add nuw nsw i32 %45, 1
%48 = load i32, i32* %1
%49 = icmp slt i32 %47, %48
br i1 %49, label %44, label %50
50: ; preds = %44, %40
%51 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.24, i64 0, i64 0))
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.25, i64 0, i64 0))
%53 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.26, i64 0, i64 0))
%54 = load i32, i32* %1
%55 = icmp slt i32 %54, 0
br i1 %55, label %68, label %56
56: ; preds = %50, %64
%57 = phi i32 [ %65, %64 ], [ %54, %50 ]
%58 = phi i32 [ %66, %64 ], [ 0, %50 ]
%59 = urem i32 %58, 3
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %64
61: ; preds = %56
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %58)
%63 = load i32, i32* %1
br label %64
64: ; preds = %56, %61
%65 = phi i32 [ %57, %56 ], [ %63, %61 ]
%66 = add nuw nsw i32 %58, 1
%67 = icmp slt i32 %58, %65
br i1 %67, label %56, label %68
68: ; preds = %64, %50
%69 = call i32 @putchar(i32 10)
ret i32 0
}