#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() {
  int i = 0, itemCount = 0, input = 1, infant = 0, child = 0, teen = 0,
      adult = 0, PeopleTypes[50];
  printf("\nInput a number, 1 - 4. Where 1 represents an infant, 2 a child, 3 "
         "a teen, 4 an adult. (Use a negative number to exit.)\n");
  scanf("%d", &input);
  itemCount++;
  PeopleTypes[i] = input;
  i++;
  for (i = 1; (input > 0) && (input <= 4); i++) {
    printf("\nInput a number, 1 - 4 where 1 represents an infant, 2 a child, 3 "
           "a teen, 4 an adult. (Use a negative number to exit.)\n");
    scanf("%d", &input);
    PeopleTypes[i] = input;
    itemCount++;
    if ((input == 0) || (input > 4)) {
      printf("\nInvalid input! you entered '%d'\nPlease input 1-4 or program "
             "will exit\n",
             PeopleTypes[i]);
      scanf("%d", &input);
      PeopleTypes[i] = input;
      itemCount++;
      i++;
      if ((input == 0) || (input > 4)) {
        PeopleTypes[i] = 0;
      } else
        ;
      i--;
      itemCount--;
    }
  }
  i--;
  itemCount--;
  printf("\n\n***END PROGRAM!***\n");
  printf("You entered the following items:\n");
  for (i = 0; i < itemCount; i++) {
    printf("%d ", PeopleTypes[i]);
    switch (PeopleTypes[i]) {
    case 1:
      infant++;
      break;
    case 2:
      child++;
      break;
    case 3:
      teen++;
      break;
    case 4:
      adult++;
      break;
    }
  }
  printf("\n\nAccording to your input there were %d people present.\nThis "
         "crowd was made up of %d infant(s), %d children, %d teen(s), and %d "
         "adult(s).\n",
         itemCount, infant, child, teen, adult);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x1,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf11(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0xf0(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
movl   $0x1,-0x8(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x10(%rbp)
mov    %al,-0xf1(%rbp)
jle    11c7 <main+0xa7>
cmpl   $0x4,-0x10(%rbp)
setle  %al
mov    %al,-0xf1(%rbp)
mov    -0xf1(%rbp),%al
test   $0x1,%al
jne    11da <main+0xba>
jmp    12be <main+0x19e>
lea    0xeab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe9a(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x10(%rbp),%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0xf0(%rbp,%rax,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0x10(%rbp)
je     1223 <main+0x103>
cmpl   $0x4,-0x10(%rbp)
jle    12ab <main+0x18b>
movslq -0x8(%rbp),%rax
mov    -0xf0(%rbp,%rax,4),%esi
lea    0xecf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe46(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x10(%rbp),%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0xf0(%rbp,%rax,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x10(%rbp)
je     1280 <main+0x160>
cmpl   $0x4,-0x10(%rbp)
jle    1294 <main+0x174>
movslq -0x8(%rbp),%rax
movl   $0x0,-0xf0(%rbp,%rax,4)
jmp    1299 <main+0x179>
jmp    1299 <main+0x179>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    12b0 <main+0x190>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11a8 <main+0x88>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1395 <main+0x275>
movslq -0x8(%rbp),%rax
mov    -0xf0(%rbp,%rax,4),%esi
lea    0xe73(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movslq -0x8(%rbp),%rax
mov    -0xf0(%rbp,%rax,4),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x100(%rbp)
sub    $0x3,%eax
ja     1382 <main+0x262>
mov    -0x100(%rbp),%rax
lea    0xcba(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1382 <main+0x262>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1382 <main+0x262>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1382 <main+0x262>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1387 <main+0x267>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12f3 <main+0x1d3>
mov    -0xc(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%r8d
mov    -0x20(%rbp),%r9d
lea    0xddb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
movl   $0x1,0xc(%rsp)
lea    0xf9a(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb4(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1050 <scanf@plt>
mov    0xc(%rsp),%eax
mov    %eax,0x20(%rsp)
add    $0xffffffff,%eax
mov    $0x1,%r15d
cmp    $0x3,%eax
ja     1213 <main+0xe3>
mov    $0x1,%r15d
lea    0x100b(%rip),%r14
lea    0xe7c(%rip),%rbp
lea    0xc(%rsp),%rbx
lea    0xe73(%rip),%r12
jmp    11c5 <main+0x95>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movl   $0x0,0x24(%rsp,%r15,4)
add    $0xffffffff,%esi
add    $0x1,%r15
cmp    $0x4,%esi
jae    1213 <main+0xe3>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
mov    0xc(%rsp),%esi
mov    %esi,0x20(%rsp,%r15,4)
test   %esi,%esi
je     11ea <main+0xba>
cmp    $0x5,%esi
jl     11b9 <main+0x89>
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
mov    0xc(%rsp),%esi
mov    %esi,0x20(%rsp,%r15,4)
test   %esi,%esi
je     11b0 <main+0x80>
cmp    $0x5,%esi
jl     11b9 <main+0x89>
jmp    11b0 <main+0x80>
lea    -0x1(%r15),%eax
mov    %eax,0x1c(%rsp)
lea    0xf40(%rip),%rdi
call   1030 <puts@plt>
lea    0xf49(%rip),%rdi
call   1030 <puts@plt>
movl   $0x0,0x10(%rsp)
mov    $0x0,%r12d
movl   $0x0,0x14(%rsp)
movl   $0x0,0x18(%rsp)
cmp    $0x2,%r15d
jl     12f7 <main+0x1c7>
mov    0x1c(%rsp),%ebx
lea    0xdf5(%rip),%r15
lea    0xd93(%rip),%rbp
xor    %r13d,%r13d
movl   $0x0,0x18(%rsp)
movl   $0x0,0x14(%rsp)
xor    %r12d,%r12d
movl   $0x0,0x10(%rsp)
jmp    12a9 <main+0x179>
nopl   (%rax)
addl   $0x1,0x18(%rsp)
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%r13
cmp    %r13,%rbx
je     12f7 <main+0x1c7>
mov    0x20(%rsp,%r13,4),%r14d
mov    %r15,%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0xffffffff,%r14d
cmp    $0x3,%r14d
ja     12a0 <main+0x170>
movslq 0x0(%rbp,%r14,4),%rax
add    %rbp,%rax
jmp    *%rax
addl   $0x1,0x10(%rsp)
jmp    12a0 <main+0x170>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%r12d
jmp    12a0 <main+0x170>
cs nopw 0x0(%rax,%rax,1)
addl   $0x1,0x14(%rsp)
jmp    12a0 <main+0x170>
lea    0xd61(%rip),%rdi
mov    0x1c(%rsp),%esi
mov    0x10(%rsp),%edx
mov    %r12d,%ecx
mov    0x14(%rsp),%r8d
mov    0x18(%rsp),%r9d
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [121 x i8] c"\0AInput a number, 1 - 4. Where 1 represents an infant, 2 a child, 3 a teen, 4 an adult. (Use a negative number to exit.)\0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [120 x i8] c"\0AInput a number, 1 - 4 where 1 represents an infant, 2 a child, 3 a teen, 4 an adult. (Use a negative number to exit.)\0A\00"
@.str.3 = [72 x i8] c"\0AInvalid input! you entered '%d'\0APlease input 1-4 or program will exit\0A\00"
@.str.4 = [22 x i8] c"\0A\0A***END PROGRAM!***\0A\00"
@.str.5 = [34 x i8] c"You entered the following items:\0A\00"
@.str.6 = [4 x i8] c"%d \00"
@.str.7 = [139 x i8] c"\0A\0AAccording to your input there were %d people present.\0AThis crowd was made up of %d infant(s), %d children, %d teen(s), and %d adult(s).\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [50 x i32]
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 1, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([121 x i8], [121 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%12 = load i32, i32* %3
%13 = add nsw i32 %12, 1
store i32 %13, i32* %3
%14 = load i32, i32* %4
%15 = load i32, i32* %2
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [50 x i32], [50 x i32]* %9, i64 0, i64 %16
store i32 %14, i32* %17
%18 = load i32, i32* %2
%19 = add nsw i32 %18, 1
store i32 %19, i32* %2
store i32 1, i32* %2
br label %20
20: ; preds = %73, %0
%21 = load i32, i32* %4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load i32, i32* %4
%25 = icmp sle i32 %24, 4
br label %26
26: ; preds = %23, %20
%27 = phi i1 [ false, %20 ], [ %25, %23 ]
br i1 %27, label %28, label %76
28: ; preds = %26
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([120 x i8], [120 x i8]* @.str.2, i64 0, i64 0))
%30 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%31 = load i32, i32* %4
%32 = load i32, i32* %2
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [50 x i32], [50 x i32]* %9, i64 0, i64 %33
store i32 %31, i32* %34
%35 = load i32, i32* %3
%36 = add nsw i32 %35, 1
store i32 %36, i32* %3
%37 = load i32, i32* %4
%38 = icmp eq i32 %37, 0
br i1 %38, label %42, label %39
39: ; preds = %28
%40 = load i32, i32* %4
%41 = icmp sgt i32 %40, 4
br i1 %41, label %42, label %72
42: ; preds = %39, %28
%43 = load i32, i32* %2
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [50 x i32], [50 x i32]* %9, i64 0, i64 %44
%46 = load i32, i32* %45
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i32 %46)
%48 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%49 = load i32, i32* %4
%50 = load i32, i32* %2
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [50 x i32], [50 x i32]* %9, i64 0, i64 %51
store i32 %49, i32* %52
%53 = load i32, i32* %3
%54 = add nsw i32 %53, 1
store i32 %54, i32* %3
%55 = load i32, i32* %2
%56 = add nsw i32 %55, 1
store i32 %56, i32* %2
%57 = load i32, i32* %4
%58 = icmp eq i32 %57, 0
br i1 %58, label %62, label %59
59: ; preds = %42
%60 = load i32, i32* %4
%61 = icmp sgt i32 %60, 4
br i1 %61, label %62, label %66
62: ; preds = %59, %42
%63 = load i32, i32* %2
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [50 x i32], [50 x i32]* %9, i64 0, i64 %64
store i32 0, i32* %65
br label %67
66: ; preds = %59
br label %67
67: ; preds = %66, %62
%68 = load i32, i32* %2
%69 = add nsw i32 %68, -1
store i32 %69, i32* %2
%70 = load i32, i32* %3
%71 = add nsw i32 %70, -1
store i32 %71, i32* %3
br label %72
72: ; preds = %67, %39
br label %73
73: ; preds = %72
%74 = load i32, i32* %2
%75 = add nsw i32 %74, 1
store i32 %75, i32* %2
br label %20
76: ; preds = %26
%77 = load i32, i32* %2
%78 = add nsw i32 %77, -1
store i32 %78, i32* %2
%79 = load i32, i32* %3
%80 = add nsw i32 %79, -1
store i32 %80, i32* %3
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %2
br label %83
83: ; preds = %110, %76
%84 = load i32, i32* %2
%85 = load i32, i32* %3
%86 = icmp slt i32 %84, %85
br i1 %86, label %87, label %113
87: ; preds = %83
%88 = load i32, i32* %2
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [50 x i32], [50 x i32]* %9, i64 0, i64 %89
%91 = load i32, i32* %90
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %91)
%93 = load i32, i32* %2
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [50 x i32], [50 x i32]* %9, i64 0, i64 %94
%96 = load i32, i32* %95
switch i32 %96, label %109 [
i32 1, label %97
i32 2, label %100
i32 3, label %103
i32 4, label %106
]
97: ; preds = %87
%98 = load i32, i32* %5
%99 = add nsw i32 %98, 1
store i32 %99, i32* %5
br label %109
100: ; preds = %87
%101 = load i32, i32* %6
%102 = add nsw i32 %101, 1
store i32 %102, i32* %6
br label %109
103: ; preds = %87
%104 = load i32, i32* %7
%105 = add nsw i32 %104, 1
store i32 %105, i32* %7
br label %109
106: ; preds = %87
%107 = load i32, i32* %8
%108 = add nsw i32 %107, 1
store i32 %108, i32* %8
br label %109
109: ; preds = %87, %106, %103, %100, %97
br label %110
110: ; preds = %109
%111 = load i32, i32* %2
%112 = add nsw i32 %111, 1
store i32 %112, i32* %2
br label %83
113: ; preds = %83
%114 = load i32, i32* %3
%115 = load i32, i32* %5
%116 = load i32, i32* %6
%117 = load i32, i32* %7
%118 = load i32, i32* %8
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str.7, i64 0, i64 0), i32 %114, i32 %115, i32 %116, i32 %117, i32 %118)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [72 x i8] c"\0AInvalid input! you entered '%d'\0APlease input 1-4 or program will exit\0A\00"
@.str.6 = [4 x i8] c"%d \00"
@.str.7 = [139 x i8] c"\0A\0AAccording to your input there were %d people present.\0AThis crowd was made up of %d infant(s), %d children, %d teen(s), and %d adult(s).\0A\00"
@str = [120 x i8] c"\0AInput a number, 1 - 4. Where 1 represents an infant, 2 a child, 3 a teen, 4 an adult. (Use a negative number to exit.)\00"
@str.8 = [21 x i8] c"\0A\0A***END PROGRAM!***\00"
@str.9 = [33 x i8] c"You entered the following items:\00"
@str.10 = [119 x i8] c"\0AInput a number, 1 - 4 where 1 represents an infant, 2 a child, 3 a teen, 4 an adult. (Use a negative number to exit.)\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [50 x i32]
%3 = bitcast i32* %1 to i8*
store i32 1, i32* %1
%4 = bitcast [50 x i32]* %2 to i8*
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([120 x i8], [120 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* %1)
%7 = load i32, i32* %1
%8 = getelementptr inbounds [50 x i32], [50 x i32]* %2, i64 0, i64 0
store i32 %7, i32* %8
%9 = add i32 %7, -1
%10 = icmp ult i32 %9, 4
br i1 %10, label %11, label %36
11: ; preds = %0, %30
%12 = phi i64 [ %17, %30 ], [ 1, %0 ]
%13 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([119 x i8], [119 x i8]* @str.10, i64 0, i64 0))
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%15 = load i32, i32* %1
%16 = getelementptr inbounds [50 x i32], [50 x i32]* %2, i64 0, i64 %12
store i32 %15, i32* %16
%17 = add nuw i64 %12, 1
%18 = icmp eq i32 %15, 0
%19 = icmp sgt i32 %15, 4
%20 = or i1 %18, %19
br i1 %20, label %21, label %30
21: ; preds = %11
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i32 %15)
%23 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%24 = load i32, i32* %1
store i32 %24, i32* %16
%25 = icmp eq i32 %24, 0
%26 = icmp sgt i32 %24, 4
%27 = or i1 %25, %26
br i1 %27, label %28, label %30
28: ; preds = %21
%29 = getelementptr inbounds [50 x i32], [50 x i32]* %2, i64 0, i64 %17
store i32 0, i32* %29
br label %30
30: ; preds = %28, %21, %11
%31 = phi i32 [ %24, %28 ], [ %24, %21 ], [ %15, %11 ]
%32 = add i32 %31, -1
%33 = icmp ult i32 %32, 4
br i1 %33, label %11, label %34
34: ; preds = %30
%35 = trunc i64 %17 to i32
br label %36
36: ; preds = %34, %0
%37 = phi i32 [ 1, %0 ], [ %35, %34 ]
%38 = add i32 %37, -1
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.8, i64 0, i64 0))
%40 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.9, i64 0, i64 0))
%41 = icmp sgt i32 %37, 1
br i1 %41, label %42, label %68
42: ; preds = %36
%43 = zext i32 %38 to i64
br label %44
44: ; preds = %42, %61
%45 = phi i64 [ 0, %42 ], [ %66, %61 ]
%46 = phi i32 [ 0, %42 ], [ %65, %61 ]
%47 = phi i32 [ 0, %42 ], [ %64, %61 ]
%48 = phi i32 [ 0, %42 ], [ %63, %61 ]
%49 = phi i32 [ 0, %42 ], [ %62, %61 ]
%50 = getelementptr inbounds [50 x i32], [50 x i32]* %2, i64 0, i64 %45
%51 = load i32, i32* %50
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %51)
switch i32 %51, label %61 [
i32 1, label %53
i32 2, label %55
i32 3, label %57
i32 4, label %59
]
53: ; preds = %44
%54 = add nsw i32 %49, 1
br label %61
55: ; preds = %44
%56 = add nsw i32 %48, 1
br label %61
57: ; preds = %44
%58 = add nsw i32 %47, 1
br label %61
59: ; preds = %44
%60 = add nsw i32 %46, 1
br label %61
61: ; preds = %53, %55, %57, %59, %44
%62 = phi i32 [ %49, %44 ], [ %49, %59 ], [ %49, %57 ], [ %49, %55 ], [ %54, %53 ]
%63 = phi i32 [ %48, %44 ], [ %48, %59 ], [ %48, %57 ], [ %56, %55 ], [ %48, %53 ]
%64 = phi i32 [ %47, %44 ], [ %47, %59 ], [ %58, %57 ], [ %47, %55 ], [ %47, %53 ]
%65 = phi i32 [ %46, %44 ], [ %60, %59 ], [ %46, %57 ], [ %46, %55 ], [ %46, %53 ]
%66 = add nuw nsw i64 %45, 1
%67 = icmp eq i64 %66, %43
br i1 %67, label %68, label %44
68: ; preds = %61, %36
%69 = phi i32 [ 0, %36 ], [ %62, %61 ]
%70 = phi i32 [ 0, %36 ], [ %63, %61 ]
%71 = phi i32 [ 0, %36 ], [ %64, %61 ]
%72 = phi i32 [ 0, %36 ], [ %65, %61 ]
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([139 x i8], [139 x i8]* @.str.7, i64 0, i64 0), i32 %38, i32 %69, i32 %70, i32 %71, i32 %72)
ret i32 0
}