#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 getchar();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int main(void) {
  int grade;
  unsigned int aCount = 0;
  unsigned int bCount = 0;
  unsigned int cCount = 0;
  unsigned int dCount = 0;
  unsigned int fCount = 0;
  puts("Enter the letter grades.");
  puts("Enter the EOF character to end input.");
  while ((grade = getchar()) != 'e') {
    if (grade == 'a') {
      ++aCount;
    } else if (grade == 'A') {
      ++aCount;
    } else if (grade == 'b') {
      ++bCount;
    } else if (grade == 'B') {
      ++bCount;
    } else if (grade == 'c') {
      ++cCount;
    } else if (grade == 'C') {
      ++cCount;
    } else if (grade == 'd') {
      ++dCount;
    } else if (grade == 'D') {
      ++dCount;
    } else if (grade == 'f') {
      ++fCount;
    } else if (grade == 'F') {
      ++fCount;
    } else {
      if (grade == ' ') {
      } else if (grade == '\n') {
      } else {
        puts(" Enter a new grade.");
      }
    }
  }
  puts("\nTotals for each letter grade are:");
  printf("A: %u\n", aCount);
  printf("B: %u\n", bCount);
  printf("C: %u\n", cCount);
  printf("D: %u\n", dCount);
  printf("F: %u\n", fCount);
  double result, avg;
  result = (4 * aCount) + (3 * bCount) + (2 * cCount) + (1 * dCount);
  avg = result / (aCount + bCount + cCount + dCount + fCount);
  if (avg >= 3.7) {
    printf("Average grade is excellence :%f", avg);
  } else if (avg >= 3) {
    printf("Average grade is goodness  :%f", avg);
  } else if (avg >= 2) {
    printf("Average grade is adequate   :%f", avg);
  } else if (avg > 1.7) {
    printf("Average grade is passable   :%f", avg);
  } else {
    printf("you did not pass");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
lea    0xeb7(%rip),%rdi
call   1030 <puts@plt>
lea    0xec4(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
mov    %eax,-0x8(%rbp)
cmp    $0x65,%eax
je     12e3 <main+0x1b3>
cmpl   $0x61,-0x8(%rbp)
jne    11a5 <main+0x75>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12de <main+0x1ae>
cmpl   $0x41,-0x8(%rbp)
jne    11bd <main+0x8d>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12d9 <main+0x1a9>
cmpl   $0x62,-0x8(%rbp)
jne    11d5 <main+0xa5>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    12d4 <main+0x1a4>
cmpl   $0x42,-0x8(%rbp)
jne    11ed <main+0xbd>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    12cf <main+0x19f>
cmpl   $0x63,-0x8(%rbp)
jne    1205 <main+0xd5>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12ca <main+0x19a>
cmpl   $0x43,-0x8(%rbp)
jne    121d <main+0xed>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12c5 <main+0x195>
cmpl   $0x64,-0x8(%rbp)
jne    1235 <main+0x105>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12c0 <main+0x190>
cmpl   $0x44,-0x8(%rbp)
jne    124d <main+0x11d>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12bb <main+0x18b>
cmpl   $0x66,-0x8(%rbp)
jne    1265 <main+0x135>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12b6 <main+0x186>
cmpl   $0x46,-0x8(%rbp)
jne    127d <main+0x14d>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12b1 <main+0x181>
cmpl   $0x20,-0x8(%rbp)
jne    128c <main+0x15c>
jmp    12ac <main+0x17c>
cmpl   $0xa,-0x8(%rbp)
jne    129b <main+0x16b>
jmp    12a7 <main+0x177>
lea    0xdbd(%rip),%rdi
call   1030 <puts@plt>
jmp    12ac <main+0x17c>
jmp    12b1 <main+0x181>
jmp    12b6 <main+0x186>
jmp    12bb <main+0x18b>
jmp    12c0 <main+0x190>
jmp    12c5 <main+0x195>
jmp    12ca <main+0x19a>
jmp    12cf <main+0x19f>
jmp    12d4 <main+0x1a4>
jmp    12d9 <main+0x1a9>
jmp    12de <main+0x1ae>
jmp    117a <main+0x4a>
lea    0xd89(%rip),%rdi
call   1030 <puts@plt>
mov    -0xc(%rbp),%esi
lea    0xd9d(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x31(%rbp)
call   1040 <printf@plt>
mov    -0x31(%rbp),%al
mov    -0x10(%rbp),%esi
lea    0xd8d(%rip),%rdi
call   1040 <printf@plt>
mov    -0x31(%rbp),%al
mov    -0x14(%rbp),%esi
lea    0xd82(%rip),%rdi
call   1040 <printf@plt>
mov    -0x31(%rbp),%al
mov    -0x18(%rbp),%esi
lea    0xd77(%rip),%rdi
call   1040 <printf@plt>
mov    -0x31(%rbp),%al
mov    -0x1c(%rbp),%esi
lea    0xd6c(%rip),%rdi
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
mov    -0x10(%rbp),%edx
mov    %edx,%ecx
lea    (%rcx,%rcx,2),%edx
mov    %eax,%ecx
mov    %edx,%eax
lea    (%rax,%rcx,4),%ecx
mov    -0x14(%rbp),%edx
mov    %ecx,%eax
mov    %edx,%ecx
lea    (%rax,%rcx,2),%eax
mov    -0x18(%rbp),%ecx
add    %ecx,%eax
cvtsi2sd %rax,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
mov    -0xc(%rbp),%eax
mov    -0x10(%rbp),%ecx
add    %ecx,%eax
mov    -0x14(%rbp),%ecx
add    %ecx,%eax
mov    -0x18(%rbp),%ecx
add    %ecx,%eax
mov    -0x1c(%rbp),%ecx
add    %ecx,%eax
cvtsi2sd %rax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  0xc53(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     13cf <main+0x29f>
movsd  -0x30(%rbp),%xmm0
lea    0xcf6(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    1479 <main+0x349>
movsd  -0x30(%rbp),%xmm0
movsd  0xc2c(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     13fe <main+0x2ce>
movsd  -0x30(%rbp),%xmm0
lea    0xce7(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    1474 <main+0x344>
movsd  -0x30(%rbp),%xmm0
movsd  0xc05(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     142d <main+0x2fd>
movsd  -0x30(%rbp),%xmm0
lea    0xcd7(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    146f <main+0x33f>
movsd  -0x30(%rbp),%xmm0
movsd  0xbde(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    145c <main+0x32c>
movsd  -0x30(%rbp),%xmm0
lea    0xcc8(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    146a <main+0x33a>
lea    0xcd5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    146f <main+0x33f>
jmp    1474 <main+0x344>
jmp    1479 <main+0x349>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0x1052(%rip),%rdi
call   1030 <puts@plt>
lea    0x105f(%rip),%rdi
call   1030 <puts@plt>
lea    0xec6(%rip),%r13
xor    %r12d,%r12d
xor    %ebx,%ebx
xor    %ebp,%ebp
xor    %r15d,%r15d
xor    %r14d,%r14d
jmp    1170 <main+0x40>
add    $0x1,%ebp
nopl   0x0(%rax)
xor    %eax,%eax
call   1050 <getchar@plt>
add    $0xfffffff6,%eax
cmp    $0x5c,%eax
ja     11a0 <main+0x70>
movslq 0x0(%r13,%rax,4),%rax
add    %r13,%rax
jmp    *%rax
add    $0x1,%r14d
jmp    1170 <main+0x40>
add    $0x1,%r15d
jmp    1170 <main+0x40>
add    $0x1,%r12d
jmp    1170 <main+0x40>
add    $0x1,%ebx
jmp    1170 <main+0x40>
lea    0x102c(%rip),%rdi
call   1030 <puts@plt>
jmp    1170 <main+0x40>
lea    0x1032(%rip),%rdi
call   1030 <puts@plt>
lea    0x1049(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x103f(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1035(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x102b(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1022(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    (%r15,%r15,2),%eax
lea    (%rbx,%r12,2),%ecx
add    %eax,%ecx
lea    (%rcx,%r14,4),%eax
cvtsi2sd %rax,%xmm0
add    %r12d,%ebx
add    %ebp,%ebx
add    %r15d,%ebx
add    %r14d,%ebx
cvtsi2sd %rbx,%xmm1
divsd  %xmm1,%xmm0
ucomisd 0xdc4(%rip),%xmm0
jae    1265 <main+0x135>
ucomisd 0xdc2(%rip),%xmm0
jae    126e <main+0x13e>
ucomisd 0xdc0(%rip),%xmm0
jae    1277 <main+0x147>
ucomisd 0xdbe(%rip),%xmm0
jbe    1296 <main+0x166>
lea    0x1029(%rip),%rdi
jmp    127e <main+0x14e>
lea    0xfc1(%rip),%rdi
jmp    127e <main+0x14e>
lea    0xfd8(%rip),%rdi
jmp    127e <main+0x14e>
lea    0xfee(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x100f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1285 <main+0x155>

LLVM IR (-O0):
@.str = [25 x i8] c"Enter the letter grades.\00"
@.str.1 = [38 x i8] c"Enter the EOF character to end input.\00"
@.str.2 = [20 x i8] c" Enter a new grade.\00"
@.str.3 = [35 x i8] c"\0ATotals for each letter grade are:\00"
@.str.4 = [7 x i8] c"A: %u\0A\00"
@.str.5 = [7 x i8] c"B: %u\0A\00"
@.str.6 = [7 x i8] c"C: %u\0A\00"
@.str.7 = [7 x i8] c"D: %u\0A\00"
@.str.8 = [7 x i8] c"F: %u\0A\00"
@.str.9 = [32 x i8] c"Average grade is excellence :%f\00"
@.str.10 = [31 x i8] c"Average grade is goodness :%f\00"
@.str.11 = [32 x i8] c"Average grade is adequate :%f\00"
@.str.12 = [32 x i8] c"Average grade is passable :%f\00"
@.str.13 = [17 x i8] c"you did not pass\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 double
%9 = alloca double
store i32 0, i32* %1
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
%10 = call i32 @puts(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
br label %12
12: ; preds = %96, %0
%13 = call i32 (...) @getchar()
store i32 %13, i32* %2
%14 = icmp ne i32 %13, 101
br i1 %14, label %15, label %97
15: ; preds = %12
%16 = load i32, i32* %2
%17 = icmp eq i32 %16, 97
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = load i32, i32* %3
%20 = add i32 %19, 1
store i32 %20, i32* %3
br label %96
21: ; preds = %15
%22 = load i32, i32* %2
%23 = icmp eq i32 %22, 65
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load i32, i32* %3
%26 = add i32 %25, 1
store i32 %26, i32* %3
br label %95
27: ; preds = %21
%28 = load i32, i32* %2
%29 = icmp eq i32 %28, 98
br i1 %29, label %30, label %33
30: ; preds = %27
%31 = load i32, i32* %4
%32 = add i32 %31, 1
store i32 %32, i32* %4
br label %94
33: ; preds = %27
%34 = load i32, i32* %2
%35 = icmp eq i32 %34, 66
br i1 %35, label %36, label %39
36: ; preds = %33
%37 = load i32, i32* %4
%38 = add i32 %37, 1
store i32 %38, i32* %4
br label %93
39: ; preds = %33
%40 = load i32, i32* %2
%41 = icmp eq i32 %40, 99
br i1 %41, label %42, label %45
42: ; preds = %39
%43 = load i32, i32* %5
%44 = add i32 %43, 1
store i32 %44, i32* %5
br label %92
45: ; preds = %39
%46 = load i32, i32* %2
%47 = icmp eq i32 %46, 67
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = load i32, i32* %5
%50 = add i32 %49, 1
store i32 %50, i32* %5
br label %91
51: ; preds = %45
%52 = load i32, i32* %2
%53 = icmp eq i32 %52, 100
br i1 %53, label %54, label %57
54: ; preds = %51
%55 = load i32, i32* %6
%56 = add i32 %55, 1
store i32 %56, i32* %6
br label %90
57: ; preds = %51
%58 = load i32, i32* %2
%59 = icmp eq i32 %58, 68
br i1 %59, label %60, label %63
60: ; preds = %57
%61 = load i32, i32* %6
%62 = add i32 %61, 1
store i32 %62, i32* %6
br label %89
63: ; preds = %57
%64 = load i32, i32* %2
%65 = icmp eq i32 %64, 102
br i1 %65, label %66, label %69
66: ; preds = %63
%67 = load i32, i32* %7
%68 = add i32 %67, 1
store i32 %68, i32* %7
br label %88
69: ; preds = %63
%70 = load i32, i32* %2
%71 = icmp eq i32 %70, 70
br i1 %71, label %72, label %75
72: ; preds = %69
%73 = load i32, i32* %7
%74 = add i32 %73, 1
store i32 %74, i32* %7
br label %87
75: ; preds = %69
%76 = load i32, i32* %2
%77 = icmp eq i32 %76, 32
br i1 %77, label %78, label %79
78: ; preds = %75
br label %86
79: ; preds = %75
%80 = load i32, i32* %2
%81 = icmp eq i32 %80, 10
br i1 %81, label %82, label %83
82: ; preds = %79
br label %85
83: ; preds = %79
%84 = call i32 @puts(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
br label %85
85: ; preds = %83, %82
br label %86
86: ; preds = %85, %78
br label %87
87: ; preds = %86, %72
br label %88
88: ; preds = %87, %66
br label %89
89: ; preds = %88, %60
br label %90
90: ; preds = %89, %54
br label %91
91: ; preds = %90, %48
br label %92
92: ; preds = %91, %42
br label %93
93: ; preds = %92, %36
br label %94
94: ; preds = %93, %30
br label %95
95: ; preds = %94, %24
br label %96
96: ; preds = %95, %18
br label %12
97: ; preds = %12
%98 = call i32 @puts(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%99 = load i32, i32* %3
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %99)
%101 = load i32, i32* %4
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %101)
%103 = load i32, i32* %5
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 %103)
%105 = load i32, i32* %6
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 %105)
%107 = load i32, i32* %7
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 %107)
%109 = load i32, i32* %3
%110 = mul i32 4, %109
%111 = load i32, i32* %4
%112 = mul i32 3, %111
%113 = add i32 %110, %112
%114 = load i32, i32* %5
%115 = mul i32 2, %114
%116 = add i32 %113, %115
%117 = load i32, i32* %6
%118 = mul i32 1, %117
%119 = add i32 %116, %118
%120 = uitofp i32 %119 to double
store double %120, double* %8
%121 = load double, double* %8
%122 = load i32, i32* %3
%123 = load i32, i32* %4
%124 = add i32 %122, %123
%125 = load i32, i32* %5
%126 = add i32 %124, %125
%127 = load i32, i32* %6
%128 = add i32 %126, %127
%129 = load i32, i32* %7
%130 = add i32 %128, %129
%131 = uitofp i32 %130 to double
%132 = fdiv double %121, %131
store double %132, double* %9
%133 = load double, double* %9
%134 = fcmp oge double %133, 3.700000e+00
br i1 %134, label %135, label %138
135: ; preds = %97
%136 = load double, double* %9
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0), double %136)
br label %161
138: ; preds = %97
%139 = load double, double* %9
%140 = fcmp oge double %139, 3.000000e+00
br i1 %140, label %141, label %144
141: ; preds = %138
%142 = load double, double* %9
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), double %142)
br label %160
144: ; preds = %138
%145 = load double, double* %9
%146 = fcmp oge double %145, 2.000000e+00
br i1 %146, label %147, label %150
147: ; preds = %144
%148 = load double, double* %9
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), double %148)
br label %159
150: ; preds = %144
%151 = load double, double* %9
%152 = fcmp ogt double %151, 1.700000e+00
br i1 %152, label %153, label %156
153: ; preds = %150
%154 = load double, double* %9
%155 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.12, i64 0, i64 0), double %154)
br label %158
156: ; preds = %150
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0))
br label %158
158: ; preds = %156, %153
br label %159
159: ; preds = %158, %147
br label %160
160: ; preds = %159, %141
br label %161
161: ; preds = %160, %135
ret i32 0
}

LLVM IR (-O2):
@.str = [25 x i8] c"Enter the letter grades.\00"
@.str.1 = [38 x i8] c"Enter the EOF character to end input.\00"
@.str.2 = [20 x i8] c" Enter a new grade.\00"
@.str.3 = [35 x i8] c"\0ATotals for each letter grade are:\00"
@.str.4 = [7 x i8] c"A: %u\0A\00"
@.str.5 = [7 x i8] c"B: %u\0A\00"
@.str.6 = [7 x i8] c"C: %u\0A\00"
@.str.7 = [7 x i8] c"D: %u\0A\00"
@.str.8 = [7 x i8] c"F: %u\0A\00"
@.str.9 = [32 x i8] c"Average grade is excellence :%f\00"
@.str.10 = [31 x i8] c"Average grade is goodness :%f\00"
@.str.11 = [32 x i8] c"Average grade is adequate :%f\00"
@.str.12 = [32 x i8] c"Average grade is passable :%f\00"
@.str.13 = [17 x i8] c"you did not pass\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
br label %3
3: ; preds = %10, %0
%4 = phi i32 [ 0, %0 ], [ %11, %10 ]
%5 = phi i32 [ 0, %0 ], [ %12, %10 ]
%6 = phi i32 [ 0, %0 ], [ %13, %10 ]
%7 = phi i32 [ 0, %0 ], [ %14, %10 ]
%8 = phi i32 [ 0, %0 ], [ %15, %10 ]
%9 = tail call i32 (...) @getchar()
switch i32 %9, label %36 [
i32 101, label %38
i32 97, label %16
i32 65, label %18
i32 98, label %20
i32 66, label %22
i32 99, label %24
i32 67, label %26
i32 100, label %28
i32 68, label %30
i32 102, label %32
i32 70, label %34
i32 32, label %10
i32 10, label %10
]
10: ; preds = %3, %3, %18, %22, %26, %30, %34, %36, %32, %28, %24, %20, %16
%11 = phi i32 [ %4, %16 ], [ %4, %18 ], [ %4, %20 ], [ %4, %22 ], [ %25, %24 ], [ %27, %26 ], [ %4, %28 ], [ %4, %30 ], [ %4, %32 ], [ %4, %34 ], [ %4, %36 ], [ %4, %3 ], [ %4, %3 ]
%12 = phi i32 [ %5, %16 ], [ %5, %18 ], [ %5, %20 ], [ %5, %22 ], [ %5, %24 ], [ %5, %26 ], [ %29, %28 ], [ %31, %30 ], [ %5, %32 ], [ %5, %34 ], [ %5, %36 ], [ %5, %3 ], [ %5, %3 ]
%13 = phi i32 [ %6, %16 ], [ %6, %18 ], [ %6, %20 ], [ %6, %22 ], [ %6, %24 ], [ %6, %26 ], [ %6, %28 ], [ %6, %30 ], [ %33, %32 ], [ %35, %34 ], [ %6, %36 ], [ %6, %3 ], [ %6, %3 ]
%14 = phi i32 [ %7, %16 ], [ %7, %18 ], [ %21, %20 ], [ %23, %22 ], [ %7, %24 ], [ %7, %26 ], [ %7, %28 ], [ %7, %30 ], [ %7, %32 ], [ %7, %34 ], [ %7, %36 ], [ %7, %3 ], [ %7, %3 ]
%15 = phi i32 [ %17, %16 ], [ %19, %18 ], [ %8, %20 ], [ %8, %22 ], [ %8, %24 ], [ %8, %26 ], [ %8, %28 ], [ %8, %30 ], [ %8, %32 ], [ %8, %34 ], [ %8, %36 ], [ %8, %3 ], [ %8, %3 ]
br label %3
16: ; preds = %3
%17 = add i32 %8, 1
br label %10
18: ; preds = %3
%19 = add i32 %8, 1
br label %10
20: ; preds = %3
%21 = add i32 %7, 1
br label %10
22: ; preds = %3
%23 = add i32 %7, 1
br label %10
24: ; preds = %3
%25 = add i32 %4, 1
br label %10
26: ; preds = %3
%27 = add i32 %4, 1
br label %10
28: ; preds = %3
%29 = add i32 %5, 1
br label %10
30: ; preds = %3
%31 = add i32 %5, 1
br label %10
32: ; preds = %3
%33 = add i32 %6, 1
br label %10
34: ; preds = %3
%35 = add i32 %6, 1
br label %10
36: ; preds = %3
%37 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
br label %10
38: ; preds = %3
%39 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %8)
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %7)
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 %4)
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 %5)
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 %6)
%45 = shl i32 %8, 2
%46 = mul i32 %7, 3
%47 = shl i32 %4, 1
%48 = add i32 %5, %47
%49 = add i32 %48, %46
%50 = add i32 %49, %45
%51 = uitofp i32 %50 to double
%52 = add i32 %5, %4
%53 = add i32 %52, %6
%54 = add i32 %53, %7
%55 = add i32 %54, %8
%56 = uitofp i32 %55 to double
%57 = fdiv double %51, %56
%58 = fcmp ult double %57, 3.700000e+00
br i1 %58, label %61, label %59
59: ; preds = %38
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0), double %57)
br label %75
61: ; preds = %38
%62 = fcmp ult double %57, 3.000000e+00
br i1 %62, label %65, label %63
63: ; preds = %61
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), double %57)
br label %75
65: ; preds = %61
%66 = fcmp ult double %57, 2.000000e+00
br i1 %66, label %69, label %67
67: ; preds = %65
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), double %57)
br label %75
69: ; preds = %65
%70 = fcmp ogt double %57, 1.700000e+00
br i1 %70, label %71, label %73
71: ; preds = %69
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.12, i64 0, i64 0), double %57)
br label %75
73: ; preds = %69
%74 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0))
br label %75
75: ; preds = %63, %71, %73, %67, %59
ret i32 0
}