#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 printf(char *);
int /*<<< orphan*/ scanf(char *, int *, int *, int *);
int main() {
  int x, y, z;
  scanf("%d %d %d", &x, &y, &z);
  if (x >= 90 && y >= 90 && z >= 90)
    return 0 * printf("A");
  ;
  if (x >= 80 && y >= 80 && z >= 80)
    return 0 * printf("B");
  ;
  if (x >= 70 && y >= 70 && z >= 70)
    return 0 * printf("C");
  ;
  printf("F");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
cmpl   $0x5a,-0x8(%rbp)
jl     117c <main+0x5c>
cmpl   $0x5a,-0xc(%rbp)
jl     117c <main+0x5c>
cmpl   $0x5a,-0x10(%rbp)
jl     117c <main+0x5c>
lea    0xe9d(%rip),%rdi
call   1030 <printf@plt>
imul   $0x0,%eax,%eax
mov    %eax,-0x4(%rbp)
jmp    11f2 <main+0xd2>
cmpl   $0x50,-0x8(%rbp)
jl     11b1 <main+0x91>
cmpl   $0x50,-0xc(%rbp)
jl     11b1 <main+0x91>
cmpl   $0x50,-0x10(%rbp)
jl     11b1 <main+0x91>
lea    0xe6a(%rip),%rdi
call   1030 <printf@plt>
imul   $0x0,%eax,%eax
mov    %eax,-0x4(%rbp)
jmp    11f2 <main+0xd2>
cmpl   $0x46,-0x8(%rbp)
jl     11e6 <main+0xc6>
cmpl   $0x46,-0xc(%rbp)
jl     11e6 <main+0xc6>
cmpl   $0x46,-0x10(%rbp)
jl     11e6 <main+0xc6>
lea    0xe37(%rip),%rdi
call   1030 <printf@plt>
imul   $0x0,%eax,%eax
mov    %eax,-0x4(%rbp)
jmp    11f2 <main+0xd2>
lea    0xe22(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1040 <scanf@plt>
mov    0x14(%rsp),%ecx
mov    0x10(%rsp),%edx
mov    0xc(%rsp),%eax
cmp    $0x5a,%ecx
jl     115f <main+0x3f>
cmp    $0x5a,%edx
jl     115f <main+0x3f>
mov    $0x41,%edi
cmp    $0x59,%eax
jg     1192 <main+0x72>
cmp    $0x50,%ecx
jl     1173 <main+0x53>
cmp    $0x50,%edx
jl     1173 <main+0x53>
mov    $0x42,%edi
cmp    $0x4f,%eax
jg     1192 <main+0x72>
cmp    $0x46,%ecx
setl   %cl
cmp    $0x46,%edx
setl   %dl
or     %cl,%dl
cmp    $0x46,%eax
setl   %al
or     %dl,%al
movzbl %al,%eax
lea    (%rax,%rax,2),%edi
add    $0x43,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%d %d %d\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"
@.str.4 = [2 x i8] c"F\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%6 = load i32, i32* %2
%7 = icmp sge i32 %6, 90
br i1 %7, label %8, label %17
8: ; preds = %0
%9 = load i32, i32* %3
%10 = icmp sge i32 %9, 90
br i1 %10, label %11, label %17
11: ; preds = %8
%12 = load i32, i32* %4
%13 = icmp sge i32 %12, 90
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%16 = mul nsw i32 0, %15
store i32 %16, i32* %1
br label %43
17: ; preds = %11, %8, %0
%18 = load i32, i32* %2
%19 = icmp sge i32 %18, 80
br i1 %19, label %20, label %29
20: ; preds = %17
%21 = load i32, i32* %3
%22 = icmp sge i32 %21, 80
br i1 %22, label %23, label %29
23: ; preds = %20
%24 = load i32, i32* %4
%25 = icmp sge i32 %24, 80
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%28 = mul nsw i32 0, %27
store i32 %28, i32* %1
br label %43
29: ; preds = %23, %20, %17
%30 = load i32, i32* %2
%31 = icmp sge i32 %30, 70
br i1 %31, label %32, label %41
32: ; preds = %29
%33 = load i32, i32* %3
%34 = icmp sge i32 %33, 70
br i1 %34, label %35, label %41
35: ; preds = %32
%36 = load i32, i32* %4
%37 = icmp sge i32 %36, 70
br i1 %37, label %38, label %41
38: ; preds = %35
%39 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%40 = mul nsw i32 0, %39
store i32 %40, i32* %1
br label %43
41: ; preds = %35, %32, %29
%42 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %43
43: ; preds = %41, %38, %26, %14
%44 = load i32, i32* %1
ret i32 %44
}

LLVM IR (-O2):
@.str = [9 x i8] c"%d %d %d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%8 = load i32, i32* %1
%9 = icmp sgt i32 %8, 89
%10 = load i32, i32* %2
%11 = icmp sgt i32 %10, 89
%12 = select i1 %9, i1 %11, i1 false
%13 = load i32, i32* %3
%14 = icmp sgt i32 %13, 89
%15 = select i1 %12, i1 %14, i1 false
br i1 %15, label %29, label %16
16: ; preds = %0
%17 = icmp sgt i32 %8, 79
%18 = icmp sgt i32 %10, 79
%19 = select i1 %17, i1 %18, i1 false
%20 = icmp sgt i32 %13, 79
%21 = select i1 %19, i1 %20, i1 false
br i1 %21, label %29, label %22
22: ; preds = %16
%23 = icmp sgt i32 %8, 69
%24 = icmp sgt i32 %10, 69
%25 = select i1 %23, i1 %24, i1 false
%26 = icmp sgt i32 %13, 69
%27 = select i1 %25, i1 %26, i1 false
%28 = select i1 %27, i32 67, i32 70
br label %29
29: ; preds = %22, %16, %0
%30 = phi i32 [ 65, %0 ], [ 66, %16 ], [ %28, %22 ]
%31 = call i32 @putchar(i32 %30)
ret i32 0
}