#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 *, char *);
void isInCircle(double a, double b, const short c) {
  double isInside = (a * a) + (b * b) <= c * c;
  printf("Is inside: %s", isInside ? "Yes" : "No");
}


x86 assembly (clang, -O0):
<isInCircle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %di,%ax
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    %ax,-0x12(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movswl -0x12(%rbp),%eax
movswl -0x12(%rbp),%ecx
imul   %ecx,%eax
cvtsi2sd %eax,%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    $0x1,%al
movzbl %al,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
lea    0xe9a(%rip),%rsi
lea    0xe8f(%rip),%rax
ucomisd %xmm1,%xmm0
setp   %dl
setne  %cl
or     %dl,%cl
cmovne %rax,%rsi
lea    0xe6a(%rip),%rdi
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isInCircle>:
mulsd  %xmm1,%xmm1
mulsd  %xmm0,%xmm0
imul   %edi,%edi
cvtsi2sd %edi,%xmm2
addsd  %xmm1,%xmm0
ucomisd %xmm0,%xmm2
lea    0xee0(%rip),%rax
lea    0xedd(%rip),%rsi
cmovae %rax,%rsi
lea    0xec0(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"Is inside: %s\00"
@.str.1 = [4 x i8] c"Yes\00"
@.str.2 = [3 x i8] c"No\00"
define void @isInCircle(double %0, double %1, i16 signext %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca i16
%7 = alloca double
store double %0, double* %4
store double %1, double* %5
store i16 %2, i16* %6
%8 = load double, double* %4
%9 = load double, double* %4
%10 = load double, double* %5
%11 = load double, double* %5
%12 = fmul double %10, %11
%13 = call double @llvm.fmuladd.f64(double %8, double %9, double %12)
%14 = load i16, i16* %6
%15 = sext i16 %14 to i32
%16 = load i16, i16* %6
%17 = sext i16 %16 to i32
%18 = mul nsw i32 %15, %17
%19 = sitofp i32 %18 to double
%20 = fcmp ole double %13, %19
%21 = zext i1 %20 to i32
%22 = sitofp i32 %21 to double
store double %22, double* %7
%23 = load double, double* %7
%24 = fcmp une double %23, 0.000000e+00
%25 = zext i1 %24 to i64
%26 = select i1 %24, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0)
%27 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %26)
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"Is inside: %s\00"
@.str.1 = [4 x i8] c"Yes\00"
@.str.2 = [3 x i8] c"No\00"
define void @isInCircle(double %0, double %1, i16 signext %2) {
%4 = fmul double %1, %1
%5 = tail call double @llvm.fmuladd.f64(double %0, double %0, double %4)
%6 = sext i16 %2 to i32
%7 = mul nsw i32 %6, %6
%8 = sitofp i32 %7 to double
%9 = fcmp ole double %5, %8
%10 = select i1 %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %10)
ret void
}