#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 *, double *, double *);
int main() {
  double a, b;
  scanf("%lf %lf", &a, &b);
  if (a >= 4.0 && b >= 4.0)
    printf("A");
  else if (a >= 3.0 && b >= 3.0)
    printf("B");
  else
    printf("C");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
movsd  0xeb0(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1182 <main+0x62>
movsd  -0x18(%rbp),%xmm0
movsd  0xe99(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1182 <main+0x62>
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
jmp    11d2 <main+0xb2>
movsd  -0x10(%rbp),%xmm0
movsd  0xe79(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     11c1 <main+0xa1>
movsd  -0x18(%rbp),%xmm0
movsd  0xe62(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     11c1 <main+0xa1>
lea    0xe63(%rip),%rdi
call   1030 <printf@plt>
jmp    11cd <main+0xad>
lea    0xe54(%rip),%rdi
call   1030 <printf@plt>
jmp    11d2 <main+0xb2>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xee5(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1040 <scanf@plt>
movsd  0x10(%rsp),%xmm0
movsd  0xeb8(%rip),%xmm1
ucomisd %xmm1,%xmm0
movsd  0x8(%rsp),%xmm2
setae  %al
ucomisd %xmm1,%xmm2
setae  %cl
and    %al,%cl
movzbl %cl,%eax
xor    $0x43,%eax
movsd  0xe9c(%rip),%xmm1
ucomisd %xmm1,%xmm2
mov    $0x41,%edi
cmovb  %eax,%edi
ucomisd %xmm1,%xmm0
cmovb  %eax,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"%lf %lf\00"
@.str.1 = [2 x i8] c"A\00"
@.str.2 = [2 x i8] c"B\00"
@.str.3 = [2 x i8] c"C\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
store i32 0, i32* %1
%4 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %2, double* %3)
%5 = load double, double* %2
%6 = fcmp oge double %5, 4.000000e+00
br i1 %6, label %7, label %12
7: ; preds = %0
%8 = load double, double* %3
%9 = fcmp oge double %8, 4.000000e+00
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %23
12: ; preds = %7, %0
%13 = load double, double* %2
%14 = fcmp oge double %13, 3.000000e+00
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = load double, double* %3
%17 = fcmp oge double %16, 3.000000e+00
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %22
20: ; preds = %15, %12
%21 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %22
22: ; preds = %20, %18
br label %23
23: ; preds = %22, %10
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"%lf %lf\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = bitcast double* %1 to i8*
%4 = bitcast double* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %1, double* %2)
%6 = load double, double* %1
%7 = fcmp oge double %6, 4.000000e+00
%8 = load double, double* %2
%9 = fcmp oge double %8, 4.000000e+00
%10 = select i1 %7, i1 %9, i1 false
%11 = fcmp oge double %6, 3.000000e+00
%12 = fcmp oge double %8, 3.000000e+00
%13 = select i1 %11, i1 %12, i1 false
%14 = select i1 %13, i32 66, i32 67
%15 = select i1 %10, i32 65, i32 %14
%16 = call i32 @putchar(i32 %15)
ret i32 0
}