#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 */
double pow(double, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  int yil, sayici;
  double toplam_para, anapara, oran;
  printf("Ana parayi giriniz:");
  scanf("%lf", &anapara);
  printf("Faiz yatacak yili giriniz:");
  scanf("%d", &yil);
  for (oran = .05; oran <= .1; oran = oran + .01) {
    printf("%4s%21s%15s\n", "Yil", "Depozito Miktari", "Faiz orani");
    for (sayici = 1; sayici <= yil; sayici++) {
      toplam_para = anapara * pow(1.0 + oran, sayici);
      printf("%3d%21.2f%15.2f\n", sayici, toplam_para, oran);
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee0(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movsd  0xe79(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe74(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jb     1253 <main+0x123>
lea    0xeb0(%rip),%rdi
lea    0xeb6(%rip),%rsi
lea    0xeb3(%rip),%rdx
lea    0xebd(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     122e <main+0xfe>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe31(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
mov    -0xc(%rbp),%edi
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0xc(%rbp),%esi
movsd  -0x18(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
lea    0xe6a(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11c9 <main+0x99>
lea    0xe5d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  0xdcc(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    118c <main+0x5c>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
lea    0xf12(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf16(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xf07(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf14(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xf04(%rip),%rdi
lea    0xf0a(%rip),%rsi
lea    0xf07(%rip),%rdx
lea    0xf11(%rip),%rcx
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0x4(%rsp)
jle    11fe <main+0xbe>
lea    0xf07(%rip),%r14
nopl   0x0(%rax)
add    $0x1,%ebx
movsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xe29(%rip),%xmm0
mov    %ebx,%edi
call   1060 <pow@plt>
mulsd  0x8(%rsp),%xmm0
mov    %r14,%rdi
mov    %ebx,%esi
movsd  0xe17(%rip),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
cmp    0x4(%rsp),%ebx
jl     11c0 <main+0x80>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe87(%rip),%rdi
lea    0xe8d(%rip),%rsi
lea    0xe8a(%rip),%rdx
lea    0xe94(%rip),%rcx
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0x4(%rsp)
jle    127e <main+0x13e>
lea    0xe88(%rip),%r14
nopl   0x0(%rax,%rax,1)
add    $0x1,%ebx
movsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xdb9(%rip),%xmm0
mov    %ebx,%edi
call   1060 <pow@plt>
mulsd  0x8(%rsp),%xmm0
mov    %r14,%rdi
mov    %ebx,%esi
movsd  0xda7(%rip),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
cmp    0x4(%rsp),%ebx
jl     1240 <main+0x100>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe07(%rip),%rdi
lea    0xe0d(%rip),%rsi
lea    0xe0a(%rip),%rdx
lea    0xe14(%rip),%rcx
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0x4(%rsp)
jle    12fe <main+0x1be>
lea    0xe08(%rip),%r14
nopl   0x0(%rax,%rax,1)
add    $0x1,%ebx
movsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xd49(%rip),%xmm0
mov    %ebx,%edi
call   1060 <pow@plt>
mulsd  0x8(%rsp),%xmm0
mov    %r14,%rdi
mov    %ebx,%esi
movsd  0xd37(%rip),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
cmp    0x4(%rsp),%ebx
jl     12c0 <main+0x180>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xd87(%rip),%rdi
lea    0xd8d(%rip),%rsi
lea    0xd8a(%rip),%rdx
lea    0xd94(%rip),%rcx
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0x4(%rsp)
jle    137e <main+0x23e>
lea    0xd88(%rip),%r14
nopl   0x0(%rax,%rax,1)
add    $0x1,%ebx
movsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xcd9(%rip),%xmm0
mov    %ebx,%edi
call   1060 <pow@plt>
mulsd  0x8(%rsp),%xmm0
mov    %r14,%rdi
mov    %ebx,%esi
movsd  0xcc7(%rip),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
cmp    0x4(%rsp),%ebx
jl     1340 <main+0x200>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xd07(%rip),%rdi
lea    0xd0d(%rip),%rsi
lea    0xd0a(%rip),%rdx
lea    0xd14(%rip),%rcx
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0x4(%rsp)
jle    13fe <main+0x2be>
lea    0xd08(%rip),%r14
nopl   0x0(%rax,%rax,1)
add    $0x1,%ebx
movsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xc69(%rip),%xmm0
mov    %ebx,%edi
call   1060 <pow@plt>
mulsd  0x8(%rsp),%xmm0
mov    %r14,%rdi
mov    %ebx,%esi
movsd  0xc57(%rip),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
cmp    0x4(%rsp),%ebx
jl     13c0 <main+0x280>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xc87(%rip),%rdi
lea    0xc8d(%rip),%rsi
lea    0xc8a(%rip),%rdx
lea    0xc94(%rip),%rcx
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0x4(%rsp)
jle    147e <main+0x33e>
lea    0xc88(%rip),%r14
nopl   0x0(%rax,%rax,1)
add    $0x1,%ebx
movsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xbf9(%rip),%xmm0
mov    %ebx,%edi
call   1060 <pow@plt>
mulsd  0x8(%rsp),%xmm0
mov    %r14,%rdi
mov    %ebx,%esi
movsd  0xbe7(%rip),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
cmp    0x4(%rsp),%ebx
jl     1440 <main+0x300>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Ana parayi giriniz:\00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [27 x i8] c"Faiz yatacak yili giriniz:\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [13 x i8] c"%4s%21s%15s\0A\00"
@.str.5 = [4 x i8] c"Yil\00"
@.str.6 = [17 x i8] c"Depozito Miktari\00"
@.str.7 = [11 x i8] c"Faiz orani\00"
@.str.8 = [17 x i8] c"%3d%21.2f%15.2f\0A\00"
@.str.9 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca double
%5 = alloca double
%6 = alloca double
store i32 0, i32* %1
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %5)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
store double 5.000000e-02, double* %6
br label %11
11: ; preds = %36, %0
%12 = load double, double* %6
%13 = fcmp ole double %12, 1.000000e-01
br i1 %13, label %14, label %39
14: ; preds = %11
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
store i32 1, i32* %3
br label %16
16: ; preds = %31, %14
%17 = load i32, i32* %3
%18 = load i32, i32* %2
%19 = icmp sle i32 %17, %18
br i1 %19, label %20, label %34
20: ; preds = %16
%21 = load double, double* %5
%22 = load double, double* %6
%23 = fadd double 1.000000e+00, %22
%24 = load i32, i32* %3
%25 = call double @pow(double %23, i32 %24)
%26 = fmul double %21, %25
store double %26, double* %4
%27 = load i32, i32* %3
%28 = load double, double* %4
%29 = load double, double* %6
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i32 %27, double %28, double %29)
br label %31
31: ; preds = %20
%32 = load i32, i32* %3
%33 = add nsw i32 %32, 1
store i32 %33, i32* %3
br label %16
34: ; preds = %16
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %36
36: ; preds = %34
%37 = load double, double* %6
%38 = fadd double %37, 1.000000e-02
store double %38, double* %6
br label %11
39: ; preds = %11
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"Ana parayi giriniz:\00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [27 x i8] c"Faiz yatacak yili giriniz:\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [13 x i8] c"%4s%21s%15s\0A\00"
@.str.5 = [4 x i8] c"Yil\00"
@.str.6 = [17 x i8] c"Depozito Miktari\00"
@.str.7 = [11 x i8] c"Faiz orani\00"
@.str.8 = [17 x i8] c"%3d%21.2f%15.2f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = bitcast i32* %1 to i8*
%4 = bitcast double* %2 to i8*
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%6 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %1)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%10 = load i32, i32* %1
%11 = icmp slt i32 %10, 1
br i1 %11, label %21, label %12
12: ; preds = %0, %12
%13 = phi i32 [ %18, %12 ], [ 1, %0 ]
%14 = load double, double* %2
%15 = call double @pow(double 1.050000e+00, i32 %13)
%16 = fmul double %14, %15
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i32 %13, double %16, double 5.000000e-02)
%18 = add nuw nsw i32 %13, 1
%19 = load i32, i32* %1
%20 = icmp slt i32 %13, %19
br i1 %20, label %12, label %21
21: ; preds = %12, %0
%22 = call i32 @putchar(i32 10)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%24 = load i32, i32* %1
%25 = icmp slt i32 %24, 1
br i1 %25, label %35, label %26
26: ; preds = %21, %26
%27 = phi i32 [ %32, %26 ], [ 1, %21 ]
%28 = load double, double* %2
%29 = call double @pow(double 1.060000e+00, i32 %27)
%30 = fmul double %28, %29
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i32 %27, double %30, double 0x3FAEB851EB851EB9)
%32 = add nuw nsw i32 %27, 1
%33 = load i32, i32* %1
%34 = icmp slt i32 %27, %33
br i1 %34, label %26, label %35
35: ; preds = %26, %21
%36 = call i32 @putchar(i32 10)
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%38 = load i32, i32* %1
%39 = icmp slt i32 %38, 1
br i1 %39, label %49, label %40
40: ; preds = %35, %40
%41 = phi i32 [ %46, %40 ], [ 1, %35 ]
%42 = load double, double* %2
%43 = call double @pow(double 1.070000e+00, i32 %41)
%44 = fmul double %42, %43
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i32 %41, double %44, double 7.000000e-02)
%46 = add nuw nsw i32 %41, 1
%47 = load i32, i32* %1
%48 = icmp slt i32 %41, %47
br i1 %48, label %40, label %49
49: ; preds = %40, %35
%50 = call i32 @putchar(i32 10)
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%52 = load i32, i32* %1
%53 = icmp slt i32 %52, 1
br i1 %53, label %63, label %54
54: ; preds = %49, %54
%55 = phi i32 [ %60, %54 ], [ 1, %49 ]
%56 = load double, double* %2
%57 = call double @pow(double 1.080000e+00, i32 %55)
%58 = fmul double %56, %57
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i32 %55, double %58, double 8.000000e-02)
%60 = add nuw nsw i32 %55, 1
%61 = load i32, i32* %1
%62 = icmp slt i32 %55, %61
br i1 %62, label %54, label %63
63: ; preds = %54, %49
%64 = call i32 @putchar(i32 10)
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%66 = load i32, i32* %1
%67 = icmp slt i32 %66, 1
br i1 %67, label %77, label %68
68: ; preds = %63, %68
%69 = phi i32 [ %74, %68 ], [ 1, %63 ]
%70 = load double, double* %2
%71 = call double @pow(double 1.090000e+00, i32 %69)
%72 = fmul double %70, %71
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i32 %69, double %72, double 0x3FB70A3D70A3D70A)
%74 = add nuw nsw i32 %69, 1
%75 = load i32, i32* %1
%76 = icmp slt i32 %69, %75
br i1 %76, label %68, label %77
77: ; preds = %68, %63
%78 = call i32 @putchar(i32 10)
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%80 = load i32, i32* %1
%81 = icmp slt i32 %80, 1
br i1 %81, label %91, label %82
82: ; preds = %77, %82
%83 = phi i32 [ %88, %82 ], [ 1, %77 ]
%84 = load double, double* %2
%85 = call double @pow(double 1.100000e+00, i32 %83)
%86 = fmul double %84, %85
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i32 %83, double %86, double 0x3FB9999999999999)
%88 = add nuw nsw i32 %83, 1
%89 = load i32, i32* %1
%90 = icmp slt i32 %83, %89
br i1 %90, label %82, label %91
91: ; preds = %82, %77
%92 = call i32 @putchar(i32 10)
ret i32 0
}