#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 */
float fabs(float);
int pow(float, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, float *);
int sqrt(float);
int main() {
  printf("Quadratic Equation \n");
  printf("( ax%c + bx + c = 0 ) \n", 253);
  printf("\n");
  float a, b, c, alpha, beta, discriminant;
  printf("a = ");
  scanf("%f", &a);
  printf("b = ");
  scanf("%f", &b);
  printf("c = ");
  scanf("%f", &c);
  printf("\n");
  if (!a) {
    printf("\'a\' must not be 0. \n");
  } else {
    discriminant = pow(b, 2) - 4 * a * c;
    printf("Discriminant : %f \n", discriminant);
    printf("\n");
    if (discriminant > 0) {
      alpha = (-b + sqrt(discriminant)) / (2 * a);
      beta = (-b - sqrt(discriminant)) / (2 * a);
      printf("The roots are Real and Distinct \n");
      printf("\n");
      printf("alpha = %f \n", alpha);
      printf("beta = %f \n", beta);
      printf("\n");
    } else if (!discriminant) {
      alpha = beta = -b / (2 * a);
      printf("The roots are Real and Equal \n");
      printf("\n");
      printf("alpha = beta = %f \n", alpha);
      printf("\n");
    } else {
      printf("Root are Complex (Real + Imaginary) \n");
      printf("\n");
      printf("alpha = %f + %f i \n", (-b / (2 * a)),
             sqrt(fabs(discriminant)) / (2 * a));
      printf("beta = %f - %f i \n", (-b / (2 * a)),
             sqrt(fabs(discriminant)) / (2 * a));
      printf("\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea9(%rip),%rdi
mov    $0xfd,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe97(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xe8a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe79(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xe71(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe5b(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xe44(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1220 <main+0xd0>
jp     1220 <main+0xd0>
lea    0xe33(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1506 <main+0x3b6>
movss  -0xc(%rbp),%xmm0
mov    $0x2,%edi
call   1060 <pow@plt>
cvtsi2ss %eax,%xmm1
movss  0xdc5(%rip),%xmm0
mulss  -0x8(%rbp),%xmm0
movss  -0x10(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xded(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xdb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x1c(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    137a <main+0x22a>
movss  -0xc(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x1c(%rbp),%xmm0
call   1070 <sqrt@plt>
movss  -0x24(%rbp),%xmm0
cvtsi2ss %eax,%xmm1
addss  %xmm1,%xmm0
movss  0xd39(%rip),%xmm1
mulss  -0x8(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0xc(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x1c(%rbp),%xmm0
call   1070 <sqrt@plt>
movss  -0x20(%rbp),%xmm0
cvtsi2ss %eax,%xmm1
subss  %xmm1,%xmm0
movss  0xcf5(%rip),%xmm1
mulss  -0x8(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x18(%rbp)
lea    0xd4c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd01(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd49(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd66(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xcc5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1501 <main+0x3b1>
movss  -0x1c(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1404 <main+0x2b4>
jp     1404 <main+0x2b4>
movss  -0xc(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  0xc59(%rip),%xmm1
mulss  -0x8(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  %xmm0,-0x14(%rbp)
lea    0xcda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc60(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcd4(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xc3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14fc <main+0x3ac>
lea    0xcc7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  0xbca(%rip),%xmm1
mulss  -0x8(%rbp),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
movss  -0x1c(%rbp),%xmm0
call   1040 <fabs@plt>
call   1070 <sqrt@plt>
movsd  -0x38(%rbp),%xmm0
cvtsi2ss %eax,%xmm1
movss  0xb98(%rip),%xmm2
mulss  -0x8(%rbp),%xmm2
divss  %xmm2,%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xc78(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  0xb63(%rip),%xmm1
mulss  -0x8(%rbp),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movss  -0x1c(%rbp),%xmm0
call   1040 <fabs@plt>
call   1070 <sqrt@plt>
movsd  -0x30(%rbp),%xmm0
cvtsi2ss %eax,%xmm1
movss  0xb31(%rip),%xmm2
mulss  -0x8(%rbp),%xmm2
divss  %xmm2,%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xc25(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
lea    0xb3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1501 <main+0x3b1>
jmp    1506 <main+0x3b6>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x40,%rsp
lea    0xf4a(%rip),%rdi
call   1040 <puts@plt>
lea    0xeb8(%rip),%rdi
mov    $0xfd,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xeb3(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeaa(%rip),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xe99(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xe83(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x3c(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movss  0x8(%rsp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1204 <main+0xa4>
jnp    131d <main+0x1bd>
movss  0xc(%rsp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  0x8(%rsp),%xmm1
mulss  0xdd7(%rip),%xmm1
mulss  0x3c(%rsp),%xmm1
addss  %xmm0,%xmm1
movaps %xmm1,0x20(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xe14(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movaps 0x20(%rsp),%xmm0
ucomiss 0xda1(%rip),%xmm0
jbe    132e <main+0x1ce>
movss  0xc(%rsp),%xmm1
movss  %xmm1,0x10(%rsp)
call   1080 <sqrt@plt>
xorps  %xmm1,%xmm1
cvtsi2ss %eax,%xmm1
subss  0x10(%rsp),%xmm1
movss  0x8(%rsp),%xmm0
addss  %xmm0,%xmm0
divss  %xmm0,%xmm1
movss  %xmm1,0x38(%rsp)
movss  0xc(%rsp),%xmm0
xorps  0xd68(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0x20(%rsp),%xmm0
call   1080 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movaps 0x10(%rsp),%xmm1
subss  %xmm0,%xmm1
movss  0x8(%rsp),%xmm0
addss  %xmm0,%xmm0
divss  %xmm0,%xmm1
movaps %xmm1,0x10(%rsp)
lea    0xe40(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movss  0x38(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd6d(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movaps 0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd6b(%rip),%rdi
jmp    1464 <main+0x304>
lea    0xda6(%rip),%rdi
call   1040 <puts@plt>
jmp    1475 <main+0x315>
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    133c <main+0x1dc>
jnp    141e <main+0x2be>
lea    0xdb9(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movss  0xc(%rsp),%xmm0
xorps  0xcb1(%rip),%xmm0
movss  0x8(%rsp),%xmm1
addss  %xmm1,%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
movaps 0x20(%rsp),%xmm0
andps  0xc9d(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
call   1080 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  0x8(%rsp),%xmm1
addss  %xmm1,%xmm1
divss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
lea    0xcdf(%rip),%rdi
movsd  0x10(%rsp),%xmm0
mov    $0x2,%al
call   1050 <printf@plt>
movss  0xc(%rsp),%xmm0
xorps  0xc46(%rip),%xmm0
movss  0x8(%rsp),%xmm1
addss  %xmm1,%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
movaps 0x20(%rsp),%xmm0
call   1080 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  0x8(%rsp),%xmm1
addss  %xmm1,%xmm1
divss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
lea    0xc94(%rip),%rdi
movsd  0x10(%rsp),%xmm0
mov    $0x2,%al
call   1050 <printf@plt>
jmp    146b <main+0x30b>
movss  0xc(%rsp),%xmm1
xorps  0xbe5(%rip),%xmm1
movss  0x8(%rsp),%xmm0
addss  %xmm0,%xmm0
divss  %xmm0,%xmm1
movaps %xmm1,0x20(%rsp)
lea    0xc99(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movaps 0x20(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc17(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [21 x i8] c"Quadratic Equation \0A\00"
@.str.1 = [24 x i8] c"( ax%c + bx + c = 0 ) \0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [5 x i8] c"a = \00"
@.str.4 = [3 x i8] c"%f\00"
@.str.5 = [5 x i8] c"b = \00"
@.str.6 = [5 x i8] c"c = \00"
@.str.7 = [21 x i8] c"'a' must not be 0. \0A\00"
@.str.8 = [20 x i8] c"Discriminant : %f \0A\00"
@.str.9 = [34 x i8] c"The roots are Real and Distinct \0A\00"
@.str.10 = [13 x i8] c"alpha = %f \0A\00"
@.str.11 = [12 x i8] c"beta = %f \0A\00"
@.str.12 = [31 x i8] c"The roots are Real and Equal \0A\00"
@.str.13 = [20 x i8] c"alpha = beta = %f \0A\00"
@.str.14 = [38 x i8] c"Root are Complex (Real + Imaginary) \0A\00"
@.str.15 = [20 x i8] c"alpha = %f + %f i \0A\00"
@.str.16 = [19 x i8] c"beta = %f - %f i \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
store i32 0, i32* %1
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 253)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %2)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %3)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %4)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%18 = load float, float* %2
%19 = fcmp une float %18, 0.000000e+00
br i1 %19, label %22, label %20
20: ; preds = %0
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
br label %116
22: ; preds = %0
%23 = load float, float* %3
%24 = call i32 @pow(float %23, i32 2)
%25 = sitofp i32 %24 to float
%26 = load float, float* %2
%27 = fmul float 4.000000e+00, %26
%28 = load float, float* %4
%29 = fneg float %27
%30 = call float @llvm.fmuladd.f32(float %29, float %28, float %25)
store float %30, float* %7
%31 = load float, float* %7
%32 = fpext float %31 to double
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), double %32)
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%35 = load float, float* %7
%36 = fcmp ogt float %35, 0.000000e+00
br i1 %36, label %37, label %65
37: ; preds = %22
%38 = load float, float* %3
%39 = fneg float %38
%40 = load float, float* %7
%41 = call i32 @sqrt(float %40)
%42 = sitofp i32 %41 to float
%43 = fadd float %39, %42
%44 = load float, float* %2
%45 = fmul float 2.000000e+00, %44
%46 = fdiv float %43, %45
store float %46, float* %5
%47 = load float, float* %3
%48 = fneg float %47
%49 = load float, float* %7
%50 = call i32 @sqrt(float %49)
%51 = sitofp i32 %50 to float
%52 = fsub float %48, %51
%53 = load float, float* %2
%54 = fmul float 2.000000e+00, %53
%55 = fdiv float %52, %54
store float %55, float* %6
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0))
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%58 = load float, float* %5
%59 = fpext float %58 to double
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), double %59)
%61 = load float, float* %6
%62 = fpext float %61 to double
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), double %62)
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %115
65: ; preds = %22
%66 = load float, float* %7
%67 = fcmp une float %66, 0.000000e+00
br i1 %67, label %80, label %68
68: ; preds = %65
%69 = load float, float* %3
%70 = fneg float %69
%71 = load float, float* %2
%72 = fmul float 2.000000e+00, %71
%73 = fdiv float %70, %72
store float %73, float* %6
store float %73, float* %5
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0))
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%76 = load float, float* %5
%77 = fpext float %76 to double
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0), double %77)
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %114
80: ; preds = %65
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0))
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%83 = load float, float* %3
%84 = fneg float %83
%85 = load float, float* %2
%86 = fmul float 2.000000e+00, %85
%87 = fdiv float %84, %86
%88 = fpext float %87 to double
%89 = load float, float* %7
%90 = call float @fabs(float %89)
%91 = call i32 @sqrt(float %90)
%92 = sitofp i32 %91 to float
%93 = load float, float* %2
%94 = fmul float 2.000000e+00, %93
%95 = fdiv float %92, %94
%96 = fpext float %95 to double
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), double %88, double %96)
%98 = load float, float* %3
%99 = fneg float %98
%100 = load float, float* %2
%101 = fmul float 2.000000e+00, %100
%102 = fdiv float %99, %101
%103 = fpext float %102 to double
%104 = load float, float* %7
%105 = call float @fabs(float %104)
%106 = call i32 @sqrt(float %105)
%107 = sitofp i32 %106 to float
%108 = load float, float* %2
%109 = fmul float 2.000000e+00, %108
%110 = fdiv float %107, %109
%111 = fpext float %110 to double
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0), double %103, double %111)
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %114
114: ; preds = %80, %68
br label %115
115: ; preds = %114, %37
br label %116
116: ; preds = %115, %20
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [24 x i8] c"( ax%c + bx + c = 0 ) \0A\00"
@.str.3 = [5 x i8] c"a = \00"
@.str.4 = [3 x i8] c"%f\00"
@.str.5 = [5 x i8] c"b = \00"
@.str.6 = [5 x i8] c"c = \00"
@.str.8 = [20 x i8] c"Discriminant : %f \0A\00"
@.str.10 = [13 x i8] c"alpha = %f \0A\00"
@.str.11 = [12 x i8] c"beta = %f \0A\00"
@.str.13 = [20 x i8] c"alpha = beta = %f \0A\00"
@.str.15 = [20 x i8] c"alpha = %f + %f i \0A\00"
@.str.16 = [19 x i8] c"beta = %f - %f i \0A\00"
@str = [20 x i8] c"Quadratic Equation \00"
@str.17 = [20 x i8] c"'a' must not be 0. \00"
@str.18 = [30 x i8] c"The roots are Real and Equal \00"
@str.19 = [37 x i8] c"Root are Complex (Real + Imaginary) \00"
@str.20 = [33 x i8] c"The roots are Real and Distinct \00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 253)
%6 = tail call i32 @putchar(i32 10)
%7 = bitcast float* %1 to i8*
%8 = bitcast float* %2 to i8*
%9 = bitcast float* %3 to i8*
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %1)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %2)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %3)
%16 = call i32 @putchar(i32 10)
%17 = load float, float* %1
%18 = fcmp une float %17, 0.000000e+00
br i1 %18, label %21, label %19
19: ; preds = %0
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.17, i64 0, i64 0))
br label %100
21: ; preds = %0
%22 = load float, float* %2
%23 = call i32 @pow(float %22, i32 2)
%24 = sitofp i32 %23 to float
%25 = load float, float* %1
%26 = load float, float* %3
%27 = fmul float %25, -4.000000e+00
%28 = call float @llvm.fmuladd.f32(float %27, float %26, float %24)
%29 = fpext float %28 to double
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), double %29)
%31 = call i32 @putchar(i32 10)
%32 = fcmp ogt float %28, 0.000000e+00
br i1 %32, label %33, label %56
33: ; preds = %21
%34 = load float, float* %2
%35 = call i32 @sqrt(float %28)
%36 = sitofp i32 %35 to float
%37 = fsub float %36, %34
%38 = load float, float* %1
%39 = fmul float %38, 2.000000e+00
%40 = fdiv float %37, %39
%41 = load float, float* %2
%42 = fneg float %41
%43 = call i32 @sqrt(float %28)
%44 = sitofp i32 %43 to float
%45 = fsub float %42, %44
%46 = load float, float* %1
%47 = fmul float %46, 2.000000e+00
%48 = fdiv float %45, %47
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.20, i64 0, i64 0))
%50 = call i32 @putchar(i32 10)
%51 = fpext float %40 to double
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), double %51)
%53 = fpext float %48 to double
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), double %53)
%55 = call i32 @putchar(i32 10)
br label %100
56: ; preds = %21
%57 = fcmp une float %28, 0.000000e+00
br i1 %57, label %69, label %58
58: ; preds = %56
%59 = load float, float* %2
%60 = fneg float %59
%61 = load float, float* %1
%62 = fmul float %61, 2.000000e+00
%63 = fdiv float %60, %62
%64 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.18, i64 0, i64 0))
%65 = call i32 @putchar(i32 10)
%66 = fpext float %63 to double
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0), double %66)
%68 = call i32 @putchar(i32 10)
br label %100
69: ; preds = %56
%70 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.19, i64 0, i64 0))
%71 = call i32 @putchar(i32 10)
%72 = load float, float* %2
%73 = fneg float %72
%74 = load float, float* %1
%75 = fmul float %74, 2.000000e+00
%76 = fdiv float %73, %75
%77 = fpext float %76 to double
%78 = call float @llvm.fabs.f32(float %28)
%79 = call i32 @sqrt(float %78)
%80 = sitofp i32 %79 to float
%81 = load float, float* %1
%82 = fmul float %81, 2.000000e+00
%83 = fdiv float %80, %82
%84 = fpext float %83 to double
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), double %77, double %84)
%86 = load float, float* %2
%87 = fneg float %86
%88 = load float, float* %1
%89 = fmul float %88, 2.000000e+00
%90 = fdiv float %87, %89
%91 = fpext float %90 to double
%92 = call i32 @sqrt(float %78)
%93 = sitofp i32 %92 to float
%94 = load float, float* %1
%95 = fmul float %94, 2.000000e+00
%96 = fdiv float %93, %95
%97 = fpext float %96 to double
%98 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0), double %91, double %97)
%99 = call i32 @putchar(i32 10)
br label %100
100: ; preds = %33, %69, %58, %19
ret i32 0
}