#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*/ araya_ekle(int, int);
int /*<<< orphan*/ degistir(int, int);
int /*<<< orphan*/ listele();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sona_ekle(int);
int /*<<< orphan*/ yok_et();
int main() {
  sona_ekle(62);
  sona_ekle(57);
  sona_ekle(41);
  sona_ekle(53);
  sona_ekle(5);
  araya_ekle(2, 7);
  listele();
  printf("Degistiriliyor...\n");
  degistir(62, 5);
  listele();
  yok_et();
  printf("Listeleniyor...\n");
  listele();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x3e,%edi
call   1040 <sona_ekle@plt>
mov    $0x39,%edi
call   1040 <sona_ekle@plt>
mov    $0x29,%edi
call   1040 <sona_ekle@plt>
mov    $0x35,%edi
call   1040 <sona_ekle@plt>
mov    $0x5,%edi
call   1040 <sona_ekle@plt>
mov    $0x2,%edi
mov    $0x7,%esi
call   1060 <araya_ekle@plt>
mov    $0x0,%al
call   1080 <listele@plt>
lea    0xe42(%rip),%rdi
call   1050 <printf@plt>
mov    $0x3e,%edi
mov    $0x5,%esi
call   1070 <degistir@plt>
mov    $0x0,%al
call   1080 <listele@plt>
mov    $0x0,%al
call   1030 <yok_et@plt>
lea    0xe2c(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <listele@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x3e,%edi
call   1050 <sona_ekle@plt>
mov    $0x39,%edi
call   1050 <sona_ekle@plt>
mov    $0x29,%edi
call   1050 <sona_ekle@plt>
mov    $0x35,%edi
call   1050 <sona_ekle@plt>
mov    $0x5,%edi
call   1050 <sona_ekle@plt>
mov    $0x2,%edi
mov    $0x7,%esi
call   1060 <araya_ekle@plt>
xor    %eax,%eax
call   1080 <listele@plt>
lea    0xe50(%rip),%rdi
call   1040 <puts@plt>
mov    $0x3e,%edi
mov    $0x5,%esi
call   1070 <degistir@plt>
xor    %eax,%eax
call   1080 <listele@plt>
xor    %eax,%eax
call   1030 <yok_et@plt>
lea    0xe39(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1080 <listele@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"Degistiriliyor...\0A\00"
@.str.1 = [17 x i8] c"Listeleniyor...\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @sona_ekle(i32 62)
%3 = call i32 @sona_ekle(i32 57)
%4 = call i32 @sona_ekle(i32 41)
%5 = call i32 @sona_ekle(i32 53)
%6 = call i32 @sona_ekle(i32 5)
%7 = call i32 @araya_ekle(i32 2, i32 7)
%8 = call i32 (...) @listele()
%9 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @degistir(i32 62, i32 5)
%11 = call i32 (...) @listele()
%12 = call i32 (...) @yok_et()
%13 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 (...) @listele()
ret i32 0
}

LLVM IR (-O2):
@str = [18 x i8] c"Degistiriliyor...\00"
@str.2 = [16 x i8] c"Listeleniyor...\00"
define i32 @main() {
%1 = tail call i32 @sona_ekle(i32 62)
%2 = tail call i32 @sona_ekle(i32 57)
%3 = tail call i32 @sona_ekle(i32 41)
%4 = tail call i32 @sona_ekle(i32 53)
%5 = tail call i32 @sona_ekle(i32 5)
%6 = tail call i32 @araya_ekle(i32 2, i32 7)
%7 = tail call i32 (...) @listele()
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%9 = tail call i32 @degistir(i32 62, i32 5)
%10 = tail call i32 (...) @listele()
%11 = tail call i32 (...) @yok_et()
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.2, i64 0, i64 0))
%13 = tail call i32 (...) @listele()
ret i32 0
}