#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 x;
  printf("Notunuzu giriniz: \n");
  scanf("%d", &x);
  if (x >= 0 && x <= 100) {
    if (x >= 0 && x <= 59)
      printf("Siz Kaldiniz! Notunuz: %d\n", x);
    if (x >= 60 && x <= 79)
      printf("Harf notunuz: B. Notunuz: %d\n", x);
    if (x >= 80 && x <= 100)
      printf("Harf notunuz: A. Notunuz: %d\n", x);
  } else
    printf("Shaka yapma!\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed0(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jl     11d5 <main+0xb5>
cmpl   $0x64,-0x8(%rbp)
jg     11d5 <main+0xb5>
cmpl   $0x0,-0x8(%rbp)
jl     1186 <main+0x66>
cmpl   $0x3b,-0x8(%rbp)
jg     1186 <main+0x66>
mov    -0x8(%rbp),%esi
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x3c,-0x8(%rbp)
jl     11ab <main+0x8b>
cmpl   $0x4f,-0x8(%rbp)
jg     11ab <main+0x8b>
mov    -0x8(%rbp),%esi
lea    0xe8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x50,-0x8(%rbp)
jl     11d0 <main+0xb0>
cmpl   $0x64,-0x8(%rbp)
jg     11d0 <main+0xb0>
mov    -0x8(%rbp),%esi
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11e3 <main+0xc3>
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf22(%rip),%rdi
call   1030 <puts@plt>
lea    0xebc(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x4(%rsp),%esi
cmp    $0x64,%esi
ja     11a0 <main+0x70>
cmp    $0x3b,%esi
ja     116e <main+0x3e>
lea    0xea0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%esi
lea    -0x3c(%rsi),%eax
cmp    $0x13,%eax
ja     1188 <main+0x58>
lea    0xea1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%esi
lea    -0x50(%rsi),%eax
cmp    $0x14,%eax
ja     11ac <main+0x7c>
lea    0xea5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    11ac <main+0x7c>
lea    0xec6(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Notunuzu giriniz: \0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [27 x i8] c"Siz Kaldiniz! Notunuz: %d\0A\00"
@.str.3 = [30 x i8] c"Harf notunuz: B. Notunuz: %d\0A\00"
@.str.4 = [30 x i8] c"Harf notunuz: A. Notunuz: %d\0A\00"
@.str.5 = [14 x i8] c"Shaka yapma!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%5 = load i32, i32* %2
%6 = icmp sge i32 %5, 0
br i1 %6, label %7, label %38
7: ; preds = %0
%8 = load i32, i32* %2
%9 = icmp sle i32 %8, 100
br i1 %9, label %10, label %38
10: ; preds = %7
%11 = load i32, i32* %2
%12 = icmp sge i32 %11, 0
br i1 %12, label %13, label %19
13: ; preds = %10
%14 = load i32, i32* %2
%15 = icmp sle i32 %14, 59
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load i32, i32* %2
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %17)
br label %19
19: ; preds = %16, %13, %10
%20 = load i32, i32* %2
%21 = icmp sge i32 %20, 60
br i1 %21, label %22, label %28
22: ; preds = %19
%23 = load i32, i32* %2
%24 = icmp sle i32 %23, 79
br i1 %24, label %25, label %28
25: ; preds = %22
%26 = load i32, i32* %2
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 %26)
br label %28
28: ; preds = %25, %22, %19
%29 = load i32, i32* %2
%30 = icmp sge i32 %29, 80
br i1 %30, label %31, label %37
31: ; preds = %28
%32 = load i32, i32* %2
%33 = icmp sle i32 %32, 100
br i1 %33, label %34, label %37
34: ; preds = %31
%35 = load i32, i32* %2
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 %35)
br label %37
37: ; preds = %34, %31, %28
br label %40
38: ; preds = %7, %0
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
br label %40
40: ; preds = %38, %37
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [27 x i8] c"Siz Kaldiniz! Notunuz: %d\0A\00"
@.str.3 = [30 x i8] c"Harf notunuz: B. Notunuz: %d\0A\00"
@.str.4 = [30 x i8] c"Harf notunuz: A. Notunuz: %d\0A\00"
@str = [19 x i8] c"Notunuzu giriniz: \00"
@str.6 = [13 x i8] c"Shaka yapma!\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = icmp ult i32 %5, 101
br i1 %6, label %7, label %25
7: ; preds = %0
%8 = icmp ult i32 %5, 60
br i1 %8, label %9, label %12
9: ; preds = %7
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%11 = load i32, i32* %1
br label %12
12: ; preds = %9, %7
%13 = phi i32 [ %11, %9 ], [ %5, %7 ]
%14 = add i32 %13, -60
%15 = icmp ult i32 %14, 20
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 %13)
%18 = load i32, i32* %1
br label %19
19: ; preds = %16, %12
%20 = phi i32 [ %18, %16 ], [ %13, %12 ]
%21 = add i32 %20, -80
%22 = icmp ult i32 %21, 21
br i1 %22, label %23, label %27
23: ; preds = %19
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 %20)
br label %27
25: ; preds = %0
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.6, i64 0, i64 0))
br label %27
27: ; preds = %19, %23, %25
ret i32 0
}