#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 enDusukNotuBul(int);
int enYuksekNotuBul(int);
int /*<<< orphan*/ notYazdir(int, int);
int /*<<< orphan*/ printf(char *, ...);
double sinavOrtalamasiBul(int);
int /*<<< orphan*/ tumNotlariYazdir();
int /*<<< orphan*/ yeniNot(int, int, int, int);
int main() {
  tumNotlariYazdir();
  notYazdir(123, 2);
  printf("1. sinav ortalamasi: %f\n", sinavOrtalamasiBul(1));
  printf("3. sinavin en yuksek notu: %i\n", enYuksekNotuBul(3));
  printf("2. sinavin en dusuk notu: %i\n", enDusukNotuBul(2));
  printf("lolz-------------------------XDXDXD\n");
  yeniNot(5, 1, 2, 3);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1070 <tumNotlariYazdir@plt>
mov    $0x7b,%edi
mov    $0x2,%esi
call   1080 <notYazdir@plt>
mov    $0x1,%edi
call   1090 <sinavOrtalamasiBul@plt>
lea    0xe5a(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0x3,%edi
call   1040 <enYuksekNotuBul@plt>
mov    %eax,%esi
lea    0xe59(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x2,%edi
call   1030 <enDusukNotuBul@plt>
mov    %eax,%esi
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe6e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x5,%edi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
call   1060 <yeniNot@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1080 <tumNotlariYazdir@plt>
mov    $0x7b,%edi
mov    $0x2,%esi
call   1090 <notYazdir@plt>
mov    $0x1,%edi
call   10a0 <sinavOrtalamasiBul@plt>
lea    0xe58(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x3,%edi
call   1050 <enYuksekNotuBul@plt>
lea    0xe59(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x2,%edi
call   1030 <enDusukNotuBul@plt>
lea    0xe5e(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe6c(%rip),%rdi
call   1040 <puts@plt>
mov    $0x5,%edi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
call   1070 <yeniNot@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [25 x i8] c"1. sinav ortalamasi: %f\0A\00"
@.str.1 = [31 x i8] c"3. sinavin en yuksek notu: %i\0A\00"
@.str.2 = [30 x i8] c"2. sinavin en dusuk notu: %i\0A\00"
@.str.3 = [37 x i8] c"lolz-------------------------XDXDXD\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @tumNotlariYazdir()
%3 = call i32 @notYazdir(i32 123, i32 2)
%4 = call double @sinavOrtalamasiBul(i32 1)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), double %4)
%6 = call i32 @enYuksekNotuBul(i32 3)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%8 = call i32 @enDusukNotuBul(i32 2)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %8)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 @yeniNot(i32 5, i32 1, i32 2, i32 3)
ret i32 0
}

LLVM IR (-O2):
@.str = [25 x i8] c"1. sinav ortalamasi: %f\0A\00"
@.str.1 = [31 x i8] c"3. sinavin en yuksek notu: %i\0A\00"
@.str.2 = [30 x i8] c"2. sinavin en dusuk notu: %i\0A\00"
@str = [36 x i8] c"lolz-------------------------XDXDXD\00"
define i32 @main() {
%1 = tail call i32 (...) @tumNotlariYazdir()
%2 = tail call i32 @notYazdir(i32 123, i32 2)
%3 = tail call double @sinavOrtalamasiBul(i32 1)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), double %3)
%5 = tail call i32 @enYuksekNotuBul(i32 3)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%7 = tail call i32 @enDusukNotuBul(i32 2)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %7)
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
%10 = tail call i32 @yeniNot(i32 5, i32 1, i32 2, i32 3)
ret i32 0
}