#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() {
  float sayi_1, sayi_2, sayi_3, i;
  printf("Cıkıs icin -1 giriniz.\n");
  printf("Birinci sayiyi giriniz:");
  scanf("%f", &sayi_1);
  while (sayi_1 != -1) {
    printf("Ikinci sayiyi giriniz:");
    scanf("%f", &sayi_2);
    printf("Ucuncu sayiyi giriniz:");
    scanf("%f", &sayi_3);
    if (((sayi_3 - sayi_2) < sayi_1 && sayi_1 < (sayi_2 + sayi_3)) &&
        ((sayi_3 - sayi_1) < sayi_2 && sayi_2 < (sayi_3 + sayi_1)) &&
        ((sayi_2 - sayi_1) < sayi_3 && sayi_3 < (sayi_2 + sayi_1))) {
      printf("Bu sayilarla bir ucgen olusturulabilir.\n");
    } else {
      printf("Bu sayilarla bir ucgen olusturulamaz.\n");
    }
    printf("Birinci sayiyi giriniz:");
    scanf("%f", &sayi_1);
  }
  printf("Program sonlandirilmistir.");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
lea    0xedc(%rip),%rdi
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
movss  0xe9c(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    1178 <main+0x58>
jp     1178 <main+0x58>
jmp    127e <main+0x15e>
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
lea    0xeab(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
lea    0xe8f(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x10(%rbp),%xmm1
subss  -0xc(%rbp),%xmm1
movss  -0x8(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1251 <main+0x131>
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm0
addss  -0x10(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1251 <main+0x131>
movss  -0x10(%rbp),%xmm1
subss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1251 <main+0x131>
movss  -0xc(%rbp),%xmm1
movss  -0x10(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1251 <main+0x131>
movss  -0xc(%rbp),%xmm1
subss  -0x8(%rbp),%xmm1
movss  -0x10(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1251 <main+0x131>
movss  -0x10(%rbp),%xmm1
movss  -0xc(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1251 <main+0x131>
lea    0xe20(%rip),%rdi
call   1030 <printf@plt>
jmp    125d <main+0x13d>
lea    0xe38(%rip),%rdi
call   1030 <printf@plt>
lea    0xdba(%rip),%rdi
call   1030 <printf@plt>
lea    0xdc6(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
jmp    1157 <main+0x37>
lea    0xe32(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xf23(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb3(%rip),%rdi
call   1040 <printf@plt>
lea    0xebf(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1050 <scanf@plt>
movss  0xc(%rsp),%xmm0
ucomiss 0xe8c(%rip),%xmm0
jne    117c <main+0x4c>
jnp    1277 <main+0x147>
lea    0xe99(%rip),%rbx
lea    0x10(%rsp),%r13
lea    0xf18(%rip),%r15
lea    0xeeb(%rip),%r12
lea    0xe67(%rip),%rbp
lea    0xc(%rsp),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0xe68(%rip),%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0x14(%rsp),%rsi
call   1050 <scanf@plt>
lea    0xe66(%rip),%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1050 <scanf@plt>
movss  0x10(%rsp),%xmm0
movss  0x14(%rsp),%xmm1
movss  0xc(%rsp),%xmm2
movaps %xmm1,%xmm3
addss  %xmm2,%xmm3
ucomiss %xmm0,%xmm3
mov    %r12,%rdi
cmova  %r15,%rdi
movaps %xmm1,%xmm3
subss  %xmm2,%xmm3
ucomiss %xmm3,%xmm0
cmovbe %r12,%rdi
movaps %xmm0,%xmm3
addss  %xmm2,%xmm3
ucomiss %xmm1,%xmm3
cmovbe %r12,%rdi
movaps %xmm0,%xmm3
subss  %xmm2,%xmm3
ucomiss %xmm3,%xmm1
cmovbe %r12,%rdi
movaps %xmm0,%xmm3
addss  %xmm1,%xmm3
ucomiss %xmm2,%xmm3
cmovbe %r12,%rdi
subss  %xmm1,%xmm0
ucomiss %xmm0,%xmm2
cmovbe %r12,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <scanf@plt>
movss  0xc(%rsp),%xmm0
ucomiss 0xd95(%rip),%xmm0
jne    11b0 <main+0x80>
jp     11b0 <main+0x80>
lea    0xdcf(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [26 x i8] c"C\C4\B1k\C4\B1s icin -1 giriniz.\0A\00"
@.str.1 = [24 x i8] c"Birinci sayiyi giriniz:\00"
@.str.2 = [3 x i8] c"%f\00"
@.str.3 = [23 x i8] c"Ikinci sayiyi giriniz:\00"
@.str.4 = [23 x i8] c"Ucuncu sayiyi giriniz:\00"
@.str.5 = [41 x i8] c"Bu sayilarla bir ucgen olusturulabilir.\0A\00"
@.str.6 = [39 x i8] c"Bu sayilarla bir ucgen olusturulamaz.\0A\00"
@.str.7 = [27 x i8] c"Program sonlandirilmistir.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
store i32 0, i32* %1
%6 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %2)
br label %9
9: ; preds = %56, %0
%10 = load float, float* %2
%11 = fcmp une float %10, -1.000000e+00
br i1 %11, label %12, label %59
12: ; preds = %9
%13 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %3)
%15 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %4)
%17 = load float, float* %4
%18 = load float, float* %3
%19 = fsub float %17, %18
%20 = load float, float* %2
%21 = fcmp olt float %19, %20
br i1 %21, label %22, label %54
22: ; preds = %12
%23 = load float, float* %2
%24 = load float, float* %3
%25 = load float, float* %4
%26 = fadd float %24, %25
%27 = fcmp olt float %23, %26
br i1 %27, label %28, label %54
28: ; preds = %22
%29 = load float, float* %4
%30 = load float, float* %2
%31 = fsub float %29, %30
%32 = load float, float* %3
%33 = fcmp olt float %31, %32
br i1 %33, label %34, label %54
34: ; preds = %28
%35 = load float, float* %3
%36 = load float, float* %4
%37 = load float, float* %2
%38 = fadd float %36, %37
%39 = fcmp olt float %35, %38
br i1 %39, label %40, label %54
40: ; preds = %34
%41 = load float, float* %3
%42 = load float, float* %2
%43 = fsub float %41, %42
%44 = load float, float* %4
%45 = fcmp olt float %43, %44
br i1 %45, label %46, label %54
46: ; preds = %40
%47 = load float, float* %4
%48 = load float, float* %3
%49 = load float, float* %2
%50 = fadd float %48, %49
%51 = fcmp olt float %47, %50
br i1 %51, label %52, label %54
52: ; preds = %46
%53 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
br label %56
54: ; preds = %46, %40, %34, %28, %22, %12
%55 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
br label %56
56: ; preds = %54, %52
%57 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%58 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %2)
br label %9
59: ; preds = %9
%60 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [24 x i8] c"Birinci sayiyi giriniz:\00"
@.str.2 = [3 x i8] c"%f\00"
@.str.3 = [23 x i8] c"Ikinci sayiyi giriniz:\00"
@.str.4 = [23 x i8] c"Ucuncu sayiyi giriniz:\00"
@.str.7 = [27 x i8] c"Program sonlandirilmistir.\00"
@str = [25 x i8] c"C\C4\B1k\C4\B1s icin -1 giriniz.\00"
@str.8 = [38 x i8] c"Bu sayilarla bir ucgen olusturulamaz.\00"
@str.9 = [40 x i8] c"Bu sayilarla bir ucgen olusturulabilir.\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = bitcast float* %1 to i8*
%5 = bitcast float* %2 to i8*
%6 = bitcast float* %3 to i8*
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %1)
%10 = load float, float* %1
%11 = fcmp une float %10, -1.000000e+00
br i1 %11, label %12, label %43
12: ; preds = %0, %12
%13 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %2)
%15 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %3)
%17 = load float, float* %3
%18 = load float, float* %2
%19 = fsub float %17, %18
%20 = load float, float* %1
%21 = fcmp olt float %19, %20
%22 = fadd float %17, %18
%23 = fcmp olt float %20, %22
%24 = and i1 %21, %23
%25 = fsub float %17, %20
%26 = fcmp olt float %25, %18
%27 = select i1 %24, i1 %26, i1 false
%28 = fadd float %17, %20
%29 = fcmp olt float %18, %28
%30 = select i1 %27, i1 %29, i1 false
%31 = fsub float %18, %20
%32 = fcmp olt float %31, %17
%33 = select i1 %30, i1 %32, i1 false
%34 = fadd float %18, %20
%35 = fcmp olt float %17, %34
%36 = select i1 %33, i1 %35, i1 false
%37 = select i1 %36, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @str.9, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @str.8, i64 0, i64 0)
%38 = call i32 @puts(i8* dereferenceable(1) %37)
%39 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%40 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %1)
%41 = load float, float* %1
%42 = fcmp une float %41, -1.000000e+00
br i1 %42, label %12, label %43
43: ; preds = %12, %0
%44 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}