#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 *, float *);
int main() {
  int yuzde = 9;
  float maas, satis;
  maas = 0;
  printf("Programdan cıkmak icin -1 giriniz.\n");
  printf("Turk lirasi cinsinden satis tutarini giriniz:");
  scanf("%f", &satis);
  while (satis != -1) {
    maas = satis * yuzde / 100;
    maas = maas + 200;
    printf("Maasi %.2f TL dir.\n", maas);
    printf("Turk lirasi cinsinden satis tutarini giriniz:");
    scanf("%f", &satis);
  }
  if (satis == -1) {
    printf("Program sonlandirilmistir.");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x9,-0x8(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefe(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x10(%rbp),%xmm0
movss  0xe89(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    118b <main+0x6b>
jp     118b <main+0x6b>
jmp    11f6 <main+0xd6>
movss  -0x10(%rbp),%xmm0
cvtsi2ssl -0x8(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  0xe67(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  0xe52(%rip),%xmm0
addss  -0xc(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe96(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe77(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
jmp    116a <main+0x4a>
movss  -0x10(%rbp),%xmm0
movss  0xdfd(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    1220 <main+0x100>
jp     1220 <main+0x100>
lea    0xe5d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xf31(%rip),%rdi
call   1030 <puts@plt>
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee5(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
movss  0x4(%rsp),%xmm0
ucomiss 0xe90(%rip),%xmm0
jne    1174 <main+0x44>
jnp    11dc <main+0xac>
lea    0xec6(%rip),%r14
lea    0xe8e(%rip),%r15
lea    0xeb5(%rip),%r12
lea    0x4(%rsp),%rbx
xchg   %ax,%ax
mulss  0xe6c(%rip),%xmm0
divss  0xe68(%rip),%xmm0
addss  0xe64(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
movss  0x4(%rsp),%xmm0
ucomiss 0xe28(%rip),%xmm0
jne    1190 <main+0x60>
jp     1190 <main+0x60>
lea    0xe72(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [37 x i8] c"Programdan c\C4\B1kmak icin -1 giriniz.\0A\00"
@.str.1 = [46 x i8] c"Turk lirasi cinsinden satis tutarini giriniz:\00"
@.str.2 = [3 x i8] c"%f\00"
@.str.3 = [20 x i8] c"Maasi %.2f TL dir.\0A\00"
@.str.4 = [27 x i8] c"Program sonlandirilmistir.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca float
store i32 0, i32* %1
store i32 9, i32* %2
store float 0.000000e+00, float* %3
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %4)
br label %8
8: ; preds = %11, %0
%9 = load float, float* %4
%10 = fcmp une float %9, -1.000000e+00
br i1 %10, label %11, label %24
11: ; preds = %8
%12 = load float, float* %4
%13 = load i32, i32* %2
%14 = sitofp i32 %13 to float
%15 = fmul float %12, %14
%16 = fdiv float %15, 1.000000e+02
store float %16, float* %3
%17 = load float, float* %3
%18 = fadd float %17, 2.000000e+02
store float %18, float* %3
%19 = load float, float* %3
%20 = fpext float %19 to double
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), double %20)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
%23 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %4)
br label %8
24: ; preds = %8
%25 = load float, float* %4
%26 = fcmp oeq float %25, -1.000000e+00
br i1 %26, label %27, label %29
27: ; preds = %24
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
br label %29
29: ; preds = %27, %24
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [46 x i8] c"Turk lirasi cinsinden satis tutarini giriniz:\00"
@.str.2 = [3 x i8] c"%f\00"
@.str.3 = [20 x i8] c"Maasi %.2f TL dir.\0A\00"
@.str.4 = [27 x i8] c"Program sonlandirilmistir.\00"
@str = [36 x i8] c"Programdan c\C4\B1kmak icin -1 giriniz.\00"
define i32 @main() {
%1 = alloca float
%2 = bitcast float* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %1)
%6 = load float, float* %1
%7 = fcmp une float %6, -1.000000e+00
br i1 %7, label %8, label %19
8: ; preds = %0, %8
%9 = phi float [ %17, %8 ], [ %6, %0 ]
%10 = fmul float %9, 9.000000e+00
%11 = fdiv float %10, 1.000000e+02
%12 = fadd float %11, 2.000000e+02
%13 = fpext float %12 to double
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), double %13)
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %1)
%17 = load float, float* %1
%18 = fcmp une float %17, -1.000000e+00
br i1 %18, label %8, label %19
19: ; preds = %8, %0
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
ret i32 0
}