#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 */
double acos(double);
double fabs(double);
int /*<<< orphan*/ printf(char *, ...);
double sqrt(double);
double contact_angle(double center[], double radius, double line[]) {
  double dist;
  double a, b, c, delta;
  double secant[2][2], vec1[2], vec2[2];
  double dotprod, modprod;
  double angle;
  const double pi = 3.1415926535897932384626433832795;
  dist = fabs(center[1] - (line[0] * center[0]) - line[1]);
  dist /= sqrt(1.0 + (line[0] * line[0]));
  if (dist < radius) {
    a = (1.0 + (line[0] * line[0]));
    b = 2.0 * ((line[0] * line[1]) - center[0] + (line[0] * center[1]));
    c = (center[0] * center[0]) + (center[1] * center[1]) +
        (line[1] * line[1]) - (radius * radius) - (2.0 * line[1] * center[1]);
    delta = (b * b) - (4.0 * a * c);
    if (delta > 0.0) {
      secant[0][0] = ((-b) + sqrt(delta)) / (2.0 * a);
      secant[1][0] = ((-b) - sqrt(delta)) / (2.0 * a);
      secant[0][1] = (line[0] * secant[0][0]) + line[1];
      secant[1][1] = (line[0] * secant[1][0]) + line[1];
      vec1[0] = center[0] - secant[0][0];
      vec1[1] = center[1] - secant[0][1];
      vec2[0] = center[0];
      vec2[1] = (line[0] * vec2[0]) + line[1];
      vec2[0] -= secant[0][0];
      vec2[1] -= secant[0][1];
      dotprod = (vec1[0] * vec2[0]) + (vec1[1] * vec2[1]);
      modprod = (sqrt((vec1[0] * vec1[0]) + (vec1[1] * vec1[1]))) *
                (sqrt((vec2[0] * vec2[0]) + (vec2[1] * vec2[1])));
      angle = (acos(dotprod / modprod) * (180.0 / pi));
      if (center[1] > line[1])
        angle += 90.0;
      else
        angle = 90.0 - angle;
    } else {
      printf("\nWARNING: Negative delta parameter!\n");
      printf("\na= %f\tb= %f\tc =%f\tdelta= %f\n ", a, b, c, delta);
    }
    return angle;
  } else
    return -1;
}


x86 assembly (clang, -O0):
<contact_angle>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %rdi,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
movsd  0xeb8(%rip),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
subsd  0x8(%rax),%xmm0
movaps 0xea0(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe3b(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1647 <contact_angle+0x517>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xdf1(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xdaf(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x20(%rbp),%rax
movsd  0xd2d(%rip),%xmm0
mulsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  0xce1(%rip),%xmm1
mulsd  -0x30(%rbp),%xmm1
mulsd  -0x40(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1605 <contact_angle+0x4d5>
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0xc8(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
movsd  0xc64(%rip),%xmm1
mulsd  -0x30(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0xc0(%rbp),%xmm0
ff
subsd  %xmm1,%xmm0
movsd  0xc11(%rip),%xmm1
mulsd  -0x30(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x70(%rbp),%xmm2
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x60(%rbp),%xmm2
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
subsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
subsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x90(%rbp),%xmm2
ff
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x70(%rbp),%xmm1
movsd  -0x90(%rbp),%xmm0
ff
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x68(%rbp),%xmm1
movsd  -0x88(%rbp),%xmm0
ff
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movsd  -0x90(%rbp),%xmm2
ff
movsd  -0x78(%rbp),%xmm1
mulsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movsd  -0x80(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
mulsd  -0x78(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1050 <sqrt@plt>
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x90(%rbp),%xmm2
ff
movsd  -0x88(%rbp),%xmm1
ff
mulsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0xb8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
divsd  -0xa0(%rbp),%xmm0
ff
call   1040 <acos@plt>
movsd  0xa81(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
ucomisd 0x8(%rax),%xmm0
jbe    15e8 <contact_angle+0x4b8>
movsd  0xa5d(%rip),%xmm0
addsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
jmp    1600 <contact_angle+0x4d0>
movsd  0xa40(%rip),%xmm0
subsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
jmp    1635 <contact_angle+0x505>
lea    0xa44(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm3
lea    0xa47(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
movsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0x8(%rbp)
jmp    1654 <contact_angle+0x524>
movsd  0x9c1(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<contact_angle>:
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  0x8(%rdi),%xmm3
movsd  (%rsi),%xmm1
movsd  (%rdi),%xmm2
mulsd  %xmm1,%xmm2
subsd  %xmm2,%xmm3
subsd  0x8(%rsi),%xmm3
andpd  0xe91(%rip),%xmm3
mulsd  %xmm1,%xmm1
addsd  0xe95(%rip),%xmm1
movapd %xmm0,%xmm6
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jb     1192 <contact_angle+0x52>
xorps  %xmm0,%xmm0
sqrtsd %xmm1,%xmm0
jmp    11b1 <contact_angle+0x71>
movapd %xmm1,%xmm0
movsd  %xmm6,(%rsp)
movapd %xmm3,0x10(%rsp)
call   1060 <sqrt@plt>
movapd 0x10(%rsp),%xmm3
movsd  (%rsp),%xmm6
divsd  %xmm0,%xmm3
ucomisd %xmm3,%xmm6
jbe    125f <contact_angle+0x11f>
movsd  (%r14),%xmm4
movsd  0x8(%r14),%xmm5
movapd %xmm4,%xmm3
mulsd  %xmm4,%xmm3
addsd  0xe36(%rip),%xmm3
movapd %xmm4,%xmm0
mulsd  %xmm5,%xmm0
movsd  (%rbx),%xmm1
movsd  0x8(%rbx),%xmm2
subsd  %xmm1,%xmm0
mulsd  %xmm2,%xmm4
addsd  %xmm0,%xmm4
addsd  %xmm4,%xmm4
movapd %xmm5,%xmm0
mulsd  0xe19(%rip),%xmm5
mulsd  %xmm2,%xmm5
mulsd  %xmm2,%xmm2
mulsd  %xmm1,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
mulsd  %xmm6,%xmm6
subsd  %xmm6,%xmm0
addsd  %xmm0,%xmm5
movsd  0xdf5(%rip),%xmm0
mulsd  %xmm3,%xmm0
mulsd  %xmm5,%xmm0
movapd %xmm4,%xmm1
mulsd  %xmm4,%xmm1
addsd  %xmm0,%xmm1
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jbe    126c <contact_angle+0x12c>
jb     12b9 <contact_angle+0x179>
xorps  %xmm5,%xmm5
sqrtsd %xmm1,%xmm5
jmp    12e8 <contact_angle+0x1a8>
movsd  0xdb1(%rip),%xmm0
jmp    1402 <contact_angle+0x2c2>
lea    0xdec(%rip),%rdi
movsd  %xmm3,(%rsp)
movsd  %xmm4,0x10(%rsp)
movsd  %xmm5,0x20(%rsp)
movsd  %xmm1,0x8(%rsp)
call   1030 <puts@plt>
lea    0xdaa(%rip),%rdi
movsd  (%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
movsd  0x8(%rsp),%xmm3
mov    $0x4,%al
call   1040 <printf@plt>
jmp    1402 <contact_angle+0x2c2>
movapd %xmm1,%xmm0
movsd  %xmm3,(%rsp)
movsd  %xmm4,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
call   1060 <sqrt@plt>
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm4
movsd  (%rsp),%xmm3
movapd %xmm0,%xmm5
subsd  %xmm4,%xmm5
addsd  %xmm3,%xmm3
divsd  %xmm3,%xmm5
xorpd  %xmm6,%xmm6
ucomisd %xmm1,%xmm6
ja     140a <contact_angle+0x2ca>
movsd  (%r14),%xmm3
movsd  0x8(%r14),%xmm1
movapd %xmm3,%xmm2
mulsd  %xmm5,%xmm2
addsd  %xmm1,%xmm2
movsd  (%rbx),%xmm4
movsd  0x8(%rbx),%xmm0
subsd  %xmm2,%xmm0
mulsd  %xmm4,%xmm3
subsd  %xmm5,%xmm4
addsd  %xmm1,%xmm3
subsd  %xmm2,%xmm3
movapd %xmm0,%xmm1
mulsd  %xmm3,%xmm1
mulsd  %xmm4,%xmm4
mulsd  %xmm0,%xmm0
addsd  %xmm4,%xmm0
ucomisd %xmm6,%xmm0
jb     1359 <contact_angle+0x219>
xorps  %xmm2,%xmm2
sqrtsd %xmm0,%xmm2
jmp    1384 <contact_angle+0x244>
movsd  %xmm3,0x10(%rsp)
movsd  %xmm1,(%rsp)
movsd  %xmm4,0x8(%rsp)
call   1060 <sqrt@plt>
movsd  0x8(%rsp),%xmm4
movsd  (%rsp),%xmm1
movsd  0x10(%rsp),%xmm3
movapd %xmm0,%xmm2
addsd  %xmm4,%xmm1
mulsd  %xmm3,%xmm3
addsd  %xmm4,%xmm3
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm3
jb     13a3 <contact_angle+0x263>
xorps  %xmm0,%xmm0
sqrtsd %xmm3,%xmm0
jmp    13c2 <contact_angle+0x282>
movapd %xmm3,%xmm0
movsd  %xmm1,(%rsp)
movsd  %xmm2,0x10(%rsp)
call   1060 <sqrt@plt>
movsd  0x10(%rsp),%xmm2
movsd  (%rsp),%xmm1
mulsd  %xmm0,%xmm2
divsd  %xmm2,%xmm1
movapd %xmm1,%xmm0
call   1050 <acos@plt>
mulsd  0xc55(%rip),%xmm0
movsd  0x8(%rbx),%xmm1
ucomisd 0x8(%r14),%xmm1
jbe    13f2 <contact_angle+0x2b2>
addsd  0xc48(%rip),%xmm0
jmp    1402 <contact_angle+0x2c2>
movsd  0xc3e(%rip),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret
ucomisd %xmm6,%xmm1
jae    1302 <contact_angle+0x1c2>
movapd %xmm1,%xmm0
movsd  %xmm5,(%rsp)
call   1060 <sqrt@plt>
xorpd  %xmm6,%xmm6
movsd  (%rsp),%xmm5
jmp    1302 <contact_angle+0x1c2>

LLVM IR (-O0):
@.str = [37 x i8] c"\0AWARNING: Negative delta parameter!\0A\00"
@.str.1 = [31 x i8] c"\0Aa= %f\09b= %f\09c =%f\09delta= %f\0A \00"
define double @contact_angle(double* %0, double %1, double* %2) {
%4 = alloca double
%5 = alloca double*
%6 = alloca double
%7 = alloca double*
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca [2 x [2 x double]]
%14 = alloca [2 x double]
%15 = alloca [2 x double]
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
store double* %0, double** %5
store double %1, double* %6
store double* %2, double** %7
store double 0x400921FB54442D18, double* %19
%20 = load double*, double** %5
%21 = getelementptr inbounds double, double* %20, i64 1
%22 = load double, double* %21
%23 = load double*, double** %7
%24 = getelementptr inbounds double, double* %23, i64 0
%25 = load double, double* %24
%26 = load double*, double** %5
%27 = getelementptr inbounds double, double* %26, i64 0
%28 = load double, double* %27
%29 = fneg double %25
%30 = call double @llvm.fmuladd.f64(double %29, double %28, double %22)
%31 = load double*, double** %7
%32 = getelementptr inbounds double, double* %31, i64 1
%33 = load double, double* %32
%34 = fsub double %30, %33
%35 = call double @llvm.fabs.f64(double %34)
store double %35, double* %8
%36 = load double*, double** %7
%37 = getelementptr inbounds double, double* %36, i64 0
%38 = load double, double* %37
%39 = load double*, double** %7
%40 = getelementptr inbounds double, double* %39, i64 0
%41 = load double, double* %40
%42 = call double @llvm.fmuladd.f64(double %38, double %41, double 1.000000e+00)
%43 = call double @sqrt(double %42)
%44 = load double, double* %8
%45 = fdiv double %44, %43
store double %45, double* %8
%46 = load double, double* %8
%47 = load double, double* %6
%48 = fcmp olt double %46, %47
br i1 %48, label %49, label %268
49: ; preds = %3
%50 = load double*, double** %7
%51 = getelementptr inbounds double, double* %50, i64 0
%52 = load double, double* %51
%53 = load double*, double** %7
%54 = getelementptr inbounds double, double* %53, i64 0
%55 = load double, double* %54
%56 = call double @llvm.fmuladd.f64(double %52, double %55, double 1.000000e+00)
store double %56, double* %9
%57 = load double*, double** %7
%58 = getelementptr inbounds double, double* %57, i64 0
%59 = load double, double* %58
%60 = load double*, double** %7
%61 = getelementptr inbounds double, double* %60, i64 1
%62 = load double, double* %61
%63 = load double*, double** %5
%64 = getelementptr inbounds double, double* %63, i64 0
%65 = load double, double* %64
%66 = fneg double %65
%67 = call double @llvm.fmuladd.f64(double %59, double %62, double %66)
%68 = load double*, double** %7
%69 = getelementptr inbounds double, double* %68, i64 0
%70 = load double, double* %69
%71 = load double*, double** %5
%72 = getelementptr inbounds double, double* %71, i64 1
%73 = load double, double* %72
%74 = call double @llvm.fmuladd.f64(double %70, double %73, double %67)
%75 = fmul double 2.000000e+00, %74
store double %75, double* %10
%76 = load double*, double** %5
%77 = getelementptr inbounds double, double* %76, i64 0
%78 = load double, double* %77
%79 = load double*, double** %5
%80 = getelementptr inbounds double, double* %79, i64 0
%81 = load double, double* %80
%82 = load double*, double** %5
%83 = getelementptr inbounds double, double* %82, i64 1
%84 = load double, double* %83
%85 = load double*, double** %5
%86 = getelementptr inbounds double, double* %85, i64 1
%87 = load double, double* %86
%88 = fmul double %84, %87
%89 = call double @llvm.fmuladd.f64(double %78, double %81, double %88)
%90 = load double*, double** %7
%91 = getelementptr inbounds double, double* %90, i64 1
%92 = load double, double* %91
%93 = load double*, double** %7
%94 = getelementptr inbounds double, double* %93, i64 1
%95 = load double, double* %94
%96 = call double @llvm.fmuladd.f64(double %92, double %95, double %89)
%97 = load double, double* %6
%98 = load double, double* %6
%99 = fneg double %97
%100 = call double @llvm.fmuladd.f64(double %99, double %98, double %96)
%101 = load double*, double** %7
%102 = getelementptr inbounds double, double* %101, i64 1
%103 = load double, double* %102
%104 = fmul double 2.000000e+00, %103
%105 = load double*, double** %5
%106 = getelementptr inbounds double, double* %105, i64 1
%107 = load double, double* %106
%108 = fneg double %104
%109 = call double @llvm.fmuladd.f64(double %108, double %107, double %100)
store double %109, double* %11
%110 = load double, double* %10
%111 = load double, double* %10
%112 = load double, double* %9
%113 = fmul double 4.000000e+00, %112
%114 = load double, double* %11
%115 = fmul double %113, %114
%116 = fneg double %115
%117 = call double @llvm.fmuladd.f64(double %110, double %111, double %116)
store double %117, double* %12
%118 = load double, double* %12
%119 = fcmp ogt double %118, 0.000000e+00
br i1 %119, label %120, label %259
120: ; preds = %49
%121 = load double, double* %10
%122 = fneg double %121
%123 = load double, double* %12
%124 = call double @sqrt(double %123)
%125 = fadd double %122, %124
%126 = load double, double* %9
%127 = fmul double 2.000000e+00, %126
%128 = fdiv double %125, %127
%129 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %13, i64 0, i64 0
%130 = getelementptr inbounds [2 x double], [2 x double]* %129, i64 0, i64 0
store double %128, double* %130
%131 = load double, double* %10
%132 = fneg double %131
%133 = load double, double* %12
%134 = call double @sqrt(double %133)
%135 = fsub double %132, %134
%136 = load double, double* %9
%137 = fmul double 2.000000e+00, %136
%138 = fdiv double %135, %137
%139 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %13, i64 0, i64 1
%140 = getelementptr inbounds [2 x double], [2 x double]* %139, i64 0, i64 0
store double %138, double* %140
%141 = load double*, double** %7
%142 = getelementptr inbounds double, double* %141, i64 0
%143 = load double, double* %142
%144 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %13, i64 0, i64 0
%145 = getelementptr inbounds [2 x double], [2 x double]* %144, i64 0, i64 0
%146 = load double, double* %145
%147 = load double*, double** %7
%148 = getelementptr inbounds double, double* %147, i64 1
%149 = load double, double* %148
%150 = call double @llvm.fmuladd.f64(double %143, double %146, double %149)
%151 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %13, i64 0, i64 0
%152 = getelementptr inbounds [2 x double], [2 x double]* %151, i64 0, i64 1
store double %150, double* %152
%153 = load double*, double** %7
%154 = getelementptr inbounds double, double* %153, i64 0
%155 = load double, double* %154
%156 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %13, i64 0, i64 1
%157 = getelementptr inbounds [2 x double], [2 x double]* %156, i64 0, i64 0
%158 = load double, double* %157
%159 = load double*, double** %7
%160 = getelementptr inbounds double, double* %159, i64 1
%161 = load double, double* %160
%162 = call double @llvm.fmuladd.f64(double %155, double %158, double %161)
%163 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %13, i64 0, i64 1
%164 = getelementptr inbounds [2 x double], [2 x double]* %163, i64 0, i64 1
store double %162, double* %164
%165 = load double*, double** %5
%166 = getelementptr inbounds double, double* %165, i64 0
%167 = load double, double* %166
%168 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %13, i64 0, i64 0
%169 = getelementptr inbounds [2 x double], [2 x double]* %168, i64 0, i64 0
%170 = load double, double* %169
%171 = fsub double %167, %170
%172 = getelementptr inbounds [2 x double], [2 x double]* %14, i64 0, i64 0
store double %171, double* %172
%173 = load double*, double** %5
%174 = getelementptr inbounds double, double* %173, i64 1
%175 = load double, double* %174
%176 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %13, i64 0, i64 0
%177 = getelementptr inbounds [2 x double], [2 x double]* %176, i64 0, i64 1
%178 = load double, double* %177
%179 = fsub double %175, %178
%180 = getelementptr inbounds [2 x double], [2 x double]* %14, i64 0, i64 1
store double %179, double* %180
%181 = load double*, double** %5
%182 = getelementptr inbounds double, double* %181, i64 0
%183 = load double, double* %182
%184 = getelementptr inbounds [2 x double], [2 x double]* %15, i64 0, i64 0
store double %183, double* %184
%185 = load double*, double** %7
%186 = getelementptr inbounds double, double* %185, i64 0
%187 = load double, double* %186
%188 = getelementptr inbounds [2 x double], [2 x double]* %15, i64 0, i64 0
%189 = load double, double* %188
%190 = load double*, double** %7
%191 = getelementptr inbounds double, double* %190, i64 1
%192 = load double, double* %191
%193 = call double @llvm.fmuladd.f64(double %187, double %189, double %192)
%194 = getelementptr inbounds [2 x double], [2 x double]* %15, i64 0, i64 1
store double %193, double* %194
%195 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %13, i64 0, i64 0
%196 = getelementptr inbounds [2 x double], [2 x double]* %195, i64 0, i64 0
%197 = load double, double* %196
%198 = getelementptr inbounds [2 x double], [2 x double]* %15, i64 0, i64 0
%199 = load double, double* %198
%200 = fsub double %199, %197
store double %200, double* %198
%201 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %13, i64 0, i64 0
%202 = getelementptr inbounds [2 x double], [2 x double]* %201, i64 0, i64 1
%203 = load double, double* %202
%204 = getelementptr inbounds [2 x double], [2 x double]* %15, i64 0, i64 1
%205 = load double, double* %204
%206 = fsub double %205, %203
store double %206, double* %204
%207 = getelementptr inbounds [2 x double], [2 x double]* %14, i64 0, i64 0
%208 = load double, double* %207
%209 = getelementptr inbounds [2 x double], [2 x double]* %15, i64 0, i64 0
%210 = load double, double* %209
%211 = getelementptr inbounds [2 x double], [2 x double]* %14, i64 0, i64 1
%212 = load double, double* %211
%213 = getelementptr inbounds [2 x double], [2 x double]* %15, i64 0, i64 1
%214 = load double, double* %213
%215 = fmul double %212, %214
%216 = call double @llvm.fmuladd.f64(double %208, double %210, double %215)
store double %216, double* %16
%217 = getelementptr inbounds [2 x double], [2 x double]* %14, i64 0, i64 0
%218 = load double, double* %217
%219 = getelementptr inbounds [2 x double], [2 x double]* %14, i64 0, i64 0
%220 = load double, double* %219
%221 = getelementptr inbounds [2 x double], [2 x double]* %14, i64 0, i64 1
%222 = load double, double* %221
%223 = getelementptr inbounds [2 x double], [2 x double]* %14, i64 0, i64 1
%224 = load double, double* %223
%225 = fmul double %222, %224
%226 = call double @llvm.fmuladd.f64(double %218, double %220, double %225)
%227 = call double @sqrt(double %226)
%228 = getelementptr inbounds [2 x double], [2 x double]* %15, i64 0, i64 0
%229 = load double, double* %228
%230 = getelementptr inbounds [2 x double], [2 x double]* %15, i64 0, i64 0
%231 = load double, double* %230
%232 = getelementptr inbounds [2 x double], [2 x double]* %15, i64 0, i64 1
%233 = load double, double* %232
%234 = getelementptr inbounds [2 x double], [2 x double]* %15, i64 0, i64 1
%235 = load double, double* %234
%236 = fmul double %233, %235
%237 = call double @llvm.fmuladd.f64(double %229, double %231, double %236)
%238 = call double @sqrt(double %237)
%239 = fmul double %227, %238
store double %239, double* %17
%240 = load double, double* %16
%241 = load double, double* %17
%242 = fdiv double %240, %241
%243 = call double @acos(double %242)
%244 = fmul double %243, 0x404CA5DC1A63C1F8
store double %244, double* %18
%245 = load double*, double** %5
%246 = getelementptr inbounds double, double* %245, i64 1
%247 = load double, double* %246
%248 = load double*, double** %7
%249 = getelementptr inbounds double, double* %248, i64 1
%250 = load double, double* %249
%251 = fcmp ogt double %247, %250
br i1 %251, label %252, label %255
252: ; preds = %120
%253 = load double, double* %18
%254 = fadd double %253, 9.000000e+01
store double %254, double* %18
br label %258
255: ; preds = %120
%256 = load double, double* %18
%257 = fsub double 9.000000e+01, %256
store double %257, double* %18
br label %258
258: ; preds = %255, %252
br label %266
259: ; preds = %49
%260 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%261 = load double, double* %9
%262 = load double, double* %10
%263 = load double, double* %11
%264 = load double, double* %12
%265 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), double %261, double %262, double %263, double %264)
br label %266
266: ; preds = %259, %258
%267 = load double, double* %18
store double %267, double* %4
br label %269
268: ; preds = %3
store double -1.000000e+00, double* %4
br label %269
269: ; preds = %268, %266
%270 = load double, double* %4
ret double %270
}

LLVM IR (-O2):
@.str.1 = [31 x i8] c"\0Aa= %f\09b= %f\09c =%f\09delta= %f\0A \00"
@str = [36 x i8] c"\0AWARNING: Negative delta parameter!\00"
define double @contact_angle(double* nocapture %0, double %1, double* nocapture %2) {
%4 = getelementptr inbounds double, double* %0, i64 1
%5 = load double, double* %4
%6 = load double, double* %2
%7 = load double, double* %0
%8 = fneg double %6
%9 = tail call double @llvm.fmuladd.f64(double %8, double %7, double %5)
%10 = getelementptr inbounds double, double* %2, i64 1
%11 = load double, double* %10
%12 = fsub double %9, %11
%13 = tail call double @llvm.fabs.f64(double %12)
%14 = tail call double @llvm.fmuladd.f64(double %6, double %6, double 1.000000e+00)
%15 = tail call double @sqrt(double %14)
%16 = fdiv double %13, %15
%17 = fcmp olt double %16, %1
br i1 %17, label %18, label %79
18: ; preds = %3
%19 = load double, double* %2
%20 = tail call double @llvm.fmuladd.f64(double %19, double %19, double 1.000000e+00)
%21 = load double, double* %10
%22 = load double, double* %0
%23 = fneg double %22
%24 = tail call double @llvm.fmuladd.f64(double %19, double %21, double %23)
%25 = load double, double* %4
%26 = tail call double @llvm.fmuladd.f64(double %19, double %25, double %24)
%27 = fmul double %26, 2.000000e+00
%28 = fmul double %25, %25
%29 = tail call double @llvm.fmuladd.f64(double %22, double %22, double %28)
%30 = tail call double @llvm.fmuladd.f64(double %21, double %21, double %29)
%31 = fneg double %1
%32 = tail call double @llvm.fmuladd.f64(double %31, double %1, double %30)
%33 = fmul double %21, -2.000000e+00
%34 = tail call double @llvm.fmuladd.f64(double %33, double %25, double %32)
%35 = fmul double %20, -4.000000e+00
%36 = fmul double %35, %34
%37 = tail call double @llvm.fmuladd.f64(double %27, double %27, double %36)
%38 = fcmp ogt double %37, 0.000000e+00
br i1 %38, label %39, label %76
39: ; preds = %18
%40 = tail call double @sqrt(double %37)
%41 = fsub double %40, %27
%42 = fmul double %20, 2.000000e+00
%43 = fdiv double %41, %42
%44 = fcmp olt double %37, 0.000000e+00
br i1 %44, label %45, label %47
45: ; preds = %39
%46 = tail call double @sqrt(double %37)
br label %47
47: ; preds = %39, %45
%48 = load double, double* %2
%49 = load double, double* %10
%50 = tail call double @llvm.fmuladd.f64(double %48, double %43, double %49)
%51 = load double, double* %0
%52 = fsub double %51, %43
%53 = load double, double* %4
%54 = fsub double %53, %50
%55 = tail call double @llvm.fmuladd.f64(double %48, double %51, double %49)
%56 = fsub double %55, %50
%57 = fmul double %54, %56
%58 = tail call double @llvm.fmuladd.f64(double %52, double %52, double %57)
%59 = fmul double %54, %54
%60 = tail call double @llvm.fmuladd.f64(double %52, double %52, double %59)
%61 = tail call double @sqrt(double %60)
%62 = fmul double %56, %56
%63 = tail call double @llvm.fmuladd.f64(double %52, double %52, double %62)
%64 = tail call double @sqrt(double %63)
%65 = fmul double %61, %64
%66 = fdiv double %58, %65
%67 = tail call double @acos(double %66)
%68 = fmul double %67, 0x404CA5DC1A63C1F8
%69 = load double, double* %4
%70 = load double, double* %10
%71 = fcmp ogt double %69, %70
br i1 %71, label %72, label %74
72: ; preds = %47
%73 = fadd double %68, 9.000000e+01
br label %79
74: ; preds = %47
%75 = fsub double 9.000000e+01, %68
br label %79
76: ; preds = %18
%77 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
%78 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), double %20, double %27, double %34, double %37)
br label %79
79: ; preds = %3, %76, %74, %72
%80 = phi double [ %73, %72 ], [ %75, %74 ], [ undef, %76 ], [ -1.000000e+00, %3 ]
ret double %80
}