#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*/ _IONBF;
int getchar();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ setvbuf(int /*<<< orphan*/, int /*<<< orphan*/ *,
                           int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
int main(void) {
  setvbuf(stdout, NULL, _IONBF, 0);
  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 charchter [e] to end input.");
  while ((grade = getchar()) != 'e') {
    switch (grade) {
    case 'A':
    case 'a':
      ++aCount;
      break;
    case 'B':
    case 'b':
      ++bCount;
      break;
    case 'C':
    case 'c':
      ++cCount;
      break;
    case 'D':
    case 'd':
      ++dCount;
      break;
    case 'F':
    case 'f':
      ++fCount;
      break;
    case '\n':
    case '\t':
    case ' ':
      break;
    default:
      printf("%s", "Incorrect letter grade entered.");
      puts(" Enter a new grade.");
      break;
    }
  }
  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 {
    printf("Average grade is passable   :%f", avg);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e82(%rip),%rax
mov    (%rax),%edi
mov    0x2e89(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
xor    %ecx,%ecx
call   1060 <setvbuf@plt>
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
lea    0xffa(%rip),%rdi
call   1030 <puts@plt>
lea    0x1007(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
mov    %eax,-0x8(%rbp)
cmp    $0x65,%eax
je     1254 <main+0x114>
mov    -0x8(%rbp),%eax
add    $0xfffffff7,%eax
mov    %eax,%ecx
mov    %rcx,-0x38(%rbp)
sub    $0x5d,%eax
ja     122e <main+0xee>
mov    -0x38(%rbp),%rax
lea    0xe3e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    124f <main+0x10f>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    124f <main+0x10f>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    124f <main+0x10f>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    124f <main+0x10f>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    124f <main+0x10f>
jmp    124f <main+0x10f>
lea    0xf9a(%rip),%rdi
lea    0xf96(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfa8(%rip),%rdi
call   1030 <puts@plt>
jmp    11a7 <main+0x67>
lea    0xfab(%rip),%rdi
call   1030 <puts@plt>
mov    -0xc(%rbp),%esi
lea    0xfbf(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x39(%rbp)
call   1040 <printf@plt>
mov    -0x39(%rbp),%al
mov    -0x10(%rbp),%esi
lea    0xfaf(%rip),%rdi
call   1040 <printf@plt>
mov    -0x39(%rbp),%al
mov    -0x14(%rbp),%esi
lea    0xfa4(%rip),%rdi
call   1040 <printf@plt>
mov    -0x39(%rbp),%al
mov    -0x18(%rbp),%esi
lea    0xf99(%rip),%rdi
call   1040 <printf@plt>
mov    -0x39(%rbp),%al
mov    -0x1c(%rbp),%esi
lea    0xf8e(%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  0xce2(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1340 <main+0x200>
movsd  -0x30(%rbp),%xmm0
lea    0xf18(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    13bb <main+0x27b>
movsd  -0x30(%rbp),%xmm0
movsd  0xcbb(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     136f <main+0x22f>
movsd  -0x30(%rbp),%xmm0
lea    0xf09(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    13b6 <main+0x276>
movsd  -0x30(%rbp),%xmm0
movsd  0xc94(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     139e <main+0x25e>
movsd  -0x30(%rbp),%xmm0
lea    0xef9(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    13b1 <main+0x271>
movsd  -0x30(%rbp),%xmm0
lea    0xf01(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    13b6 <main+0x276>
jmp    13bb <main+0x27b>
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
mov    0x2e86(%rip),%rax
mov    (%rax),%edi
mov    0x2e8d(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
xor    %ecx,%ecx
call   1060 <setvbuf@plt>
lea    0x1023(%rip),%rdi
call   1030 <puts@plt>
lea    0x1030(%rip),%rdi
call   1030 <puts@plt>
lea    0xe93(%rip),%r13
xor    %r12d,%r12d
xor    %ebx,%ebx
xor    %ebp,%ebp
xor    %r15d,%r15d
xor    %r14d,%r14d
jmp    11a0 <main+0x60>
add    $0x1,%ebp
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1050 <getchar@plt>
add    $0xfffffff7,%eax
cmp    $0x5d,%eax
ja     11d0 <main+0x90>
movslq 0x0(%r13,%rax,4),%rax
add    %r13,%rax
jmp    *%rax
add    $0x1,%r14d
jmp    11a0 <main+0x60>
add    $0x1,%r15d
jmp    11a0 <main+0x60>
add    $0x1,%r12d
jmp    11a0 <main+0x60>
add    $0x1,%ebx
jmp    11a0 <main+0x60>
lea    0xff8(%rip),%rdi
lea    0xff4(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1006(%rip),%rdi
call   1030 <puts@plt>
jmp    11a0 <main+0x60>
lea    0x100c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1023(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1019(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x100f(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1005(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xffc(%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 0xd7f(%rip),%xmm0
jae    12a9 <main+0x169>
ucomisd 0xd7d(%rip),%xmm0
jae    12b2 <main+0x172>
ucomisd 0xd7b(%rip),%xmm0
lea    0x100f(%rip),%rax
lea    0xfe8(%rip),%rdi
cmovb  %rax,%rdi
jmp    12b9 <main+0x179>
lea    0xf9c(%rip),%rdi
jmp    12b9 <main+0x179>
lea    0xfb3(%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

LLVM IR (-O0):
@stdout = global i32 0
@_IONBF = global i32 0
@.str = [25 x i8] c"Enter the letter grades.\00"
@.str.1 = [38 x i8] c"Enter the charchter [e] to end input.\00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [32 x i8] c"Incorrect letter grade entered.\00"
@.str.4 = [20 x i8] c" Enter a new grade.\00"
@.str.5 = [35 x i8] c"\0ATotals for each letter grade are:\00"
@.str.6 = [7 x i8] c"A: %u\0A\00"
@.str.7 = [7 x i8] c"B: %u\0A\00"
@.str.8 = [7 x i8] c"C: %u\0A\00"
@.str.9 = [7 x i8] c"D: %u\0A\00"
@.str.10 = [7 x i8] c"F: %u\0A\00"
@.str.11 = [32 x i8] c"Average grade is excellence :%f\00"
@.str.12 = [31 x i8] c"Average grade is goodness :%f\00"
@.str.13 = [32 x i8] c"Average grade is adequate :%f\00"
@.str.14 = [32 x i8] c"Average grade is passable :%f\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
%10 = load i32, i32* @stdout
%11 = load i32, i32* @_IONBF
%12 = call i32 @setvbuf(i32 %10, i32* null, i32 %11, i32 0)
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
%13 = call i32 @puts(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
br label %15
15: ; preds = %39, %0
%16 = call i32 (...) @getchar()
store i32 %16, i32* %2
%17 = icmp ne i32 %16, 101
br i1 %17, label %18, label %40
18: ; preds = %15
%19 = load i32, i32* %2
switch i32 %19, label %36 [
i32 65, label %20
i32 97, label %20
i32 66, label %23
i32 98, label %23
i32 67, label %26
i32 99, label %26
i32 68, label %29
i32 100, label %29
i32 70, label %32
i32 102, label %32
i32 10, label %35
i32 9, label %35
i32 32, label %35
]
20: ; preds = %18, %18
%21 = load i32, i32* %3
%22 = add i32 %21, 1
store i32 %22, i32* %3
br label %39
23: ; preds = %18, %18
%24 = load i32, i32* %4
%25 = add i32 %24, 1
store i32 %25, i32* %4
br label %39
26: ; preds = %18, %18
%27 = load i32, i32* %5
%28 = add i32 %27, 1
store i32 %28, i32* %5
br label %39
29: ; preds = %18, %18
%30 = load i32, i32* %6
%31 = add i32 %30, 1
store i32 %31, i32* %6
br label %39
32: ; preds = %18, %18
%33 = load i32, i32* %7
%34 = add i32 %33, 1
store i32 %34, i32* %7
br label %39
35: ; preds = %18, %18, %18
br label %39
36: ; preds = %18
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%38 = call i32 @puts(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
br label %39
39: ; preds = %36, %35, %32, %29, %26, %23, %20
br label %15
40: ; preds = %15
%41 = call i32 @puts(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
%42 = load i32, i32* %3
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 %42)
%44 = load i32, i32* %4
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 %44)
%46 = load i32, i32* %5
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 %46)
%48 = load i32, i32* %6
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %48)
%50 = load i32, i32* %7
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %3
%53 = mul i32 4, %52
%54 = load i32, i32* %4
%55 = mul i32 3, %54
%56 = add i32 %53, %55
%57 = load i32, i32* %5
%58 = mul i32 2, %57
%59 = add i32 %56, %58
%60 = load i32, i32* %6
%61 = mul i32 1, %60
%62 = add i32 %59, %61
%63 = uitofp i32 %62 to double
store double %63, double* %8
%64 = load double, double* %8
%65 = load i32, i32* %3
%66 = load i32, i32* %4
%67 = add i32 %65, %66
%68 = load i32, i32* %5
%69 = add i32 %67, %68
%70 = load i32, i32* %6
%71 = add i32 %69, %70
%72 = load i32, i32* %7
%73 = add i32 %71, %72
%74 = uitofp i32 %73 to double
%75 = fdiv double %64, %74
store double %75, double* %9
%76 = load double, double* %9
%77 = fcmp oge double %76, 3.700000e+00
br i1 %77, label %78, label %81
78: ; preds = %40
%79 = load double, double* %9
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), double %79)
br label %98
81: ; preds = %40
%82 = load double, double* %9
%83 = fcmp oge double %82, 3.000000e+00
br i1 %83, label %84, label %87
84: ; preds = %81
%85 = load double, double* %9
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0), double %85)
br label %97
87: ; preds = %81
%88 = load double, double* %9
%89 = fcmp oge double %88, 2.000000e+00
br i1 %89, label %90, label %93
90: ; preds = %87
%91 = load double, double* %9
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.13, i64 0, i64 0), double %91)
br label %96
93: ; preds = %87
%94 = load double, double* %9
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.14, i64 0, i64 0), double %94)
br label %96
96: ; preds = %93, %90
br label %97
97: ; preds = %96, %84
br label %98
98: ; preds = %97, %78
ret i32 0
}

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