#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int, int, double, double, double, double);
double sqrt(double);
double solution(float F, float vx, float vy, double a, double b, double c,
                double d, int i, int j) {
  double v[2], FF;
  double Sol[2];
  double dummy1, dummy2, T;
  double coef1, coef2, coef3, discr;
  v[0] = vx;
  v[1] = vy;
  coef1 = 0.0;
  coef2 = 0.0;
  coef3 = 0.0;
  FF = F * F;
  dummy1 = FF - v[0] * v[0];
  dummy2 = FF - v[1] * v[1];
  coef1 = dummy1 * a * a - 2.0 * v[0] * v[1] * a * c + dummy2 * c * c;
  coef2 = 2.0 * (dummy1 * a * b + v[0] * a - v[0] * v[1] * (a * d + b * c) +
                 v[1] * c + dummy2 * c * d);
  coef3 = dummy1 * b * b + 2.0 * v[0] * b - 2.0 * v[0] * v[1] * b * d +
          2.0 * v[1] * d + dummy2 * d * d - 1.0;
  discr = coef2 * coef2 - 4.0 * coef1 * coef3;
  if (discr < 0) {
    return (1000000.0);
  }
  if (coef1 == 0) {
    printf(
        "coef1 = 0 at (%d, %d) with dummy1 = %lf, dummy2 = %lf  a=%lf c=%lf.\n",
        i, j, dummy1, dummy2, a, c);
    exit(0);
    return (1000000.0);
  }
  discr = sqrt(discr);
  T = 2.0 * coef1;
  Sol[0] = (-1 * coef2 + discr) / T;
  Sol[1] = (-1 * coef2 - discr) / T;
  T = ((Sol[0] > Sol[1]) ? Sol[0] : Sol[1]);
  return (T);
}


x86 assembly (clang, -O0):
<solution>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movss  %xmm0,-0xc(%rbp)
movss  %xmm1,-0x10(%rbp)
movss  %xmm2,-0x14(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  %xmm6,-0x38(%rbp)
mov    %edi,-0x3c(%rbp)
mov    %esi,-0x40(%rbp)
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movss  -0xc(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x58(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x78(%rbp),%xmm1
mulsd  -0x20(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  0xddf(%rip),%xmm0
mulsd  -0x50(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  -0x20(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x50(%rbp),%xmm1
mulsd  -0x48(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm4
movsd  -0x28(%rbp),%xmm3
mulsd  -0x30(%rbp),%xmm3
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x80(%rbp),%xmm1
mulsd  -0x30(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xcf6(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x78(%rbp),%xmm1
mulsd  -0x28(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
movsd  0xcd3(%rip),%xmm0
mulsd  -0x50(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xcb9(%rip),%xmm0
mulsd  -0x50(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xc7e(%rip),%xmm1
mulsd  -0x48(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xc45(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  -0x98(%rbp),%xmm2
ff
movsd  0xc19(%rip),%xmm1
mulsd  -0x90(%rbp),%xmm1
ff
mulsd  -0xa0(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
xorps  %xmm0,%xmm0
ucomisd -0xa8(%rbp),%xmm0
ff
jbe    1441 <solution+0x311>
movsd  0xbe1(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    155b <solution+0x42b>
movsd  -0x90(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1489 <solution+0x359>
jp     1489 <solution+0x359>
mov    -0x3c(%rbp),%esi
mov    -0x40(%rbp),%edx
movsd  -0x78(%rbp),%xmm0
movsd  -0x80(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm3
lea    0xba3(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>
movsd  -0xa8(%rbp),%xmm0
ff
call   1040 <sqrt@plt>
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  0xb6a(%rip),%xmm0
mulsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x98(%rbp),%xmm1
ff
movsd  -0xa8(%rbp),%xmm0
ff
subsd  %xmm1,%xmm0
divsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x70(%rbp)
movsd  -0x98(%rbp),%xmm1
ff
movsd  -0xa8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
subsd  %xmm1,%xmm0
divsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x68(%rbp)
movsd  -0x70(%rbp),%xmm0
ucomisd -0x68(%rbp),%xmm0
jbe    1531 <solution+0x401>
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
jmp    153e <solution+0x40e>
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<solution>:
sub    $0x28,%rsp
cvtss2sd %xmm1,%xmm9
cvtss2sd %xmm2,%xmm12
mulss  %xmm0,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movaps %xmm9,%xmm2
mulsd  %xmm9,%xmm2
movaps %xmm1,%xmm0
subsd  %xmm2,%xmm0
movaps %xmm12,%xmm2
mulsd  %xmm12,%xmm2
subsd  %xmm2,%xmm1
movapd %xmm9,%xmm8
addsd  %xmm9,%xmm8
movapd 0xe87(%rip),%xmm14
xorpd  %xmm8,%xmm14
mulsd  %xmm12,%xmm14
movapd %xmm14,%xmm10
mulsd  %xmm3,%xmm10
mulsd  %xmm5,%xmm10
movapd %xmm9,%xmm11
mulsd  %xmm3,%xmm11
movapd %xmm0,%xmm2
unpcklpd %xmm12,%xmm2
movapd 0xe62(%rip),%xmm13
movsd  %xmm3,%xmm13
mulpd  %xmm2,%xmm13
movapd %xmm3,%xmm15
unpcklpd %xmm6,%xmm15
mulpd  %xmm13,%xmm15
mulsd  %xmm4,%xmm13
addsd  %xmm11,%xmm13
movapd %xmm0,%xmm7
mulsd  %xmm4,%xmm7
mulsd  %xmm4,%xmm8
mulsd  %xmm4,%xmm7
mulsd  %xmm4,%xmm14
mulsd  %xmm5,%xmm4
movapd %xmm3,%xmm2
mulsd  %xmm6,%xmm2
addsd  %xmm4,%xmm2
mulsd  %xmm12,%xmm9
mulsd  %xmm2,%xmm9
subsd  %xmm9,%xmm13
mulsd  %xmm5,%xmm12
addsd  %xmm13,%xmm12
movapd %xmm1,%xmm9
unpcklpd %xmm1,%xmm9
movapd %xmm5,%xmm2
unpcklpd %xmm6,%xmm2
mulpd  %xmm2,%xmm9
movapd %xmm9,%xmm11
mulsd  %xmm6,%xmm11
addsd  %xmm12,%xmm11
addsd  %xmm11,%xmm11
addsd  %xmm8,%xmm7
mulsd  %xmm6,%xmm14
addsd  %xmm7,%xmm14
unpcklpd %xmm14,%xmm10
addpd  %xmm10,%xmm15
mulpd  %xmm2,%xmm9
addpd  %xmm15,%xmm9
movsd  0xdba(%rip),%xmm2
mulsd  %xmm9,%xmm2
movapd %xmm9,%xmm4
unpckhpd %xmm9,%xmm4
addsd  0xdab(%rip),%xmm4
mulsd  %xmm2,%xmm4
movapd %xmm11,%xmm2
mulsd  %xmm11,%xmm2
addsd  %xmm4,%xmm2
xorpd  %xmm4,%xmm4
ucomisd %xmm2,%xmm4
jbe    12a3 <solution+0x173>
movsd  0xd8f(%rip),%xmm1
jmp    1320 <solution+0x1f0>
ucomisd %xmm4,%xmm9
jne    12ac <solution+0x17c>
jnp    1329 <solution+0x1f9>
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm2
jb     12bf <solution+0x18f>
xorps  %xmm0,%xmm0
sqrtsd %xmm2,%xmm0
jmp    12e2 <solution+0x1b2>
movapd %xmm2,%xmm0
movapd %xmm9,0x10(%rsp)
movapd %xmm11,(%rsp)
call   1040 <sqrt@plt>
movapd (%rsp),%xmm11
movapd 0x10(%rsp),%xmm9
addsd  %xmm9,%xmm9
movapd 0xd11(%rip),%xmm1
movapd %xmm0,%xmm2
xorpd  %xmm1,%xmm2
unpcklpd %xmm2,%xmm0
xorpd  %xmm1,%xmm11
pshufd $0x44,%xmm11,%xmm1
addpd  %xmm0,%xmm1
unpcklpd %xmm9,%xmm9
divpd  %xmm9,%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
maxsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
add    $0x28,%rsp
ret
mov    %esi,%edx
mov    %edi,%esi
lea    0xd04(%rip),%rdi
movapd %xmm3,%xmm2
movapd %xmm5,%xmm3
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [69 x i8] c"coef1 = 0 at (%d, %d) with dummy1 = %lf, dummy2 = %lf a=%lf c=%lf.\0A\00"
define double @solution(float %0, float %1, float %2, double %3, double %4, double %5, double %6, i32 %7, i32 %8) {
%10 = alloca double
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca i32
%19 = alloca i32
%20 = alloca [2 x double]
%21 = alloca double
%22 = alloca [2 x double]
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
store float %0, float* %11
store float %1, float* %12
store float %2, float* %13
store double %3, double* %14
store double %4, double* %15
store double %5, double* %16
store double %6, double* %17
store i32 %7, i32* %18
store i32 %8, i32* %19
%30 = load float, float* %12
%31 = fpext float %30 to double
%32 = getelementptr inbounds [2 x double], [2 x double]* %20, i64 0, i64 0
store double %31, double* %32
%33 = load float, float* %13
%34 = fpext float %33 to double
%35 = getelementptr inbounds [2 x double], [2 x double]* %20, i64 0, i64 1
store double %34, double* %35
store double 0.000000e+00, double* %26
store double 0.000000e+00, double* %27
store double 0.000000e+00, double* %28
%36 = load float, float* %11
%37 = load float, float* %11
%38 = fmul float %36, %37
%39 = fpext float %38 to double
store double %39, double* %21
%40 = load double, double* %21
%41 = getelementptr inbounds [2 x double], [2 x double]* %20, i64 0, i64 0
%42 = load double, double* %41
%43 = getelementptr inbounds [2 x double], [2 x double]* %20, i64 0, i64 0
%44 = load double, double* %43
%45 = fneg double %42
%46 = call double @llvm.fmuladd.f64(double %45, double %44, double %40)
store double %46, double* %23
%47 = load double, double* %21
%48 = getelementptr inbounds [2 x double], [2 x double]* %20, i64 0, i64 1
%49 = load double, double* %48
%50 = getelementptr inbounds [2 x double], [2 x double]* %20, i64 0, i64 1
%51 = load double, double* %50
%52 = fneg double %49
%53 = call double @llvm.fmuladd.f64(double %52, double %51, double %47)
store double %53, double* %24
%54 = load double, double* %23
%55 = load double, double* %14
%56 = fmul double %54, %55
%57 = load double, double* %14
%58 = getelementptr inbounds [2 x double], [2 x double]* %20, i64 0, i64 0
%59 = load double, double* %58
%60 = fmul double 2.000000e+00, %59
%61 = getelementptr inbounds [2 x double], [2 x double]* %20, i64 0, i64 1
%62 = load double, double* %61
%63 = fmul double %60, %62
%64 = load double, double* %14
%65 = fmul double %63, %64
%66 = load double, double* %16
%67 = fmul double %65, %66
%68 = fneg double %67
%69 = call double @llvm.fmuladd.f64(double %56, double %57, double %68)
%70 = load double, double* %24
%71 = load double, double* %16
%72 = fmul double %70, %71
%73 = load double, double* %16
%74 = call double @llvm.fmuladd.f64(double %72, double %73, double %69)
store double %74, double* %26
%75 = load double, double* %23
%76 = load double, double* %14
%77 = fmul double %75, %76
%78 = load double, double* %15
%79 = getelementptr inbounds [2 x double], [2 x double]* %20, i64 0, i64 0
%80 = load double, double* %79
%81 = load double, double* %14
%82 = fmul double %80, %81
%83 = call double @llvm.fmuladd.f64(double %77, double %78, double %82)
%84 = getelementptr inbounds [2 x double], [2 x double]* %20, i64 0, i64 0
%85 = load double, double* %84
%86 = getelementptr inbounds [2 x double], [2 x double]* %20, i64 0, i64 1
%87 = load double, double* %86
%88 = fmul double %85, %87
%89 = load double, double* %14
%90 = load double, double* %17
%91 = load double, double* %15
%92 = load double, double* %16
%93 = fmul double %91, %92
%94 = call double @llvm.fmuladd.f64(double %89, double %90, double %93)
%95 = fneg double %88
%96 = call double @llvm.fmuladd.f64(double %95, double %94, double %83)
%97 = getelementptr inbounds [2 x double], [2 x double]* %20, i64 0, i64 1
%98 = load double, double* %97
%99 = load double, double* %16
%100 = call double @llvm.fmuladd.f64(double %98, double %99, double %96)
%101 = load double, double* %24
%102 = load double, double* %16
%103 = fmul double %101, %102
%104 = load double, double* %17
%105 = call double @llvm.fmuladd.f64(double %103, double %104, double %100)
%106 = fmul double 2.000000e+00, %105
store double %106, double* %27
%107 = load double, double* %23
%108 = load double, double* %15
%109 = fmul double %107, %108
%110 = load double, double* %15
%111 = getelementptr inbounds [2 x double], [2 x double]* %20, i64 0, i64 0
%112 = load double, double* %111
%113 = fmul double 2.000000e+00, %112
%114 = load double, double* %15
%115 = fmul double %113, %114
%116 = call double @llvm.fmuladd.f64(double %109, double %110, double %115)
%117 = getelementptr inbounds [2 x double], [2 x double]* %20, i64 0, i64 0
%118 = load double, double* %117
%119 = fmul double 2.000000e+00, %118
%120 = getelementptr inbounds [2 x double], [2 x double]* %20, i64 0, i64 1
%121 = load double, double* %120
%122 = fmul double %119, %121
%123 = load double, double* %15
%124 = fmul double %122, %123
%125 = load double, double* %17
%126 = fneg double %124
%127 = call double @llvm.fmuladd.f64(double %126, double %125, double %116)
%128 = getelementptr inbounds [2 x double], [2 x double]* %20, i64 0, i64 1
%129 = load double, double* %128
%130 = fmul double 2.000000e+00, %129
%131 = load double, double* %17
%132 = call double @llvm.fmuladd.f64(double %130, double %131, double %127)
%133 = load double, double* %24
%134 = load double, double* %17
%135 = fmul double %133, %134
%136 = load double, double* %17
%137 = call double @llvm.fmuladd.f64(double %135, double %136, double %132)
%138 = fsub double %137, 1.000000e+00
store double %138, double* %28
%139 = load double, double* %27
%140 = load double, double* %27
%141 = load double, double* %26
%142 = fmul double 4.000000e+00, %141
%143 = load double, double* %28
%144 = fmul double %142, %143
%145 = fneg double %144
%146 = call double @llvm.fmuladd.f64(double %139, double %140, double %145)
store double %146, double* %29
%147 = load double, double* %29
%148 = fcmp olt double %147, 0.000000e+00
br i1 %148, label %149, label %150
149: ; preds = %9
store double 1.000000e+06, double* %10
br label %194
150: ; preds = %9
%151 = load double, double* %26
%152 = fcmp oeq double %151, 0.000000e+00
br i1 %152, label %153, label %162
153: ; preds = %150
%154 = load i32, i32* %18
%155 = load i32, i32* %19
%156 = load double, double* %23
%157 = load double, double* %24
%158 = load double, double* %14
%159 = load double, double* %16
%160 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0), i32 %154, i32 %155, double %156, double %157, double %158, double %159)
%161 = call i32 @exit(i32 0)
unreachable
162: ; preds = %150
%163 = load double, double* %29
%164 = call double @sqrt(double %163)
store double %164, double* %29
%165 = load double, double* %26
%166 = fmul double 2.000000e+00, %165
store double %166, double* %25
%167 = load double, double* %27
%168 = load double, double* %29
%169 = call double @llvm.fmuladd.f64(double -1.000000e+00, double %167, double %168)
%170 = load double, double* %25
%171 = fdiv double %169, %170
%172 = getelementptr inbounds [2 x double], [2 x double]* %22, i64 0, i64 0
store double %171, double* %172
%173 = load double, double* %27
%174 = load double, double* %29
%175 = fneg double %174
%176 = call double @llvm.fmuladd.f64(double -1.000000e+00, double %173, double %175)
%177 = load double, double* %25
%178 = fdiv double %176, %177
%179 = getelementptr inbounds [2 x double], [2 x double]* %22, i64 0, i64 1
store double %178, double* %179
%180 = getelementptr inbounds [2 x double], [2 x double]* %22, i64 0, i64 0
%181 = load double, double* %180
%182 = getelementptr inbounds [2 x double], [2 x double]* %22, i64 0, i64 1
%183 = load double, double* %182
%184 = fcmp ogt double %181, %183
br i1 %184, label %185, label %188
185: ; preds = %162
%186 = getelementptr inbounds [2 x double], [2 x double]* %22, i64 0, i64 0
%187 = load double, double* %186
br label %191
188: ; preds = %162
%189 = getelementptr inbounds [2 x double], [2 x double]* %22, i64 0, i64 1
%190 = load double, double* %189
br label %191
191: ; preds = %188, %185
%192 = phi double [ %187, %185 ], [ %190, %188 ]
store double %192, double* %25
%193 = load double, double* %25
store double %193, double* %10
br label %194
194: ; preds = %191, %149
%195 = load double, double* %10
ret double %195
}

LLVM IR (-O2):
@.str = [69 x i8] c"coef1 = 0 at (%d, %d) with dummy1 = %lf, dummy2 = %lf a=%lf c=%lf.\0A\00"
define double @solution(float %0, float %1, float %2, double %3, double %4, double %5, double %6, i32 %7, i32 %8) {
%10 = fpext float %1 to double
%11 = fpext float %2 to double
%12 = fmul float %0, %0
%13 = fpext float %12 to double
%14 = fneg double %10
%15 = tail call double @llvm.fmuladd.f64(double %14, double %10, double %13)
%16 = fneg double %11
%17 = tail call double @llvm.fmuladd.f64(double %16, double %11, double %13)
%18 = fmul double %10, 2.000000e+00
%19 = fneg double %18
%20 = fmul double %19, %11
%21 = fmul double %20, %3
%22 = fmul double %21, %5
%23 = fmul double %10, %3
%24 = insertelement <2 x double> poison, double %15, i64 0
%25 = insertelement <2 x double> %24, double %11, i64 1
%26 = insertelement <2 x double> <double poison, double 2.000000e+00>, double %3, i64 0
%27 = fmul <2 x double> %25, %26
%28 = extractelement <2 x double> %27, i64 0
%29 = tail call double @llvm.fmuladd.f64(double %28, double %4, double %23)
%30 = fmul double %4, %5
%31 = tail call double @llvm.fmuladd.f64(double %3, double %6, double %30)
%32 = fmul double %14, %11
%33 = tail call double @llvm.fmuladd.f64(double %32, double %31, double %29)
%34 = tail call double @llvm.fmuladd.f64(double %11, double %5, double %33)
%35 = insertelement <2 x double> poison, double %17, i64 0
%36 = shufflevector <2 x double> %35, <2 x double> poison, <2 x i32> zeroinitializer
%37 = insertelement <2 x double> poison, double %5, i64 0
%38 = insertelement <2 x double> %37, double %6, i64 1
%39 = fmul <2 x double> %36, %38
%40 = extractelement <2 x double> %39, i64 0
%41 = tail call double @llvm.fmuladd.f64(double %40, double %6, double %34)
%42 = fmul double %41, 2.000000e+00
%43 = fmul double %15, %4
%44 = fmul double %18, %4
%45 = tail call double @llvm.fmuladd.f64(double %43, double %4, double %44)
%46 = fmul double %20, %4
%47 = tail call double @llvm.fmuladd.f64(double %46, double %6, double %45)
%48 = insertelement <2 x double> poison, double %3, i64 0
%49 = insertelement <2 x double> %48, double %6, i64 1
%50 = insertelement <2 x double> poison, double %22, i64 0
%51 = insertelement <2 x double> %50, double %47, i64 1
%52 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %27, <2 x double> %49, <2 x double> %51)
%53 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %39, <2 x double> %38, <2 x double> %52)
%54 = extractelement <2 x double> %53, i64 0
%55 = fmul double %54, -4.000000e+00
%56 = extractelement <2 x double> %53, i64 1
%57 = fadd double %56, -1.000000e+00
%58 = fmul double %55, %57
%59 = tail call double @llvm.fmuladd.f64(double %42, double %42, double %58)
%60 = fcmp olt double %59, 0.000000e+00
br i1 %60, label %83, label %61
61: ; preds = %9
%62 = extractelement <2 x double> %53, i64 0
%63 = fcmp oeq double %62, 0.000000e+00
br i1 %63, label %64, label %67
64: ; preds = %61
%65 = tail call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %8, double %15, double %17, double %3, double %5)
%66 = tail call i32 @exit(i32 0)
unreachable
67: ; preds = %61
%68 = tail call double @sqrt(double %59)
%69 = fmul double %62, 2.000000e+00
%70 = fneg double %68
%71 = insertelement <2 x double> poison, double %42, i64 0
%72 = shufflevector <2 x double> %71, <2 x double> poison, <2 x i32> zeroinitializer
%73 = insertelement <2 x double> poison, double %68, i64 0
%74 = insertelement <2 x double> %73, double %70, i64 1
%75 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %72, <2 x double> <double -1.000000e+00, double -1.000000e+00>, <2 x double> %74)
%76 = insertelement <2 x double> poison, double %69, i64 0
%77 = shufflevector <2 x double> %76, <2 x double> poison, <2 x i32> zeroinitializer
%78 = fdiv <2 x double> %75, %77
%79 = extractelement <2 x double> %78, i64 0
%80 = extractelement <2 x double> %78, i64 1
%81 = fcmp ogt double %79, %80
%82 = select i1 %81, double %79, double %80
br label %83
83: ; preds = %9, %67
%84 = phi double [ %82, %67 ], [ 1.000000e+06, %9 ]
ret double %84
}