#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*/ medyan(int *);
int /*<<< orphan*/ mod(int *, int *);
int /*<<< orphan*/ ortalama(int *);
main() {
  int frekans[10] = {0};
  int sayilar[100] = {1, 2, 3, 4, 5, 4, 3, 5, 9, 9, 8, 1, 5, 6, 7, 8, 2,
                      5, 6, 6, 5, 9, 7, 8, 9, 2, 9, 6, 9, 8, 5, 6, 2, 9,
                      8, 3, 6, 8, 6, 2, 3, 5, 8, 6, 9, 8, 6, 7, 6, 5, 2,
                      8, 5, 1, 2, 3, 7, 8, 5, 6, 9, 8, 7, 5, 4, 1, 3, 8,
                      7, 4, 5, 1, 8, 9, 7, 3, 5, 4, 8, 7, 1, 4, 3, 8, 9,
                      1, 9, 8, 6, 2, 3, 4, 7, 5, 9, 6, 5, 9, 1, 9};
  ortalama(sayilar);
  medyan(sayilar);
  mod(frekans, sayilar);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1c0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1050 <memset@plt>
lea    -0x1c0(%rbp),%rdi
lea    0xe80(%rip),%rsi
mov    $0x190,%edx
call   1060 <memcpy@plt>
lea    -0x1c0(%rbp),%rdi
call   1030 <ortalama@plt>
lea    -0x1c0(%rbp),%rdi
call   1070 <medyan@plt>
lea    -0x30(%rbp),%rdi
lea    -0x1c0(%rbp),%rsi
call   1040 <mod@plt>
xor    %eax,%eax
add    $0x1c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x1c0,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
movq   $0x0,0x20(%rsp)
lea    0xe9c(%rip),%rsi
lea    0x30(%rsp),%rbx
mov    $0x190,%edx
mov    %rbx,%rdi
call   1050 <memcpy@plt>
mov    %rbx,%rdi
call   1030 <ortalama@plt>
mov    %rbx,%rdi
call   1060 <medyan@plt>
mov    %rsp,%rdi
mov    %rbx,%rsi
call   1040 <mod@plt>
xor    %eax,%eax
add    $0x1c0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.sayilar = [100 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 4, i32 3, i32 5, i32 9, i32 9, i32 8, i32 1, i32 5, i32 6, i32 7, i32 8, i32 2, i32 5, i32 6, i32 6, i32 5, i32 9, i32 7, i32 8, i32 9, i32 2, i32 9, i32 6, i32 9, i32 8, i32 5, i32 6, i32 2, i32 9, i32 8, i32 3, i32 6, i32 8, i32 6, i32 2, i32 3, i32 5, i32 8, i32 6, i32 9, i32 8, i32 6, i32 7, i32 6, i32 5, i32 2, i32 8, i32 5, i32 1, i32 2, i32 3, i32 7, i32 8, i32 5, i32 6, i32 9, i32 8, i32 7, i32 5, i32 4, i32 1, i32 3, i32 8, i32 7, i32 4, i32 5, i32 1, i32 8, i32 9, i32 7, i32 3, i32 5, i32 4, i32 8, i32 7, i32 1, i32 4, i32 3, i32 8, i32 9, i32 1, i32 9, i32 8, i32 6, i32 2, i32 3, i32 4, i32 7, i32 5, i32 9, i32 6, i32 5, i32 9, i32 1, i32 9]
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = alloca [100 x i32]
store i32 0, i32* %1
%4 = bitcast [10 x i32]* %2 to i8*
%5 = bitcast [100 x i32]* %3 to i8*
%6 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 0
%7 = call i32 @ortalama(i32* %6)
%8 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 0
%9 = call i32 @medyan(i32* %8)
%10 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%11 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 0
%12 = call i32 @mod(i32* %10, i32* %11)
ret i32 0
}

LLVM IR (-O2):
@__const.main.sayilar = [100 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 4, i32 3, i32 5, i32 9, i32 9, i32 8, i32 1, i32 5, i32 6, i32 7, i32 8, i32 2, i32 5, i32 6, i32 6, i32 5, i32 9, i32 7, i32 8, i32 9, i32 2, i32 9, i32 6, i32 9, i32 8, i32 5, i32 6, i32 2, i32 9, i32 8, i32 3, i32 6, i32 8, i32 6, i32 2, i32 3, i32 5, i32 8, i32 6, i32 9, i32 8, i32 6, i32 7, i32 6, i32 5, i32 2, i32 8, i32 5, i32 1, i32 2, i32 3, i32 7, i32 8, i32 5, i32 6, i32 9, i32 8, i32 7, i32 5, i32 4, i32 1, i32 3, i32 8, i32 7, i32 4, i32 5, i32 1, i32 8, i32 9, i32 7, i32 3, i32 5, i32 4, i32 8, i32 7, i32 1, i32 4, i32 3, i32 8, i32 9, i32 1, i32 9, i32 8, i32 6, i32 2, i32 3, i32 4, i32 7, i32 5, i32 9, i32 6, i32 5, i32 9, i32 1, i32 9]
define i32 @main() {
%1 = alloca [10 x i32]
%2 = alloca [100 x i32]
%3 = bitcast [10 x i32]* %1 to i8*
%4 = bitcast [100 x i32]* %2 to i8*
%5 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 0
%6 = call i32 @ortalama(i32* %5)
%7 = call i32 @medyan(i32* %5)
%8 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%9 = call i32 @mod(i32* %8, i32* %5)
ret i32 0
}