#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 hesap_numarasi, hesap_numarasi1, hesap_numarasi2, hesap_numarasi3,
      kredi_limiti, bakiye, bakiye1, bakiye2, bakiye3, sayici;
  float kredi_limiti1, kredi_limiti2, kredi_limiti3;
  for (sayici = 1; sayici <= 3; sayici++) {
    printf("Musterinin hesap numarasini giriniz:");
    scanf("%d", &hesap_numarasi);
    printf("Musterinin kredi limitini giriniz:");
    scanf("%d", &kredi_limiti);
    printf("Musterinin bakiyesini giriniz:");
    scanf("%d", &bakiye);
    if (sayici == 1) {
      bakiye1 = bakiye;
      hesap_numarasi1 = hesap_numarasi;
      kredi_limiti1 = kredi_limiti;
      kredi_limiti1 = kredi_limiti1 / 2;
    }
    if (sayici == 2) {
      bakiye2 = bakiye;
      hesap_numarasi2 = hesap_numarasi;
      kredi_limiti2 = kredi_limiti;
      kredi_limiti2 = kredi_limiti2 / 2;
    }
    if (sayici == 3) {
      bakiye3 = bakiye;
      hesap_numarasi3 = hesap_numarasi;
      kredi_limiti3 = kredi_limiti;
      kredi_limiti3 = kredi_limiti3 / 2;
    }
  }
  printf("%d nolu musterinin yeni kredi limiti %.2f dir.\n", hesap_numarasi1,
         kredi_limiti1);
  printf("%d nolu musterinin yeni kredi limiti %.2f dir.\n", hesap_numarasi2,
         kredi_limiti2);
  printf("%d nolu musterinin yeni kredi limiti %.2f dir.\n", hesap_numarasi3,
         kredi_limiti3);
  if (kredi_limiti1 < bakiye1) {
    printf("%d hesap nolu musteri yeni kredi limitini asmistir.\n",
           hesap_numarasi1);
  }
  if (kredi_limiti2 < bakiye2) {
    printf("%d hesap nolu musteri yeni kredi limitini asmistir.\n",
           hesap_numarasi2);
  }
  if (kredi_limiti3 < bakiye3) {
    printf("%d hesap nolu musteri yeni kredi limitini asmistir.\n",
           hesap_numarasi3);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x2c(%rbp)
cmpl   $0x3,-0x2c(%rbp)
jg     124f <main+0x12f>
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed4(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb6(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xecc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe98(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x1,-0x2c(%rbp)
jne    11d0 <main+0xb0>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
cvtsi2ssl -0x18(%rbp),%xmm0
movss  %xmm0,-0x30(%rbp)
movss  -0x30(%rbp),%xmm0
movss  0xe39(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x30(%rbp)
cmpl   $0x2,-0x2c(%rbp)
jne    1206 <main+0xe6>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
cvtsi2ssl -0x18(%rbp),%xmm0
movss  %xmm0,-0x34(%rbp)
movss  -0x34(%rbp),%xmm0
movss  0xe03(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x34(%rbp)
cmpl   $0x3,-0x2c(%rbp)
jne    123c <main+0x11c>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
cvtsi2ssl -0x18(%rbp),%xmm0
movss  %xmm0,-0x38(%rbp)
movss  -0x38(%rbp),%xmm0
movss  0xdcd(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x38(%rbp)
jmp    1241 <main+0x121>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1136 <main+0x16>
mov    -0xc(%rbp),%esi
movss  -0x30(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe0c(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%esi
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdf2(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
movss  -0x38(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdd8(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x30(%rbp),%xmm1
cvtsi2ssl -0x20(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    12c1 <main+0x1a1>
mov    -0xc(%rbp),%esi
lea    0xde4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x34(%rbp),%xmm1
cvtsi2ssl -0x24(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    12e5 <main+0x1c5>
mov    -0x10(%rbp),%esi
lea    0xdc0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x38(%rbp),%xmm1
cvtsi2ssl -0x28(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1309 <main+0x1e9>
mov    -0x14(%rbp),%esi
lea    0xd9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xecf(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee6(%rip),%rbx
lea    0x8(%rsp),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <scanf@plt>
lea    0xed2(%rip),%r12
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x4(%rsp),%r13
mov    %rbx,%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
lea    0xed4(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rsp,%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1040 <scanf@plt>
mov    0x8(%rsp),%eax
mov    %eax,0x1c(%rsp)
cvtsi2ssl 0x4(%rsp),%xmm0
mulss  0xe57(%rip),%xmm0
movss  %xmm0,0x14(%rsp)
xorps  %xmm0,%xmm0
cvtsi2ssl (%rsp),%xmm0
movss  %xmm0,0x24(%rsp)
lea    0xe40(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <scanf@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1040 <scanf@plt>
mov    0x8(%rsp),%r14d
xorps  %xmm0,%xmm0
cvtsi2ssl 0x4(%rsp),%xmm0
mulss  0xdea(%rip),%xmm0
movss  %xmm0,0x10(%rsp)
xorps  %xmm0,%xmm0
cvtsi2ssl (%rsp),%xmm0
movss  %xmm0,0x20(%rsp)
lea    0xdd3(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <scanf@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
lea    0xdf0(%rip),%rdi
mov    0x1c(%rsp),%r15d
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1040 <scanf@plt>
mov    0x8(%rsp),%ebx
xorps  %xmm0,%xmm0
cvtsi2ssl 0x4(%rsp),%xmm0
mulss  0xd75(%rip),%xmm0
movss  %xmm0,0xc(%rsp)
xorps  %xmm0,%xmm0
cvtsi2ssl (%rsp),%xmm0
movss  %xmm0,0x18(%rsp)
movss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdbe(%rip),%rbp
mov    %rbp,%rdi
mov    %r15d,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    %r14d,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0x24(%rsp),%xmm0
ucomiss 0x14(%rsp),%xmm0
jbe    1308 <main+0x1e8>
lea    0xda0(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movss  0x20(%rsp),%xmm0
ucomiss 0x10(%rsp),%xmm0
jbe    1326 <main+0x206>
lea    0xd82(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movss  0x18(%rsp),%xmm0
ucomiss 0xc(%rsp),%xmm0
jbe    1343 <main+0x223>
lea    0xd64(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [37 x i8] c"Musterinin hesap numarasini giriniz:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [35 x i8] c"Musterinin kredi limitini giriniz:\00"
@.str.3 = [31 x i8] c"Musterinin bakiyesini giriniz:\00"
@.str.4 = [48 x i8] c"%d nolu musterinin yeni kredi limiti %.2f dir.\0A\00"
@.str.5 = [53 x i8] c"%d hesap nolu musteri yeni kredi limitini asmistir.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca float
%13 = alloca float
%14 = alloca float
store i32 0, i32* %1
store i32 1, i32* %11
br label %15
15: ; preds = %55, %0
%16 = load i32, i32* %11
%17 = icmp sle i32 %16, 3
br i1 %17, label %18, label %58
18: ; preds = %15
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
%25 = load i32, i32* %11
%26 = icmp eq i32 %25, 1
br i1 %26, label %27, label %34
27: ; preds = %18
%28 = load i32, i32* %7
store i32 %28, i32* %8
%29 = load i32, i32* %2
store i32 %29, i32* %3
%30 = load i32, i32* %6
%31 = sitofp i32 %30 to float
store float %31, float* %12
%32 = load float, float* %12
%33 = fdiv float %32, 2.000000e+00
store float %33, float* %12
br label %34
34: ; preds = %27, %18
%35 = load i32, i32* %11
%36 = icmp eq i32 %35, 2
br i1 %36, label %37, label %44
37: ; preds = %34
%38 = load i32, i32* %7
store i32 %38, i32* %9
%39 = load i32, i32* %2
store i32 %39, i32* %4
%40 = load i32, i32* %6
%41 = sitofp i32 %40 to float
store float %41, float* %13
%42 = load float, float* %13
%43 = fdiv float %42, 2.000000e+00
store float %43, float* %13
br label %44
44: ; preds = %37, %34
%45 = load i32, i32* %11
%46 = icmp eq i32 %45, 3
br i1 %46, label %47, label %54
47: ; preds = %44
%48 = load i32, i32* %7
store i32 %48, i32* %10
%49 = load i32, i32* %2
store i32 %49, i32* %5
%50 = load i32, i32* %6
%51 = sitofp i32 %50 to float
store float %51, float* %14
%52 = load float, float* %14
%53 = fdiv float %52, 2.000000e+00
store float %53, float* %14
br label %54
54: ; preds = %47, %44
br label %55
55: ; preds = %54
%56 = load i32, i32* %11
%57 = add nsw i32 %56, 1
store i32 %57, i32* %11
br label %15
58: ; preds = %15
%59 = load i32, i32* %3
%60 = load float, float* %12
%61 = fpext float %60 to double
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0), i32 %59, double %61)
%63 = load i32, i32* %4
%64 = load float, float* %13
%65 = fpext float %64 to double
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0), i32 %63, double %65)
%67 = load i32, i32* %5
%68 = load float, float* %14
%69 = fpext float %68 to double
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0), i32 %67, double %69)
%71 = load float, float* %12
%72 = load i32, i32* %8
%73 = sitofp i32 %72 to float
%74 = fcmp olt float %71, %73
br i1 %74, label %75, label %78
75: ; preds = %58
%76 = load i32, i32* %3
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), i32 %76)
br label %78
78: ; preds = %75, %58
%79 = load float, float* %13
%80 = load i32, i32* %9
%81 = sitofp i32 %80 to float
%82 = fcmp olt float %79, %81
br i1 %82, label %83, label %86
83: ; preds = %78
%84 = load i32, i32* %4
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), i32 %84)
br label %86
86: ; preds = %83, %78
%87 = load float, float* %14
%88 = load i32, i32* %10
%89 = sitofp i32 %88 to float
%90 = fcmp olt float %87, %89
br i1 %90, label %91, label %94
91: ; preds = %86
%92 = load i32, i32* %5
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), i32 %92)
br label %94
94: ; preds = %91, %86
ret i32 0
}

LLVM IR (-O2):
@.str = [37 x i8] c"Musterinin hesap numarasini giriniz:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [35 x i8] c"Musterinin kredi limitini giriniz:\00"
@.str.3 = [31 x i8] c"Musterinin bakiyesini giriniz:\00"
@.str.4 = [48 x i8] c"%d nolu musterinin yeni kredi limiti %.2f dir.\0A\00"
@.str.5 = [53 x i8] c"%d hesap nolu musteri yeni kredi limitini asmistir.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%13 = load i32, i32* %3
%14 = load i32, i32* %1
%15 = load i32, i32* %2
%16 = sitofp i32 %15 to float
%17 = fmul float %16, 5.000000e-01
%18 = sitofp i32 %13 to float
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%25 = load i32, i32* %3
%26 = load i32, i32* %1
%27 = load i32, i32* %2
%28 = sitofp i32 %27 to float
%29 = fmul float %28, 5.000000e-01
%30 = sitofp i32 %25 to float
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%32 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%34 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
%36 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%37 = load i32, i32* %3
%38 = load i32, i32* %1
%39 = load i32, i32* %2
%40 = sitofp i32 %39 to float
%41 = fmul float %40, 5.000000e-01
%42 = sitofp i32 %37 to float
%43 = fpext float %17 to double
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0), i32 %14, double %43)
%45 = fpext float %29 to double
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0), i32 %26, double %45)
%47 = fpext float %41 to double
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0), i32 %38, double %47)
%49 = fcmp olt float %17, %18
br i1 %49, label %50, label %52
50: ; preds = %0
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), i32 %14)
br label %52
52: ; preds = %50, %0
%53 = fcmp olt float %29, %30
br i1 %53, label %54, label %56
54: ; preds = %52
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), i32 %26)
br label %56
56: ; preds = %54, %52
%57 = fcmp olt float %41, %42
br i1 %57, label %58, label %60
58: ; preds = %56
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), i32 %38)
br label %60
60: ; preds = %58, %56
ret i32 0
}