#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 isci_satis_miktari[5];
  int sira;
  for (sira = 0; sira <= 5 - 1; sira++) {
    printf("%d. siradaki iscinin satis miktarini giriniz: ", sira + 1);
    scanf("%d", &isci_satis_miktari[sira]);
  }
  printf("Isci Numarasi \t\t Satis \t\t Maas\n");
  float isci_maas[5];
  float maas;
  for (sira = 0; sira <= 5 - 1; sira++) {
    maas = ((isci_satis_miktari[sira] * 9) / (float)100) + 200;
    isci_maas[sira] = maas;
    printf("%13d %16dTL %12.3fTL\n", sira + 1, isci_satis_miktari[sira],
           isci_maas[sira]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x4,-0x24(%rbp)
jg     117d <main+0x5d>
mov    -0x24(%rbp),%esi
add    $0x1,%esi
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x24(%rbp),%rax
lea    -0x20(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xecd(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1136 <main+0x16>
lea    0xeb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x4,-0x24(%rbp)
jg     120d <main+0xed>
movslq -0x24(%rbp),%rax
imul   $0x9,-0x20(%rbp,%rax,4),%eax
cvtsi2ss %eax,%xmm0
movss  0xe53(%rip),%xmm1
divss  %xmm1,%xmm0
movss  0xe43(%rip),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x44(%rbp),%xmm0
movslq -0x24(%rbp),%rax
movss  %xmm0,-0x40(%rbp,%rax,4)
mov    -0x24(%rbp),%esi
add    $0x1,%esi
movslq -0x24(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%edx
movslq -0x24(%rbp),%rax
movss  -0x40(%rbp,%rax,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe62(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1192 <main+0x72>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
lea    0xeca(%rip),%r14
mov    %r14,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee3(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    %r14,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    %r14,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    %r14,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    %r14,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xe7a(%rip),%rdi
call   1030 <puts@plt>
mov    (%rsp),%edx
lea    (%rdx,%rdx,8),%eax
cvtsi2ss %eax,%xmm0
divss  0xe13(%rip),%xmm0
addss  0xe0f(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe3a(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0x4(%rsp),%edx
lea    (%rdx,%rdx,8),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
divss  0xddb(%rip),%xmm0
addss  0xdd7(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0x8(%rsp),%edx
lea    (%rdx,%rdx,8),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
divss  0xdaa(%rip),%xmm0
addss  0xda6(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0xc(%rsp),%edx
lea    (%rdx,%rdx,8),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
divss  0xd79(%rip),%xmm0
addss  0xd75(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0x10(%rsp),%edx
lea    (%rdx,%rdx,8),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
divss  0xd48(%rip),%xmm0
addss  0xd44(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [47 x i8] c"%d. siradaki iscinin satis miktarini giriniz: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [32 x i8] c"Isci Numarasi \09\09 Satis \09\09 Maas\0A\00"
@.str.3 = [22 x i8] c"%13d %16dTL %12.3fTL\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x i32]
%3 = alloca i32
%4 = alloca [5 x float]
%5 = alloca float
store i32 0, i32* %1
store i32 0, i32* %3
br label %6
6: ; preds = %17, %0
%7 = load i32, i32* %3
%8 = icmp sle i32 %7, 4
br i1 %8, label %9, label %20
9: ; preds = %6
%10 = load i32, i32* %3
%11 = add nsw i32 %10, 1
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 %11)
%13 = load i32, i32* %3
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %14
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %15)
br label %17
17: ; preds = %9
%18 = load i32, i32* %3
%19 = add nsw i32 %18, 1
store i32 %19, i32* %3
br label %6
20: ; preds = %6
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %3
br label %22
22: ; preds = %50, %20
%23 = load i32, i32* %3
%24 = icmp sle i32 %23, 4
br i1 %24, label %25, label %53
25: ; preds = %22
%26 = load i32, i32* %3
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %27
%29 = load i32, i32* %28
%30 = mul nsw i32 %29, 9
%31 = sitofp i32 %30 to float
%32 = fdiv float %31, 1.000000e+02
%33 = fadd float %32, 2.000000e+02
store float %33, float* %5
%34 = load float, float* %5
%35 = load i32, i32* %3
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [5 x float], [5 x float]* %4, i64 0, i64 %36
store float %34, float* %37
%38 = load i32, i32* %3
%39 = add nsw i32 %38, 1
%40 = load i32, i32* %3
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %41
%43 = load i32, i32* %42
%44 = load i32, i32* %3
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [5 x float], [5 x float]* %4, i64 0, i64 %45
%47 = load float, float* %46
%48 = fpext float %47 to double
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i32 %39, i32 %43, double %48)
br label %50
50: ; preds = %25
%51 = load i32, i32* %3
%52 = add nsw i32 %51, 1
store i32 %52, i32* %3
br label %22
53: ; preds = %22
ret i32 0
}

LLVM IR (-O2):
@.str = [47 x i8] c"%d. siradaki iscinin satis miktarini giriniz: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [22 x i8] c"%13d %16dTL %12.3fTL\0A\00"
@str = [31 x i8] c"Isci Numarasi \09\09 Satis \09\09 Maas\00"
define i32 @main() {
%1 = alloca [5 x i32]
%2 = bitcast [5 x i32]* %1 to i8*
%3 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 1)
%4 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 2)
%7 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 1
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 3)
%10 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 2
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %10)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 4)
%13 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 3
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %13)
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 5)
%16 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 4
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %16)
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
%19 = load i32, i32* %4
%20 = mul nsw i32 %19, 9
%21 = sitofp i32 %20 to float
%22 = fdiv float %21, 1.000000e+02
%23 = fadd float %22, 2.000000e+02
%24 = fpext float %23 to double
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i32 1, i32 %19, double %24)
%26 = load i32, i32* %7
%27 = mul nsw i32 %26, 9
%28 = sitofp i32 %27 to float
%29 = fdiv float %28, 1.000000e+02
%30 = fadd float %29, 2.000000e+02
%31 = fpext float %30 to double
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i32 2, i32 %26, double %31)
%33 = load i32, i32* %10
%34 = mul nsw i32 %33, 9
%35 = sitofp i32 %34 to float
%36 = fdiv float %35, 1.000000e+02
%37 = fadd float %36, 2.000000e+02
%38 = fpext float %37 to double
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i32 3, i32 %33, double %38)
%40 = load i32, i32* %13
%41 = mul nsw i32 %40, 9
%42 = sitofp i32 %41 to float
%43 = fdiv float %42, 1.000000e+02
%44 = fadd float %43, 2.000000e+02
%45 = fpext float %44 to double
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i32 4, i32 %40, double %45)
%47 = load i32, i32* %16
%48 = mul nsw i32 %47, 9
%49 = sitofp i32 %48 to float
%50 = fdiv float %49, 1.000000e+02
%51 = fadd float %50, 2.000000e+02
%52 = fpext float %51 to double
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i32 5, i32 %47, double %52)
ret i32 0
}