char *Grading_Object_Module(int Number) {
  char *Grading_Std[] = {"\0", "A+", "A", "B+",
                         "B",  "C",  "F", "Invalid Number"};
  if (Number > 100 || Number < 0)
    return *(Grading_Std + 7);
  if (Number >= 90 && Number <= 100)
    return *(Grading_Std + 1);
  else if (Number >= 80 && Number <= 89)
    return *(Grading_Std + 2);
  else if (Number >= 70 && Number <= 79)
    return *(Grading_Std + 3);
  else if (Number >= 60 && Number <= 69)
    return *(Grading_Std + 4);
  else if (Number >= 50 && Number <= 59)
    return *(Grading_Std + 5);
  else if (Number < 50)
    return *(Grading_Std + 6);
}


x86 assembly (clang, -O0):
<Grading_Object_Module>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0xc(%rbp)
lea    -0x50(%rbp),%rdi
lea    0x2cba(%rip),%rsi
mov    $0x40,%edx
call   1030 <memcpy@plt>
cmpl   $0x64,-0xc(%rbp)
jg     1144 <Grading_Object_Module+0x34>
cmpl   $0x0,-0xc(%rbp)
jge    1151 <Grading_Object_Module+0x41>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1226 <Grading_Object_Module+0x116>
cmpl   $0x5a,-0xc(%rbp)
jl     1172 <Grading_Object_Module+0x62>
cmpl   $0x64,-0xc(%rbp)
jg     1172 <Grading_Object_Module+0x62>
mov    -0x48(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1226 <Grading_Object_Module+0x116>
cmpl   $0x50,-0xc(%rbp)
jl     1193 <Grading_Object_Module+0x83>
cmpl   $0x59,-0xc(%rbp)
jg     1193 <Grading_Object_Module+0x83>
mov    -0x40(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1226 <Grading_Object_Module+0x116>
cmpl   $0x46,-0xc(%rbp)
jl     11b4 <Grading_Object_Module+0xa4>
cmpl   $0x4f,-0xc(%rbp)
jg     11b4 <Grading_Object_Module+0xa4>
mov    -0x38(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1226 <Grading_Object_Module+0x116>
cmpl   $0x3c,-0xc(%rbp)
jl     11d5 <Grading_Object_Module+0xc5>
cmpl   $0x45,-0xc(%rbp)
jg     11d5 <Grading_Object_Module+0xc5>
mov    -0x30(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1226 <Grading_Object_Module+0x116>
cmpl   $0x32,-0xc(%rbp)
jl     11f6 <Grading_Object_Module+0xe6>
cmpl   $0x3b,-0xc(%rbp)
jg     11f6 <Grading_Object_Module+0xe6>
mov    -0x28(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1226 <Grading_Object_Module+0x116>
cmpl   $0x32,-0xc(%rbp)
jge    120d <Grading_Object_Module+0xfd>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1226 <Grading_Object_Module+0x116>
jmp    1212 <Grading_Object_Module+0x102>
jmp    1217 <Grading_Object_Module+0x107>
jmp    121c <Grading_Object_Module+0x10c>
jmp    1221 <Grading_Object_Module+0x111>
jmp    1226 <Grading_Object_Module+0x116>
mov    -0x8(%rbp),%rax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Grading_Object_Module>:
cmp    $0x64,%edi
jbe    110d <Grading_Object_Module+0xd>
lea    0xf02(%rip),%rax
ret
cmp    $0x59,%edi
jbe    111a <Grading_Object_Module+0x1a>
lea    0xee7(%rip),%rax
ret
cmp    $0x4f,%edi
jbe    1127 <Grading_Object_Module+0x27>
lea    0xedd(%rip),%rax
ret
cmp    $0x45,%edi
jbe    1134 <Grading_Object_Module+0x34>
lea    0xed2(%rip),%rax
ret
cmp    $0x3b,%edi
jbe    1141 <Grading_Object_Module+0x41>
lea    0xec8(%rip),%rax
ret
cmp    $0x32,%edi
lea    0xebf(%rip),%rcx
lea    0xeba(%rip),%rax
cmovae %rcx,%rax
ret

LLVM IR (-O0):
@.str = [2 x i8] zeroinitializer
@.str.1 = [3 x i8] c"A+\00"
@.str.2 = [2 x i8] c"A\00"
@.str.3 = [3 x i8] c"B+\00"
@.str.4 = [2 x i8] c"B\00"
@.str.5 = [2 x i8] c"C\00"
@.str.6 = [2 x i8] c"F\00"
@.str.7 = [15 x i8] c"Invalid Number\00"
@__const.Grading_Object_Module.Grading_Std = [8 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i32 0, i32 0)]
define i8* @Grading_Object_Module(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca [8 x i8*]
store i32 %0, i32* %3
%5 = bitcast [8 x i8*]* %4 to i8*
%6 = load i32, i32* %3
%7 = icmp sgt i32 %6, 100
br i1 %7, label %11, label %8
8: ; preds = %1
%9 = load i32, i32* %3
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %15
11: ; preds = %8, %1
%12 = getelementptr inbounds [8 x i8*], [8 x i8*]* %4, i64 0, i64 0
%13 = getelementptr inbounds i8*, i8** %12, i64 7
%14 = load i8*, i8** %13
store i8* %14, i8** %2
br label %77
15: ; preds = %8
%16 = load i32, i32* %3
%17 = icmp sge i32 %16, 90
br i1 %17, label %18, label %25
18: ; preds = %15
%19 = load i32, i32* %3
%20 = icmp sle i32 %19, 100
br i1 %20, label %21, label %25
21: ; preds = %18
%22 = getelementptr inbounds [8 x i8*], [8 x i8*]* %4, i64 0, i64 0
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
store i8* %24, i8** %2
br label %77
25: ; preds = %18, %15
%26 = load i32, i32* %3
%27 = icmp sge i32 %26, 80
br i1 %27, label %28, label %35
28: ; preds = %25
%29 = load i32, i32* %3
%30 = icmp sle i32 %29, 89
br i1 %30, label %31, label %35
31: ; preds = %28
%32 = getelementptr inbounds [8 x i8*], [8 x i8*]* %4, i64 0, i64 0
%33 = getelementptr inbounds i8*, i8** %32, i64 2
%34 = load i8*, i8** %33
store i8* %34, i8** %2
br label %77
35: ; preds = %28, %25
%36 = load i32, i32* %3
%37 = icmp sge i32 %36, 70
br i1 %37, label %38, label %45
38: ; preds = %35
%39 = load i32, i32* %3
%40 = icmp sle i32 %39, 79
br i1 %40, label %41, label %45
41: ; preds = %38
%42 = getelementptr inbounds [8 x i8*], [8 x i8*]* %4, i64 0, i64 0
%43 = getelementptr inbounds i8*, i8** %42, i64 3
%44 = load i8*, i8** %43
store i8* %44, i8** %2
br label %77
45: ; preds = %38, %35
%46 = load i32, i32* %3
%47 = icmp sge i32 %46, 60
br i1 %47, label %48, label %55
48: ; preds = %45
%49 = load i32, i32* %3
%50 = icmp sle i32 %49, 69
br i1 %50, label %51, label %55
51: ; preds = %48
%52 = getelementptr inbounds [8 x i8*], [8 x i8*]* %4, i64 0, i64 0
%53 = getelementptr inbounds i8*, i8** %52, i64 4
%54 = load i8*, i8** %53
store i8* %54, i8** %2
br label %77
55: ; preds = %48, %45
%56 = load i32, i32* %3
%57 = icmp sge i32 %56, 50
br i1 %57, label %58, label %65
58: ; preds = %55
%59 = load i32, i32* %3
%60 = icmp sle i32 %59, 59
br i1 %60, label %61, label %65
61: ; preds = %58
%62 = getelementptr inbounds [8 x i8*], [8 x i8*]* %4, i64 0, i64 0
%63 = getelementptr inbounds i8*, i8** %62, i64 5
%64 = load i8*, i8** %63
store i8* %64, i8** %2
br label %77
65: ; preds = %58, %55
%66 = load i32, i32* %3
%67 = icmp slt i32 %66, 50
br i1 %67, label %68, label %72
68: ; preds = %65
%69 = getelementptr inbounds [8 x i8*], [8 x i8*]* %4, i64 0, i64 0
%70 = getelementptr inbounds i8*, i8** %69, i64 6
%71 = load i8*, i8** %70
store i8* %71, i8** %2
br label %77
72: ; preds = %65
br label %73
73: ; preds = %72
br label %74
74: ; preds = %73
br label %75
75: ; preds = %74
br label %76
76: ; preds = %75
br label %77
77: ; preds = %11, %21, %31, %41, %51, %61, %68, %76
%78 = load i8*, i8** %2
ret i8* %78
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"A+\00"
@.str.2 = [2 x i8] c"A\00"
@.str.3 = [3 x i8] c"B+\00"
@.str.4 = [2 x i8] c"B\00"
@.str.5 = [2 x i8] c"C\00"
@.str.6 = [2 x i8] c"F\00"
@.str.7 = [15 x i8] c"Invalid Number\00"
define i8* @Grading_Object_Module(i32 %0) {
%2 = icmp ugt i32 %0, 100
br i1 %2, label %14, label %3
3: ; preds = %1
%4 = icmp ugt i32 %0, 89
br i1 %4, label %14, label %5
5: ; preds = %3
%6 = icmp ugt i32 %0, 79
br i1 %6, label %14, label %7
7: ; preds = %5
%8 = icmp ugt i32 %0, 69
br i1 %8, label %14, label %9
9: ; preds = %7
%10 = icmp ugt i32 %0, 59
br i1 %10, label %14, label %11
11: ; preds = %9
%12 = icmp ugt i32 %0, 49
%13 = select i1 %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0)
br label %14
14: ; preds = %11, %9, %7, %5, %3, %1
%15 = phi i8* [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), %1 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), %3 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), %5 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), %7 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), %9 ], [ %13, %11 ]
ret i8* %15
}