int calcularDelta(float *CoefiA, float *CoefiB, float *CoefiC) {
  float copy1;
  copy1 = (*CoefiA);
  float copy2;
  copy2 = (*CoefiB);
  float copy3;
  copy3 = (*CoefiC);
  float delta = (copy2) * (copy2)-4 * (copy1) * (copy3);
  if (delta > 0) {
    *CoefiA = -copy2 + sqrt(delta) / 2 * copy1;
    *CoefiB = -copy2 - sqrt(delta) / 2 * copy1;
    return 2;
  } else if (delta == 0) {
    *CoefiA = -copy2 / 2 * copy1;
    *CoefiB = 0.0;
    return 1;
  } else {
    *CoefiA = 0.0;
    *CoefiB = 0.0;
    return 0;
  }
}


x86 assembly (clang, -O0):
<calcularDelta>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x24(%rbp)
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x28(%rbp)
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x28(%rbp),%xmm0
movss  -0x28(%rbp),%xmm2
movss  0xea3(%rip),%xmm1
mulss  -0x24(%rbp),%xmm1
mulss  -0x2c(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x30(%rbp)
movss  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    1263 <calcularDelta+0x153>
movss  -0x28(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movss  -0x30(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
call   1030 <sqrt@plt>
movsd  -0x40(%rbp),%xmm1
movsd  0xe40(%rip),%xmm2
divsd  %xmm2,%xmm0
movss  -0x24(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x28(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
movss  -0x30(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
call   1030 <sqrt@plt>
movsd  -0x38(%rbp),%xmm1
movsd  0xde9(%rip),%xmm2
divsd  %xmm2,%xmm0
movss  -0x24(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,(%rax)
movl   $0x2,-0x4(%rbp)
jmp    12d9 <calcularDelta+0x1c9>
movss  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    12bc <calcularDelta+0x1ac>
jp     12bc <calcularDelta+0x1ac>
movss  -0x28(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  0xd70(%rip),%xmm1
divss  %xmm1,%xmm0
mulss  -0x24(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    12d9 <calcularDelta+0x1c9>
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calcularDelta>:
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
movss  (%rdi),%xmm3
movss  (%rsi),%xmm0
movss  0xed3(%rip),%xmm2
mulss  %xmm3,%xmm2
mulss  (%rdx),%xmm2
movaps %xmm0,%xmm1
mulss  %xmm0,%xmm1
addss  %xmm2,%xmm1
xorps  %xmm2,%xmm2
ucomiss %xmm2,%xmm1
jbe    120d <calcularDelta+0xfd>
xorps  0xebd(%rip),%xmm0
xorps  %xmm2,%xmm2
cvtss2sd %xmm0,%xmm2
cvtss2sd %xmm1,%xmm4
xorps  %xmm1,%xmm1
sqrtsd %xmm4,%xmm1
xorpd  %xmm5,%xmm5
ucomisd %xmm5,%xmm4
movapd %xmm1,%xmm0
movsd  %xmm2,0x10(%rsp)
jae    11b0 <calcularDelta+0xa0>
movapd %xmm4,%xmm0
movss  %xmm3,0x8(%rsp)
movsd  %xmm1,0x20(%rsp)
movsd  %xmm4,0x18(%rsp)
call   1030 <sqrt@plt>
xorpd  %xmm5,%xmm5
movsd  0x18(%rsp),%xmm4
movsd  0x20(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movss  0x8(%rsp),%xmm3
mulsd  0xe68(%rip),%xmm0
cvtss2sd %xmm3,%xmm3
mulsd  %xmm3,%xmm0
addsd  %xmm2,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%rbx)
ucomisd %xmm5,%xmm4
jae    11ef <calcularDelta+0xdf>
movaps %xmm4,%xmm0
movsd  %xmm3,0x8(%rsp)
call   1030 <sqrt@plt>
movsd  0x8(%rsp),%xmm3
movsd  0x10(%rsp),%xmm2
movaps %xmm0,%xmm1
mulsd  0xe31(%rip),%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
mov    $0x2,%eax
jmp    1233 <calcularDelta+0x123>
jne    1228 <calcularDelta+0x118>
jp     1228 <calcularDelta+0x118>
mulss  0xdeb(%rip),%xmm0
mulss  %xmm0,%xmm3
movss  %xmm3,(%rbx)
mov    $0x1,%eax
jmp    1230 <calcularDelta+0x120>
movl   $0x0,(%rbx)
xor    %eax,%eax
xorps  %xmm0,%xmm0
movss  %xmm0,(%r14)
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @calcularDelta(float* %0, float* %1, float* %2) {
%4 = alloca i32
%5 = alloca float*
%6 = alloca float*
%7 = alloca float*
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
store float* %0, float** %5
store float* %1, float** %6
store float* %2, float** %7
%12 = load float*, float** %5
%13 = load float, float* %12
store float %13, float* %8
%14 = load float*, float** %6
%15 = load float, float* %14
store float %15, float* %9
%16 = load float*, float** %7
%17 = load float, float* %16
store float %17, float* %10
%18 = load float, float* %9
%19 = load float, float* %9
%20 = load float, float* %8
%21 = fmul float 4.000000e+00, %20
%22 = load float, float* %10
%23 = fmul float %21, %22
%24 = fneg float %23
%25 = call float @llvm.fmuladd.f32(float %18, float %19, float %24)
store float %25, float* %11
%26 = load float, float* %11
%27 = fcmp ogt float %26, 0.000000e+00
br i1 %27, label %28, label %54
28: ; preds = %3
%29 = load float, float* %9
%30 = fneg float %29
%31 = fpext float %30 to double
%32 = load float, float* %11
%33 = fpext float %32 to double
%34 = call double @sqrt(double %33)
%35 = fdiv double %34, 2.000000e+00
%36 = load float, float* %8
%37 = fpext float %36 to double
%38 = call double @llvm.fmuladd.f64(double %35, double %37, double %31)
%39 = fptrunc double %38 to float
%40 = load float*, float** %5
store float %39, float* %40
%41 = load float, float* %9
%42 = fneg float %41
%43 = fpext float %42 to double
%44 = load float, float* %11
%45 = fpext float %44 to double
%46 = call double @sqrt(double %45)
%47 = fdiv double %46, 2.000000e+00
%48 = load float, float* %8
%49 = fpext float %48 to double
%50 = fneg double %47
%51 = call double @llvm.fmuladd.f64(double %50, double %49, double %43)
%52 = fptrunc double %51 to float
%53 = load float*, float** %6
store float %52, float* %53
store i32 2, i32* %4
br label %68
54: ; preds = %3
%55 = load float, float* %11
%56 = fcmp oeq float %55, 0.000000e+00
br i1 %56, label %57, label %65
57: ; preds = %54
%58 = load float, float* %9
%59 = fneg float %58
%60 = fdiv float %59, 2.000000e+00
%61 = load float, float* %8
%62 = fmul float %60, %61
%63 = load float*, float** %5
store float %62, float* %63
%64 = load float*, float** %6
store float 0.000000e+00, float* %64
store i32 1, i32* %4
br label %68
65: ; preds = %54
%66 = load float*, float** %5
store float 0.000000e+00, float* %66
%67 = load float*, float** %6
store float 0.000000e+00, float* %67
store i32 0, i32* %4
br label %68
68: ; preds = %65, %57, %28
%69 = load i32, i32* %4
ret i32 %69
}

LLVM IR (-O2):
define i32 @calcularDelta(float* nocapture %0, float* nocapture %1, float* nocapture %2) {
%4 = load float, float* %0
%5 = load float, float* %1
%6 = load float, float* %2
%7 = fmul float %4, -4.000000e+00
%8 = fmul float %7, %6
%9 = tail call float @llvm.fmuladd.f32(float %5, float %5, float %8)
%10 = fcmp ogt float %9, 0.000000e+00
br i1 %10, label %11, label %24
11: ; preds = %3
%12 = fneg float %5
%13 = fpext float %12 to double
%14 = fpext float %9 to double
%15 = tail call double @sqrt(double %14)
%16 = fmul double %15, 5.000000e-01
%17 = fpext float %4 to double
%18 = tail call double @llvm.fmuladd.f64(double %16, double %17, double %13)
%19 = fptrunc double %18 to float
store float %19, float* %0
%20 = tail call double @sqrt(double %14)
%21 = fmul double %20, -5.000000e-01
%22 = tail call double @llvm.fmuladd.f64(double %21, double %17, double %13)
%23 = fptrunc double %22 to float
br label %30
24: ; preds = %3
%25 = fcmp oeq float %9, 0.000000e+00
br i1 %25, label %26, label %29
26: ; preds = %24
%27 = fmul float %5, -5.000000e-01
%28 = fmul float %4, %27
store float %28, float* %0
br label %30
29: ; preds = %24
store float 0.000000e+00, float* %0
br label %30
30: ; preds = %29, %26, %11
%31 = phi float [ 0.000000e+00, %29 ], [ 0.000000e+00, %26 ], [ %23, %11 ]
%32 = phi i32 [ 0, %29 ], [ 1, %26 ], [ 2, %11 ]
store float %31, float* %1
ret i32 %32
}