#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 *, int *);
int main() {
  int mark;
  scanf("%d", &mark);
  if (mark >= 80)
    printf("A+");
  else if (mark >= 75)
    printf("The result is A");
  else if (mark >= 70)
    printf("The result is A-");
  else if (mark >= 65)
    printf("The result is B+");
  else if (mark >= 60)
    printf("The result is B");
  else if (mark >= 55)
    printf("The result is B-");
  else if (mark >= 50)
    printf("The result is C+");
  else if (mark >= 45)
    printf("The result is C");
  else if (mark >= 40)
    printf("The result is D");
  else
    printf("The result is FAIL");
  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>
cmpl   $0x50,-0x8(%rbp)
jl     115a <main+0x3a>
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
jmp    1266 <main+0x146>
cmpl   $0x4b,-0x8(%rbp)
jl     1175 <main+0x55>
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
jmp    1261 <main+0x141>
cmpl   $0x46,-0x8(%rbp)
jl     1190 <main+0x70>
lea    0xe90(%rip),%rdi
call   1030 <printf@plt>
jmp    125c <main+0x13c>
cmpl   $0x41,-0x8(%rbp)
jl     11ab <main+0x8b>
lea    0xe86(%rip),%rdi
call   1030 <printf@plt>
jmp    1257 <main+0x137>
cmpl   $0x3c,-0x8(%rbp)
jl     11c6 <main+0xa6>
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
jmp    1252 <main+0x132>
cmpl   $0x37,-0x8(%rbp)
jl     11e1 <main+0xc1>
lea    0xe71(%rip),%rdi
call   1030 <printf@plt>
jmp    124d <main+0x12d>
cmpl   $0x32,-0x8(%rbp)
jl     11fc <main+0xdc>
lea    0xe67(%rip),%rdi
call   1030 <printf@plt>
jmp    1248 <main+0x128>
cmpl   $0x2d,-0x8(%rbp)
jl     1217 <main+0xf7>
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
jmp    1243 <main+0x123>
cmpl   $0x28,-0x8(%rbp)
jl     1232 <main+0x112>
lea    0xe52(%rip),%rdi
call   1030 <printf@plt>
jmp    123e <main+0x11e>
lea    0xe51(%rip),%rdi
call   1030 <printf@plt>
jmp    1243 <main+0x123>
jmp    1248 <main+0x128>
jmp    124d <main+0x12d>
jmp    1252 <main+0x132>
jmp    1257 <main+0x137>
jmp    125c <main+0x13c>
jmp    1261 <main+0x141>
jmp    1266 <main+0x146>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
cmp    $0x4f,%eax
jle    1144 <main+0x24>
lea    0xec1(%rip),%rdi
jmp    11bb <main+0x9b>
cmp    $0x4a,%eax
jle    1152 <main+0x32>
lea    0xeb6(%rip),%rdi
jmp    11bb <main+0x9b>
cmp    $0x45,%eax
jle    1160 <main+0x40>
lea    0xeb8(%rip),%rdi
jmp    11bb <main+0x9b>
cmp    $0x40,%eax
jle    116e <main+0x4e>
lea    0xebb(%rip),%rdi
jmp    11bb <main+0x9b>
cmp    $0x3b,%eax
jle    117c <main+0x5c>
lea    0xebe(%rip),%rdi
jmp    11bb <main+0x9b>
cmp    $0x36,%eax
jle    118a <main+0x6a>
lea    0xec0(%rip),%rdi
jmp    11bb <main+0x9b>
cmp    $0x31,%eax
jle    1198 <main+0x78>
lea    0xec3(%rip),%rdi
jmp    11bb <main+0x9b>
cmp    $0x2c,%eax
jle    11a6 <main+0x86>
lea    0xec6(%rip),%rdi
jmp    11bb <main+0x9b>
cmp    $0x28,%eax
lea    0xeca(%rip),%rax
lea    0xed3(%rip),%rdi
cmovge %rax,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"A+\00"
@.str.2 = [16 x i8] c"The result is A\00"
@.str.3 = [17 x i8] c"The result is A-\00"
@.str.4 = [17 x i8] c"The result is B+\00"
@.str.5 = [16 x i8] c"The result is B\00"
@.str.6 = [17 x i8] c"The result is B-\00"
@.str.7 = [17 x i8] c"The result is C+\00"
@.str.8 = [16 x i8] c"The result is C\00"
@.str.9 = [16 x i8] c"The result is D\00"
@.str.10 = [19 x i8] c"The result is FAIL\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = icmp sgt i32 %4, 79
br i1 %5, label %23, label %6
6: ; preds = %0
%7 = icmp sgt i32 %4, 74
br i1 %7, label %23, label %8
8: ; preds = %6
%9 = icmp sgt i32 %4, 69
br i1 %9, label %23, label %10
10: ; preds = %8
%11 = icmp sgt i32 %4, 64
br i1 %11, label %23, label %12
12: ; preds = %10
%13 = icmp sgt i32 %4, 59
br i1 %13, label %23, label %14
14: ; preds = %12
%15 = icmp sgt i32 %4, 54
br i1 %15, label %23, label %16
16: ; preds = %14
%17 = icmp sgt i32 %4, 49
br i1 %17, label %23, label %18
18: ; preds = %16
%19 = icmp sgt i32 %4, 44
br i1 %19, label %23, label %20
20: ; preds = %18
%21 = icmp sgt i32 %4, 39
%22 = select i1 %21, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0)
br label %23
23: ; preds = %20, %18, %16, %14, %12, %10, %8, %6, %0
%24 = phi i8* [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), %0 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), %6 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), %8 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), %10 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), %12 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), %14 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), %16 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), %18 ], [ %22, %20 ]
%25 = call i32 @printf(i8* dereferenceable(1) %24)
ret i32 0
}