#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 */
float getValidLength(int);
scalar_t__ isValidTriangle(float, float, float);
int /*<<< orphan*/ printf(char *);
int main() {
  float a, b, c;
  a = getValidLength(1);
  b = getValidLength(2);
  c = getValidLength(3);
  if (isValidTriangle(a, b, c))
    printf("The values inputted could represent the sides of a triangle.\n");
  else
    printf(
        "The values inputted could NOT represent the sides of a triangle.\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edi
call   1050 <getValidLength@plt>
movss  %xmm0,-0x8(%rbp)
mov    $0x2,%edi
call   1050 <getValidLength@plt>
movss  %xmm0,-0xc(%rbp)
mov    $0x3,%edi
call   1050 <getValidLength@plt>
movss  %xmm0,-0x10(%rbp)
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
movss  -0x10(%rbp),%xmm2
call   1040 <isValidTriangle@plt>
cmp    $0x0,%rax
je     119b <main+0x6b>
lea    0xe6f(%rip),%rdi
call   1030 <printf@plt>
jmp    11a7 <main+0x77>
lea    0xe9c(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
call   1050 <getValidLength@plt>
movss  %xmm0,0x4(%rsp)
mov    $0x2,%edi
call   1050 <getValidLength@plt>
movss  %xmm0,(%rsp)
mov    $0x3,%edi
call   1050 <getValidLength@plt>
movaps %xmm0,%xmm2
movss  0x4(%rsp),%xmm0
movss  (%rsp),%xmm1
call   1040 <isValidTriangle@plt>
test   %rax,%rax
lea    0xe89(%rip),%rax
lea    0xec3(%rip),%rdi
cmove  %rax,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [62 x i8] c"The values inputted could represent the sides of a triangle.\0A\00"
@.str.1 = [66 x i8] c"The values inputted could NOT represent the sides of a triangle.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
store i32 0, i32* %1
%5 = call float @getValidLength(i32 1)
store float %5, float* %2
%6 = call float @getValidLength(i32 2)
store float %6, float* %3
%7 = call float @getValidLength(i32 3)
store float %7, float* %4
%8 = load float, float* %2
%9 = load float, float* %3
%10 = load float, float* %4
%11 = call i64 @isValidTriangle(float %8, float %9, float %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %0
%14 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0))
br label %17
15: ; preds = %0
%16 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0))
br label %17
17: ; preds = %15, %13
ret i32 0
}

LLVM IR (-O2):
@str = [65 x i8] c"The values inputted could NOT represent the sides of a triangle.\00"
@str.2 = [61 x i8] c"The values inputted could represent the sides of a triangle.\00"
define i32 @main() {
%1 = tail call float @getValidLength(i32 1)
%2 = tail call float @getValidLength(i32 2)
%3 = tail call float @getValidLength(i32 3)
%4 = tail call i64 @isValidTriangle(float %1, float %2, float %3)
%5 = icmp eq i64 %4, 0
%6 = select i1 %5, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @str, i64 0, i64 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @str.2, i64 0, i64 0)
%7 = tail call i32 @puts(i8* dereferenceable(1) %6)
ret i32 0
}