#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_s(char *, int *);
int /*<<< orphan*/ system(char *);
main() {
  int a, b;
  printf("Ilk sayiyi giriniz: ");
  scanf_s("%d", &a);
  printf("Ikinci sayiyi giriniz: ");
  scanf_s("%d", &b);
  if (a == b)
    printf("%d ve %d birbirine esittir.\n", a, b);
  if (a < b)
    printf("%d , &d den kucuktur.\n", a, b);
  if (a > b)
    printf("%d , %d den buyuktur.\n", a, b);
  if (a <= b)
    printf("%d , %d den kucuk veya esittir.\n", a, b);
  if (a >= b)
    printf("%d , %d den buyuk veya esittir.\n", a, b);
  else if (a != b)
    printf("%d , %d ye esit degildir.\n", a, b);
  system("pause");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec1(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf_s@plt>
lea    0xeb4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xea3(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf_s@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    119b <main+0x6b>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11bb <main+0x8b>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    11db <main+0xab>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe90(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     11fb <main+0xcb>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jl     1220 <main+0xf0>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe88(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1245 <main+0x115>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
je     1240 <main+0x110>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1245 <main+0x115>
lea    0xe8c(%rip),%rdi
call   1030 <system@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
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecb(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf_s@plt>
lea    0xeba(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf_s@plt>
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
cmp    %edx,%esi
je     11cf <main+0x9f>
cmp    %edx,%esi
jl     11eb <main+0xbb>
cmp    %edx,%esi
jg     1205 <main+0xd5>
cmp    %edx,%esi
jg     11a0 <main+0x70>
lea    0xeea(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
cmp    %edx,%esi
lea    0xf14(%rip),%rax
lea    0xeec(%rip),%rdi
cmovl  %rax,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf16(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret
lea    0xe5a(%rip),%rdi
mov    %esi,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
cmp    %edx,%esi
jge    1182 <main+0x52>
lea    0xe5b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
cmp    %edx,%esi
jle    1186 <main+0x56>
lea    0xe58(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
cmp    %edx,%esi
jle    118a <main+0x5a>
jmp    11a0 <main+0x70>

LLVM IR (-O0):
@.str = [21 x i8] c"Ilk sayiyi giriniz: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [24 x i8] c"Ikinci sayiyi giriniz: \00"
@.str.3 = [29 x i8] c"%d ve %d birbirine esittir.\0A\00"
@.str.4 = [23 x i8] c"%d , &d den kucuktur.\0A\00"
@.str.5 = [23 x i8] c"%d , %d den buyuktur.\0A\00"
@.str.6 = [33 x i8] c"%d , %d den kucuk veya esittir.\0A\00"
@.str.7 = [33 x i8] c"%d , %d den buyuk veya esittir.\0A\00"
@.str.8 = [27 x i8] c"%d , %d ye esit degildir.\0A\00"
@.str.9 = [6 x i8] c"pause\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @scanf_s(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @scanf_s(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%8 = load i32, i32* %2
%9 = load i32, i32* %3
%10 = icmp eq i32 %8, %9
br i1 %10, label %11, label %15
11: ; preds = %0
%12 = load i32, i32* %2
%13 = load i32, i32* %3
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %12, i32 %13)
br label %15
15: ; preds = %11, %0
%16 = load i32, i32* %2
%17 = load i32, i32* %3
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %23
19: ; preds = %15
%20 = load i32, i32* %2
%21 = load i32, i32* %3
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 %20, i32 %21)
br label %23
23: ; preds = %19, %15
%24 = load i32, i32* %2
%25 = load i32, i32* %3
%26 = icmp sgt i32 %24, %25
br i1 %26, label %27, label %31
27: ; preds = %23
%28 = load i32, i32* %2
%29 = load i32, i32* %3
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %28, i32 %29)
br label %31
31: ; preds = %27, %23
%32 = load i32, i32* %2
%33 = load i32, i32* %3
%34 = icmp sle i32 %32, %33
br i1 %34, label %35, label %39
35: ; preds = %31
%36 = load i32, i32* %2
%37 = load i32, i32* %3
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), i32 %36, i32 %37)
br label %39
39: ; preds = %35, %31
%40 = load i32, i32* %2
%41 = load i32, i32* %3
%42 = icmp sge i32 %40, %41
br i1 %42, label %43, label %47
43: ; preds = %39
%44 = load i32, i32* %2
%45 = load i32, i32* %3
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0), i32 %44, i32 %45)
br label %56
47: ; preds = %39
%48 = load i32, i32* %2
%49 = load i32, i32* %3
%50 = icmp ne i32 %48, %49
br i1 %50, label %51, label %55
51: ; preds = %47
%52 = load i32, i32* %2
%53 = load i32, i32* %3
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i32 %52, i32 %53)
br label %55
55: ; preds = %51, %47
br label %56
56: ; preds = %55, %43
%57 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%58 = load i32, i32* %1
ret i32 %58
}

LLVM IR (-O2):
@.str = [21 x i8] c"Ilk sayiyi giriniz: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [24 x i8] c"Ikinci sayiyi giriniz: \00"
@.str.3 = [29 x i8] c"%d ve %d birbirine esittir.\0A\00"
@.str.4 = [23 x i8] c"%d , &d den kucuktur.\0A\00"
@.str.5 = [23 x i8] c"%d , %d den buyuktur.\0A\00"
@.str.6 = [33 x i8] c"%d , %d den kucuk veya esittir.\0A\00"
@.str.7 = [33 x i8] c"%d , %d den buyuk veya esittir.\0A\00"
@.str.8 = [27 x i8] c"%d , %d ye esit degildir.\0A\00"
@.str.9 = [6 x i8] c"pause\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf_s(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @scanf_s(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%9 = load i32, i32* %1
%10 = load i32, i32* %2
%11 = icmp eq i32 %9, %10
br i1 %11, label %12, label %16
12: ; preds = %0
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %9, i32 %9)
%14 = load i32, i32* %1
%15 = load i32, i32* %2
br label %16
16: ; preds = %12, %0
%17 = phi i32 [ %15, %12 ], [ %10, %0 ]
%18 = phi i32 [ %14, %12 ], [ %9, %0 ]
%19 = icmp slt i32 %18, %17
br i1 %19, label %20, label %24
20: ; preds = %16
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 %18, i32 %17)
%22 = load i32, i32* %1
%23 = load i32, i32* %2
br label %24
24: ; preds = %20, %16
%25 = phi i32 [ %23, %20 ], [ %17, %16 ]
%26 = phi i32 [ %22, %20 ], [ %18, %16 ]
%27 = icmp sgt i32 %26, %25
br i1 %27, label %28, label %32
28: ; preds = %24
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %26, i32 %25)
%30 = load i32, i32* %1
%31 = load i32, i32* %2
br label %32
32: ; preds = %28, %24
%33 = phi i32 [ %31, %28 ], [ %25, %24 ]
%34 = phi i32 [ %30, %28 ], [ %26, %24 ]
%35 = icmp sgt i32 %34, %33
br i1 %35, label %40, label %36
36: ; preds = %32
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), i32 %34, i32 %33)
%38 = load i32, i32* %1
%39 = load i32, i32* %2
br label %40
40: ; preds = %36, %32
%41 = phi i32 [ %39, %36 ], [ %33, %32 ]
%42 = phi i32 [ %38, %36 ], [ %34, %32 ]
%43 = icmp slt i32 %42, %41
%44 = select i1 %43, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %44, i32 %42, i32 %41)
%46 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
ret i32 0
}