#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 *, float, float);
float sqrt(float);
void posDelta(float del, float numA, float numB) {
  float x1;
  float x2;
  x1 = ((-numB + sqrt(del)) / (2.00 * numA));
  x2 = ((-numB - sqrt(del)) / (2.00 * numA));
  printf("\nThe roots of the equation are %.2f and %.2f.\n", x1, x2);
}


x86 assembly (clang, -O0):
<posDelta>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x4(%rbp),%xmm0
call   1040 <sqrt@plt>
movaps %xmm0,%xmm1
movss  -0x1c(%rbp),%xmm0
addss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x8(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xe87(%rip),%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0xc(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x4(%rbp),%xmm0
call   1040 <sqrt@plt>
movaps %xmm0,%xmm1
movss  -0x18(%rbp),%xmm0
subss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x8(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xe34(%rip),%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x10(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
lea    0xe1a(%rip),%rdi
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<posDelta>:
sub    $0x48,%rsp
movaps %xmm0,%xmm3
movaps 0xed2(%rip),%xmm0
xorps  %xmm2,%xmm0
movaps %xmm0,0x30(%rsp)
sqrtss %xmm3,%xmm5
xorps  %xmm4,%xmm4
ucomiss %xmm4,%xmm3
movaps %xmm5,%xmm0
jae    117e <posDelta+0x5e>
movaps %xmm3,%xmm0
movss  %xmm3,0x10(%rsp)
movss  %xmm5,0xc(%rsp)
movss  %xmm1,0x1c(%rsp)
movaps %xmm2,0x20(%rsp)
call   1040 <sqrt@plt>
movaps 0x20(%rsp),%xmm2
xorps  %xmm4,%xmm4
movss  0x1c(%rsp),%xmm1
movss  0xc(%rsp),%xmm5
movss  0x10(%rsp),%xmm3
subss  %xmm2,%xmm0
cvtss2sd %xmm0,%xmm0
cvtss2sd %xmm1,%xmm1
addsd  %xmm1,%xmm1
divsd  %xmm1,%xmm0
xorps  %xmm2,%xmm2
cvtsd2ss %xmm0,%xmm2
ucomiss %xmm4,%xmm3
jae    11c1 <posDelta+0xa1>
movaps %xmm3,%xmm0
movsd  %xmm1,0x10(%rsp)
movss  %xmm2,0xc(%rsp)
call   1040 <sqrt@plt>
movss  0xc(%rsp),%xmm2
movsd  0x10(%rsp),%xmm1
movaps %xmm0,%xmm5
movaps 0x30(%rsp),%xmm0
subss  %xmm5,%xmm0
cvtss2sd %xmm0,%xmm0
divsd  %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtsd2ss %xmm0,%xmm1
lea    0xe30(%rip),%rdi
movaps %xmm2,%xmm0
add    $0x48,%rsp
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [47 x i8] c"\0AThe roots of the equation are %.2f and %.2f.\0A\00"
define void @posDelta(float %0, float %1, float %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
store float %0, float* %4
store float %1, float* %5
store float %2, float* %6
%9 = load float, float* %6
%10 = fneg float %9
%11 = load float, float* %4
%12 = call float @sqrt(float %11)
%13 = fadd float %10, %12
%14 = fpext float %13 to double
%15 = load float, float* %5
%16 = fpext float %15 to double
%17 = fmul double 2.000000e+00, %16
%18 = fdiv double %14, %17
%19 = fptrunc double %18 to float
store float %19, float* %7
%20 = load float, float* %6
%21 = fneg float %20
%22 = load float, float* %4
%23 = call float @sqrt(float %22)
%24 = fsub float %21, %23
%25 = fpext float %24 to double
%26 = load float, float* %5
%27 = fpext float %26 to double
%28 = fmul double 2.000000e+00, %27
%29 = fdiv double %25, %28
%30 = fptrunc double %29 to float
store float %30, float* %8
%31 = load float, float* %7
%32 = load float, float* %8
%33 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), float %31, float %32)
ret void
}

LLVM IR (-O2):
@.str = [47 x i8] c"\0AThe roots of the equation are %.2f and %.2f.\0A\00"
define void @posDelta(float %0, float %1, float %2) {
%4 = fneg float %2
%5 = tail call float @sqrt(float %0)
%6 = fsub float %5, %2
%7 = fpext float %6 to double
%8 = fpext float %1 to double
%9 = fmul double %8, 2.000000e+00
%10 = fdiv double %7, %9
%11 = fptrunc double %10 to float
%12 = tail call float @sqrt(float %0)
%13 = fsub float %4, %12
%14 = fpext float %13 to double
%15 = fdiv double %14, %9
%16 = fptrunc double %15 to float
%17 = tail call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), float %11, float %16)
ret void
}