#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 *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int sqrt(double);
int main() {
  double a, b, c, determinant;
  char ch = 'f';
  int i = 1;
  while (i >= 0) {
    printf("Enter the coefficient of x^2:");
    scanf("%lf", &a);
    printf("Enter the coefficient of x:");
    scanf("%lf", &b);
    printf("Enter the constant terms:");
    scanf("%lf", &c);
    printf("The entered equation is : %lfx*x+%lfx+%lf \n", a, b, c);
    printf("Submit(1/0)? \n");
    scanf("%d", &i);
    if (i == 1)
      i = -1;
  }
  determinant = (b * b - 4 * a * c);
  if (determinant > 0) {
    printf("First Root: %lf\n", (-b + sqrt((determinant)) / (2 * a)));
    printf("Second Root: %lf\n", (-b - sqrt((determinant)) / (2 * a)));
  } else if (determinant == 0) {
    printf("Equal roots are: %lf\n", -b / (2 * a));
  } else {
    printf("The equation has imaginary roots\n");
    float real, imag;
    real = -b / (2 * a);
    imag = sqrt(-determinant) / (2 * a);
    printf("One root is: %lf+%lfi\n", real, imag);
    printf("Another root is: %lf-%lfi", real, imag);
  }
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x66,-0x29(%rbp)
movl   $0x1,-0x30(%rbp)
cmpl   $0x0,-0x30(%rbp)
jl     1207 <main+0xd7>
lea    0xeb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec5(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xeb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea5(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe85(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
lea    0xe9e(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
lea    0xebc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebd(%rip),%rdi
lea    -0x30(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x1,-0x30(%rbp)
jne    1202 <main+0xd2>
movl   $0xffffffff,-0x30(%rbp)
jmp    114a <main+0x1a>
movsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
movsd  0xde7(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
mulsd  -0x20(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    130c <main+0x1dc>
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1050 <sqrt@plt>
movsd  -0x48(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
movsd  0xd73(%rip),%xmm2
mulsd  -0x10(%rbp),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
lea    0xdfd(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1050 <sqrt@plt>
movsd  -0x40(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
movsd  0xd1c(%rip),%xmm2
mulsd  -0x10(%rbp),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
lea    0xdb7(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    142c <main+0x2fc>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1364 <main+0x234>
jp     1364 <main+0x234>
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xcc0(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
lea    0xd71(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    1427 <main+0x2f7>
lea    0xd74(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xc72(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
movsd  -0x28(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1050 <sqrt@plt>
cvtsi2sd %eax,%xmm0
movsd  0xc33(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x38(%rbp)
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x38(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xd01(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x38(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xcf8(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
jmp    142c <main+0x2fc>
mov    $0x1,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
movl   $0x1,0xc(%rsp)
lea    0xee1(%rip),%rbx
lea    0x40(%rsp),%r14
lea    0xf0f(%rip),%r15
lea    0xfc2(%rip),%r12
lea    0xf2d(%rip),%r13
lea    0xc(%rsp),%rbp
nopl   0x0(%rax)
lea    0xe99(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xe9e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0x18(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xe9d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x40(%rsp),%xmm2
mov    %r15,%rdi
mov    $0x3,%al
call   1040 <printf@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    $0x1,%eax
je     1219 <main+0xd9>
test   %eax,%eax
jns    1180 <main+0x40>
jmp    1221 <main+0xe1>
movl   $0xffffffff,0xc(%rsp)
ff
movsd  0x18(%rsp),%xmm3
movsd  0x10(%rsp),%xmm2
movsd  0xdcb(%rip),%xmm1
mulsd  %xmm2,%xmm1
mulsd  0x40(%rsp),%xmm1
movapd %xmm3,%xmm0
mulsd  %xmm3,%xmm0
addsd  %xmm1,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    12d3 <main+0x193>
movapd %xmm0,0x30(%rsp)
movapd %xmm3,0x20(%rsp)
call   1060 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x10(%rsp),%xmm1
addsd  %xmm1,%xmm1
divsd  %xmm1,%xmm0
subsd  0x20(%rsp),%xmm0
lea    0xe1f(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0x18(%rsp),%xmm0
xorps  0xd74(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0x30(%rsp),%xmm0
call   1060 <sqrt@plt>
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
movsd  0x10(%rsp),%xmm1
addsd  %xmm1,%xmm1
divsd  %xmm1,%xmm2
movapd 0x20(%rsp),%xmm0
subsd  %xmm2,%xmm0
lea    0xde7(%rip),%rdi
jmp    12f2 <main+0x1b2>
jne    12fe <main+0x1be>
jp     12fe <main+0x1be>
xorpd  0xd31(%rip),%xmm3
addsd  %xmm2,%xmm2
divsd  %xmm2,%xmm3
lea    0xddc(%rip),%rdi
movapd %xmm3,%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
jmp    13b0 <main+0x270>
lea    0xe0c(%rip),%rdi
movapd %xmm0,0x30(%rsp)
call   1030 <puts@plt>
movapd 0xcf8(%rip),%xmm3
movsd  0x18(%rsp),%xmm1
xorpd  %xmm3,%xmm1
movsd  0x10(%rsp),%xmm2
addsd  %xmm2,%xmm2
divsd  %xmm2,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,0x20(%rsp)
movapd 0x30(%rsp),%xmm0
xorpd  %xmm3,%xmm0
call   1060 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x10(%rsp),%xmm1
addsd  %xmm1,%xmm1
divsd  %xmm1,%xmm0
xorps  %xmm2,%xmm2
cvtsd2ss %xmm0,%xmm2
movss  0x20(%rsp),%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
movsd  %xmm0,0x30(%rsp)
xorps  %xmm1,%xmm1
cvtss2sd %xmm2,%xmm1
movsd  %xmm1,0x20(%rsp)
lea    0xd51(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
lea    0xd5a(%rip),%rdi
movsd  0x30(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
mov    $0x1,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [30 x i8] c"Enter the coefficient of x^2:\00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [28 x i8] c"Enter the coefficient of x:\00"
@.str.3 = [26 x i8] c"Enter the constant terms:\00"
@.str.4 = [44 x i8] c"The entered equation is : %lfx*x+%lfx+%lf \0A\00"
@.str.5 = [15 x i8] c"Submit(1/0)? \0A\00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [17 x i8] c"First Root: %lf\0A\00"
@.str.8 = [18 x i8] c"Second Root: %lf\0A\00"
@.str.9 = [22 x i8] c"Equal roots are: %lf\0A\00"
@.str.10 = [34 x i8] c"The equation has imaginary roots\0A\00"
@.str.11 = [23 x i8] c"One root is: %lf+%lfi\0A\00"
@.str.12 = [26 x i8] c"Another root is: %lf-%lfi\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca i8
%7 = alloca i32
%8 = alloca float
%9 = alloca float
store i32 0, i32* %1
store i8 102, i8* %6
store i32 1, i32* %7
br label %10
10: ; preds = %29, %0
%11 = load i32, i32* %7
%12 = icmp sge i32 %11, 0
br i1 %12, label %13, label %30
13: ; preds = %10
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%17 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %3)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %4)
%20 = load double, double* %2
%21 = load double, double* %3
%22 = load double, double* %4
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), double %20, double %21, double %22)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %7)
%26 = load i32, i32* %7
%27 = icmp eq i32 %26, 1
br i1 %27, label %28, label %29
28: ; preds = %13
store i32 -1, i32* %7
br label %29
29: ; preds = %28, %13
br label %10
30: ; preds = %10
%31 = load double, double* %3
%32 = load double, double* %3
%33 = load double, double* %2
%34 = fmul double 4.000000e+00, %33
%35 = load double, double* %4
%36 = fmul double %34, %35
%37 = fneg double %36
%38 = call double @llvm.fmuladd.f64(double %31, double %32, double %37)
store double %38, double* %5
%39 = load double, double* %5
%40 = fcmp ogt double %39, 0.000000e+00
br i1 %40, label %41, label %62
41: ; preds = %30
%42 = load double, double* %3
%43 = fneg double %42
%44 = load double, double* %5
%45 = call i32 @sqrt(double %44)
%46 = sitofp i32 %45 to double
%47 = load double, double* %2
%48 = fmul double 2.000000e+00, %47
%49 = fdiv double %46, %48
%50 = fadd double %43, %49
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), double %50)
%52 = load double, double* %3
%53 = fneg double %52
%54 = load double, double* %5
%55 = call i32 @sqrt(double %54)
%56 = sitofp i32 %55 to double
%57 = load double, double* %2
%58 = fmul double 2.000000e+00, %57
%59 = fdiv double %56, %58
%60 = fsub double %53, %59
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), double %60)
br label %99
62: ; preds = %30
%63 = load double, double* %5
%64 = fcmp oeq double %63, 0.000000e+00
br i1 %64, label %65, label %72
65: ; preds = %62
%66 = load double, double* %3
%67 = fneg double %66
%68 = load double, double* %2
%69 = fmul double 2.000000e+00, %68
%70 = fdiv double %67, %69
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), double %70)
br label %98
72: ; preds = %62
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0))
%74 = load double, double* %3
%75 = fneg double %74
%76 = load double, double* %2
%77 = fmul double 2.000000e+00, %76
%78 = fdiv double %75, %77
%79 = fptrunc double %78 to float
store float %79, float* %8
%80 = load double, double* %5
%81 = fneg double %80
%82 = call i32 @sqrt(double %81)
%83 = sitofp i32 %82 to double
%84 = load double, double* %2
%85 = fmul double 2.000000e+00, %84
%86 = fdiv double %83, %85
%87 = fptrunc double %86 to float
store float %87, float* %9
%88 = load float, float* %8
%89 = fpext float %88 to double
%90 = load float, float* %9
%91 = fpext float %90 to double
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0), double %89, double %91)
%93 = load float, float* %8
%94 = fpext float %93 to double
%95 = load float, float* %9
%96 = fpext float %95 to double
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0), double %94, double %96)
br label %98
98: ; preds = %72, %65
br label %99
99: ; preds = %98, %41
ret i32 1
}

LLVM IR (-O2):
@.str = [30 x i8] c"Enter the coefficient of x^2:\00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [28 x i8] c"Enter the coefficient of x:\00"
@.str.3 = [26 x i8] c"Enter the constant terms:\00"
@.str.4 = [44 x i8] c"The entered equation is : %lfx*x+%lfx+%lf \0A\00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [17 x i8] c"First Root: %lf\0A\00"
@.str.8 = [18 x i8] c"Second Root: %lf\0A\00"
@.str.9 = [22 x i8] c"Equal roots are: %lf\0A\00"
@.str.11 = [23 x i8] c"One root is: %lf+%lfi\0A\00"
@.str.12 = [26 x i8] c"Another root is: %lf-%lfi\00"
@str = [33 x i8] c"The equation has imaginary roots\00"
@str.13 = [14 x i8] c"Submit(1/0)? \00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = alloca i32
%5 = bitcast double* %1 to i8*
%6 = bitcast double* %2 to i8*
%7 = bitcast double* %3 to i8*
%8 = bitcast i32* %4 to i8*
store i32 1, i32* %4
br label %9
9: ; preds = %0, %25
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %1)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %3)
%16 = load double, double* %1
%17 = load double, double* %2
%18 = load double, double* %3
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), double %16, double %17, double %18)
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.13, i64 0, i64 0))
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %4)
%22 = load i32, i32* %4
%23 = icmp eq i32 %22, 1
br i1 %23, label %24, label %25
24: ; preds = %9
store i32 -1, i32* %4
br label %27
25: ; preds = %9
%26 = icmp sgt i32 %22, -1
br i1 %26, label %9, label %27
27: ; preds = %25, %24
%28 = load double, double* %2
%29 = load double, double* %1
%30 = load double, double* %3
%31 = fmul double %29, -4.000000e+00
%32 = fmul double %31, %30
%33 = call double @llvm.fmuladd.f64(double %28, double %28, double %32)
%34 = fcmp ogt double %33, 0.000000e+00
br i1 %34, label %35, label %52
35: ; preds = %27
%36 = call i32 @sqrt(double %33)
%37 = sitofp i32 %36 to double
%38 = load double, double* %1
%39 = fmul double %38, 2.000000e+00
%40 = fdiv double %37, %39
%41 = fsub double %40, %28
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), double %41)
%43 = load double, double* %2
%44 = fneg double %43
%45 = call i32 @sqrt(double %33)
%46 = sitofp i32 %45 to double
%47 = load double, double* %1
%48 = fmul double %47, 2.000000e+00
%49 = fdiv double %46, %48
%50 = fsub double %44, %49
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), double %50)
br label %78
52: ; preds = %27
%53 = fcmp oeq double %33, 0.000000e+00
br i1 %53, label %54, label %59
54: ; preds = %52
%55 = fneg double %28
%56 = fmul double %29, 2.000000e+00
%57 = fdiv double %55, %56
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), double %57)
br label %78
59: ; preds = %52
%60 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
%61 = load double, double* %2
%62 = fneg double %61
%63 = load double, double* %1
%64 = fmul double %63, 2.000000e+00
%65 = fdiv double %62, %64
%66 = fptrunc double %65 to float
%67 = fneg double %33
%68 = call i32 @sqrt(double %67)
%69 = sitofp i32 %68 to double
%70 = load double, double* %1
%71 = fmul double %70, 2.000000e+00
%72 = fdiv double %69, %71
%73 = fptrunc double %72 to float
%74 = fpext float %66 to double
%75 = fpext float %73 to double
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0), double %74, double %75)
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0), double %74, double %75)
br label %78
78: ; preds = %54, %59, %35
ret i32 1
}