#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 */
scalar_t__ EOF;
int /*<<< orphan*/ printf(char *);
scalar_t__ scanf(char *, int *);
int main() {
  int n;
  while (scanf("%d", &n) != EOF) {
    if (n >= 90 && n <= 100)
      printf("A\n");
    else if (n >= 80 && n <= 89)
      printf("B\n");
    else if (n >= 70 && n <= 79)
      printf("C\n");
    else if (n >= 60 && n <= 69)
      printf("D\n");
    else if (n >= 0 && n <= 59)
      printf("E\n");
    else
      printf("Score is error!\n");
  }
  return 0;
}


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
call   1040 <scanf@plt>
mov    0x2ea2(%rip),%rcx
cmp    (%rcx),%rax
je     122d <main+0x10d>
cmpl   $0x5a,-0x8(%rbp)
jl     1174 <main+0x54>
cmpl   $0x64,-0x8(%rbp)
jg     1174 <main+0x54>
lea    0xe99(%rip),%rdi
call   1030 <printf@plt>
jmp    1228 <main+0x108>
cmpl   $0x50,-0x8(%rbp)
jl     1199 <main+0x79>
cmpl   $0x59,-0x8(%rbp)
jg     1199 <main+0x79>
lea    0xe77(%rip),%rdi
call   1030 <printf@plt>
jmp    1223 <main+0x103>
cmpl   $0x46,-0x8(%rbp)
jl     11be <main+0x9e>
cmpl   $0x4f,-0x8(%rbp)
jg     11be <main+0x9e>
lea    0xe55(%rip),%rdi
call   1030 <printf@plt>
jmp    121e <main+0xfe>
cmpl   $0x3c,-0x8(%rbp)
jl     11e3 <main+0xc3>
cmpl   $0x45,-0x8(%rbp)
jg     11e3 <main+0xc3>
lea    0xe33(%rip),%rdi
call   1030 <printf@plt>
jmp    1219 <main+0xf9>
cmpl   $0x0,-0x8(%rbp)
jl     1208 <main+0xe8>
cmpl   $0x3b,-0x8(%rbp)
jg     1208 <main+0xe8>
lea    0xe11(%rip),%rdi
call   1030 <printf@plt>
jmp    1214 <main+0xf4>
lea    0xe03(%rip),%rdi
call   1030 <printf@plt>
jmp    1219 <main+0xf9>
jmp    121e <main+0xfe>
jmp    1223 <main+0x103>
jmp    1228 <main+0x108>
jmp    112f <main+0xf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xece(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x2ea5(%rip),%r15
cmp    (%r15),%rax
jne    1159 <main+0x39>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xebb(%rip),%r12
lea    0xe99(%rip),%r14
lea    0x4(%rsp),%rbx
lea    0xea6(%rip),%r13
lea    0xe9d(%rip),%rbp
jmp    1195 <main+0x75>
nopl   0x0(%rax)
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
cmp    (%r15),%rax
je     1148 <main+0x28>
mov    0x4(%rsp),%eax
lea    -0x5a(%rax),%ecx
mov    %r12,%rdi
cmp    $0xb,%ecx
jb     1180 <main+0x60>
lea    -0x50(%rax),%ecx
mov    %r13,%rdi
cmp    $0xa,%ecx
jb     1180 <main+0x60>
lea    -0x46(%rax),%ecx
mov    %rbp,%rdi
cmp    $0xa,%ecx
jb     1180 <main+0x60>
lea    -0x3c(%rax),%ecx
lea    0xe51(%rip),%rdi
cmp    $0xa,%ecx
jb     1180 <main+0x60>
lea    0xe43(%rip),%rdi
cmp    $0x3c,%eax
jb     1180 <main+0x60>
lea    0xe27(%rip),%rdi
jmp    1180 <main+0x60>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@EOF = global i64 0
@.str.1 = [3 x i8] c"A\0A\00"
@.str.2 = [3 x i8] c"B\0A\00"
@.str.3 = [3 x i8] c"C\0A\00"
@.str.4 = [3 x i8] c"D\0A\00"
@.str.5 = [3 x i8] c"E\0A\00"
@.str.6 = [17 x i8] c"Score is error!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
br label %3
3: ; preds = %53, %0
%4 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%5 = load i64, i64* @EOF
%6 = icmp ne i64 %4, %5
br i1 %6, label %7, label %54
7: ; preds = %3
%8 = load i32, i32* %2
%9 = icmp sge i32 %8, 90
br i1 %9, label %10, label %15
10: ; preds = %7
%11 = load i32, i32* %2
%12 = icmp sle i32 %11, 100
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %53
15: ; preds = %10, %7
%16 = load i32, i32* %2
%17 = icmp sge i32 %16, 80
br i1 %17, label %18, label %23
18: ; preds = %15
%19 = load i32, i32* %2
%20 = icmp sle i32 %19, 89
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %52
23: ; preds = %18, %15
%24 = load i32, i32* %2
%25 = icmp sge i32 %24, 70
br i1 %25, label %26, label %31
26: ; preds = %23
%27 = load i32, i32* %2
%28 = icmp sle i32 %27, 79
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %51
31: ; preds = %26, %23
%32 = load i32, i32* %2
%33 = icmp sge i32 %32, 60
br i1 %33, label %34, label %39
34: ; preds = %31
%35 = load i32, i32* %2
%36 = icmp sle i32 %35, 69
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
br label %50
39: ; preds = %34, %31
%40 = load i32, i32* %2
%41 = icmp sge i32 %40, 0
br i1 %41, label %42, label %47
42: ; preds = %39
%43 = load i32, i32* %2
%44 = icmp sle i32 %43, 59
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
br label %49
47: ; preds = %42, %39
%48 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0))
br label %49
49: ; preds = %47, %45
br label %50
50: ; preds = %49, %37
br label %51
51: ; preds = %50, %29
br label %52
52: ; preds = %51, %21
br label %53
53: ; preds = %52, %13
br label %3
54: ; preds = %3
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@EOF = global i64 0
@str = [16 x i8] c"Score is error!\00"
@str.7 = [2 x i8] c"E\00"
@str.8 = [2 x i8] c"D\00"
@str.9 = [2 x i8] c"C\00"
@str.10 = [2 x i8] c"B\00"
@str.11 = [2 x i8] c"A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i64, i64* @EOF
%5 = icmp eq i64 %3, %4
br i1 %5, label %28, label %6
6: ; preds = %0, %22
%7 = load i32, i32* %1
%8 = add i32 %7, -90
%9 = icmp ult i32 %8, 11
br i1 %9, label %22, label %10
10: ; preds = %6
%11 = add i32 %7, -80
%12 = icmp ult i32 %11, 10
br i1 %12, label %22, label %13
13: ; preds = %10
%14 = add i32 %7, -70
%15 = icmp ult i32 %14, 10
br i1 %15, label %22, label %16
16: ; preds = %13
%17 = add i32 %7, -60
%18 = icmp ult i32 %17, 10
br i1 %18, label %22, label %19
19: ; preds = %16
%20 = icmp ult i32 %7, 60
%21 = select i1 %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str.7, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0)
br label %22
22: ; preds = %19, %16, %13, %10, %6
%23 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @str.11, i64 0, i64 0), %6 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @str.10, i64 0, i64 0), %10 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @str.9, i64 0, i64 0), %13 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @str.8, i64 0, i64 0), %16 ], [ %21, %19 ]
%24 = call i32 @puts(i8* dereferenceable(1) %23)
%25 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%26 = load i64, i64* @EOF
%27 = icmp eq i64 %25, %26
br i1 %27, label %28, label %6
28: ; preds = %22, %0
ret i32 0
}