#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 Myan, Eng, Maths, Chem, Phys, Bio;
  do {
    printf("Enter The Value Of Myan:  \n");
    scanf("%d", &Myan);
    if (Myan < 0 && Myan > 40) {
      printf("Fail!\n");
    }
    if (Myan >= 40 && Myan < 80) {
      printf("Pass!\n");
    }
    if (Myan >= 80 && Myan < 100) {
      printf("Distination\n");
    }
    if (Myan > 100) {
      printf("ERROR\n");
    }
    printf("Enter The Value of Eng :  \n");
    scanf("%d", &Eng);
    if (Eng < 0 && Eng > 40) {
      printf("Fail!\n");
    }
    if (Eng >= 40 && Eng < 80) {
      printf("Pass!\n");
    }
    if (Eng >= 80 && Eng < 100) {
      printf("Distination\n");
    }
    if (Eng > 100) {
      printf("ERROR\n");
    }
  } while (Myan, Eng >= 0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jge    116b <main+0x4b>
cmpl   $0x28,-0x8(%rbp)
jle    116b <main+0x4b>
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x28,-0x8(%rbp)
jl     118b <main+0x6b>
cmpl   $0x50,-0x8(%rbp)
jge    118b <main+0x6b>
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x50,-0x8(%rbp)
jl     11ab <main+0x8b>
cmpl   $0x64,-0x8(%rbp)
jge    11ab <main+0x8b>
lea    0xe87(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x64,-0x8(%rbp)
jle    11c1 <main+0xa1>
lea    0xe7e(%rip),%rdi
call   1030 <printf@plt>
lea    0xe79(%rip),%rdi
call   1030 <printf@plt>
lea    0xe48(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0xc(%rbp)
jge    11fd <main+0xdd>
cmpl   $0x28,-0xc(%rbp)
jle    11fd <main+0xdd>
lea    0xe27(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x28,-0xc(%rbp)
jl     121d <main+0xfd>
cmpl   $0x50,-0xc(%rbp)
jge    121d <main+0xfd>
lea    0xe0e(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x50,-0xc(%rbp)
jl     123d <main+0x11d>
cmpl   $0x64,-0xc(%rbp)
jge    123d <main+0x11d>
lea    0xdf5(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x64,-0xc(%rbp)
jle    1253 <main+0x133>
lea    0xdec(%rip),%rdi
call   1030 <printf@plt>
jmp    1258 <main+0x138>
cmpl   $0x0,-0xc(%rbp)
jge    112f <main+0xf>
xor    %eax,%eax
add    $0x20,%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),%rbx
lea    0xf12(%rip),%r12
lea    0xeff(%rip),%r13
lea    0xef2(%rip),%rbp
lea    0xed0(%rip),%r14
mov    %rsp,%r15
jmp    1168 <main+0x48>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
test   %eax,%eax
js     1224 <main+0x104>
lea    0xe94(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
lea    -0x28(%rax),%ecx
cmp    $0x27,%ecx
ja     1199 <main+0x79>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
lea    -0x50(%rax),%ecx
cmp    $0x13,%ecx
ja     11ad <main+0x8d>
mov    %r13,%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
cmp    $0x65,%eax
jl     11ba <main+0x9a>
mov    %rbp,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <scanf@plt>
mov    (%rsp),%eax
lea    -0x28(%rax),%ecx
cmp    $0x27,%ecx
ja     11e3 <main+0xc3>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    (%rsp),%eax
lea    -0x50(%rax),%ecx
cmp    $0x13,%ecx
jbe    1200 <main+0xe0>
cmp    $0x65,%eax
jl     1160 <main+0x40>
jmp    1214 <main+0xf4>
cs nopw 0x0(%rax,%rax,1)
mov    %r13,%rdi
call   1030 <puts@plt>
mov    (%rsp),%eax
cmp    $0x65,%eax
jl     1160 <main+0x40>
mov    %rbp,%rdi
call   1030 <puts@plt>
mov    (%rsp),%eax
jmp    1160 <main+0x40>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [28 x i8] c"Enter The Value Of Myan: \0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [7 x i8] c"Fail!\0A\00"
@.str.3 = [7 x i8] c"Pass!\0A\00"
@.str.4 = [13 x i8] c"Distination\0A\00"
@.str.5 = [7 x i8] c"ERROR\0A\00"
@.str.6 = [28 x i8] c"Enter The Value of Eng : \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
br label %8
8: ; preds = %71, %0
%9 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%11 = load i32, i32* %2
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %8
%14 = load i32, i32* %2
%15 = icmp sgt i32 %14, 40
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %18
18: ; preds = %16, %13, %8
%19 = load i32, i32* %2
%20 = icmp sge i32 %19, 40
br i1 %20, label %21, label %26
21: ; preds = %18
%22 = load i32, i32* %2
%23 = icmp slt i32 %22, 80
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %26
26: ; preds = %24, %21, %18
%27 = load i32, i32* %2
%28 = icmp sge i32 %27, 80
br i1 %28, label %29, label %34
29: ; preds = %26
%30 = load i32, i32* %2
%31 = icmp slt i32 %30, 100
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
br label %34
34: ; preds = %32, %29, %26
%35 = load i32, i32* %2
%36 = icmp sgt i32 %35, 100
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %39
39: ; preds = %37, %34
%40 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0))
%41 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%42 = load i32, i32* %3
%43 = icmp slt i32 %42, 0
br i1 %43, label %44, label %49
44: ; preds = %39
%45 = load i32, i32* %3
%46 = icmp sgt i32 %45, 40
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %49
49: ; preds = %47, %44, %39
%50 = load i32, i32* %3
%51 = icmp sge i32 %50, 40
br i1 %51, label %52, label %57
52: ; preds = %49
%53 = load i32, i32* %3
%54 = icmp slt i32 %53, 80
br i1 %54, label %55, label %57
55: ; preds = %52
%56 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %57
57: ; preds = %55, %52, %49
%58 = load i32, i32* %3
%59 = icmp sge i32 %58, 80
br i1 %59, label %60, label %65
60: ; preds = %57
%61 = load i32, i32* %3
%62 = icmp slt i32 %61, 100
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
br label %65
65: ; preds = %63, %60, %57
%66 = load i32, i32* %3
%67 = icmp sgt i32 %66, 100
br i1 %67, label %68, label %70
68: ; preds = %65
%69 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %70
70: ; preds = %68, %65
br label %71
71: ; preds = %70
%72 = load i32, i32* %2
%73 = load i32, i32* %3
%74 = icmp sge i32 %73, 0
br i1 %74, label %8, label %75
75: ; preds = %71
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@str = [27 x i8] c"Enter The Value Of Myan: \00"
@str.7 = [27 x i8] c"Enter The Value of Eng : \00"
@str.12 = [6 x i8] c"ERROR\00"
@str.13 = [12 x i8] c"Distination\00"
@str.14 = [6 x i8] c"Pass!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
br label %5
5: ; preds = %48, %0
%6 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str, i64 0, i64 0))
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%8 = load i32, i32* %1
%9 = add i32 %8, -40
%10 = icmp ult i32 %9, 40
br i1 %10, label %11, label %14
11: ; preds = %5
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.14, i64 0, i64 0))
%13 = load i32, i32* %1
br label %14
14: ; preds = %11, %5
%15 = phi i32 [ %13, %11 ], [ %8, %5 ]
%16 = add i32 %15, -80
%17 = icmp ult i32 %16, 20
br i1 %17, label %18, label %21
18: ; preds = %14
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.13, i64 0, i64 0))
%20 = load i32, i32* %1
br label %21
21: ; preds = %18, %14
%22 = phi i32 [ %20, %18 ], [ %15, %14 ]
%23 = icmp sgt i32 %22, 100
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.12, i64 0, i64 0))
br label %26
26: ; preds = %24, %21
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.7, i64 0, i64 0))
%28 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%29 = load i32, i32* %2
%30 = add i32 %29, -40
%31 = icmp ult i32 %30, 40
br i1 %31, label %32, label %35
32: ; preds = %26
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.14, i64 0, i64 0))
%34 = load i32, i32* %2
br label %35
35: ; preds = %32, %26
%36 = phi i32 [ %34, %32 ], [ %29, %26 ]
%37 = add i32 %36, -80
%38 = icmp ult i32 %37, 20
br i1 %38, label %39, label %42
39: ; preds = %35
%40 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.13, i64 0, i64 0))
%41 = load i32, i32* %2
br label %42
42: ; preds = %39, %35
%43 = phi i32 [ %41, %39 ], [ %36, %35 ]
%44 = icmp sgt i32 %43, 100
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.12, i64 0, i64 0))
%47 = load i32, i32* %2
br label %48
48: ; preds = %42, %45
%49 = phi i32 [ %43, %42 ], [ %47, %45 ]
%50 = icmp sgt i32 %49, -1
br i1 %50, label %5, label %51
51: ; preds = %48
ret i32 0
}