#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*/ getch(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int roll;
  printf("Enter ur roll please?");
  scanf("%d", &roll);
  int marks;
  printf("Enter ur marks please?");
  scanf("%d", &marks);
  if (marks > 79) {
    printf("A+ point:5.00");
  } else if (marks > 69) {
    printf("A,point:4.00");
  } else if (marks > 59) {
    printf("A-,point:3.50");
  } else {
    printf("F,point:0");
  }
  getch(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
lea    0xea8(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x4f,-0xc(%rbp)
jle    1192 <main+0x62>
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
jmp    11de <main+0xae>
cmpl   $0x45,-0xc(%rbp)
jle    11ad <main+0x7d>
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
jmp    11d9 <main+0xa9>
cmpl   $0x3b,-0xc(%rbp)
jle    11c8 <main+0x98>
lea    0xe8d(%rip),%rdi
call   1030 <printf@plt>
jmp    11d4 <main+0xa4>
lea    0xe8a(%rip),%rdi
call   1030 <printf@plt>
jmp    11d9 <main+0xa9>
jmp    11de <main+0xae>
xor    %edi,%edi
call   1050 <getch@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
lea    0xece(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0x8(%rsp),%eax
cmp    $0x4f,%eax
jle    1180 <main+0x50>
lea    0xeb2(%rip),%rdi
jmp    11a3 <main+0x73>
cmp    $0x45,%eax
jle    118e <main+0x5e>
lea    0xeb2(%rip),%rdi
jmp    11a3 <main+0x73>
cmp    $0x3c,%eax
lea    0xeb3(%rip),%rax
lea    0xeba(%rip),%rdi
cmovge %rax,%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <getch@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [22 x i8] c"Enter ur roll please?\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [23 x i8] c"Enter ur marks please?\00"
@.str.3 = [14 x i8] c"A+ point:5.00\00"
@.str.4 = [13 x i8] c"A,point:4.00\00"
@.str.5 = [14 x i8] c"A-,point:3.50\00"
@.str.6 = [10 x i8] c"F,point:0\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%6 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%8 = load i32, i32* %3
%9 = icmp sgt i32 %8, 79
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
br label %26
12: ; preds = %0
%13 = load i32, i32* %3
%14 = icmp sgt i32 %13, 69
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
br label %25
17: ; preds = %12
%18 = load i32, i32* %3
%19 = icmp sgt i32 %18, 59
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
br label %24
22: ; preds = %17
%23 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
br label %24
24: ; preds = %22, %20
br label %25
25: ; preds = %24, %15
br label %26
26: ; preds = %25, %10
%27 = call i32 @getch(i32 0)
%28 = load i32, i32* %1
ret i32 %28
}

LLVM IR (-O2):
@.str = [22 x i8] c"Enter ur roll please?\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [23 x i8] c"Enter ur marks please?\00"
@.str.3 = [14 x i8] c"A+ point:5.00\00"
@.str.4 = [13 x i8] c"A,point:4.00\00"
@.str.5 = [14 x i8] c"A-,point:3.50\00"
@.str.6 = [10 x i8] c"F,point:0\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%6 = bitcast i32* %2 to i8*
%7 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%9 = load i32, i32* %2
%10 = icmp sgt i32 %9, 79
br i1 %10, label %16, label %11
11: ; preds = %0
%12 = icmp sgt i32 %9, 69
br i1 %12, label %16, label %13
13: ; preds = %11
%14 = icmp sgt i32 %9, 59
%15 = select i1 %14, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0)
br label %16
16: ; preds = %13, %11, %0
%17 = phi i8* [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), %0 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), %11 ], [ %15, %13 ]
%18 = call i32 @printf(i8* dereferenceable(1) %17)
%19 = call i32 @getch(i32 0)
ret i32 0
}