#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 pow(float, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, float *, float *, float *);
float sqrt(float);
int main() {
  float a, b, c;
  float delta;
  float x1, x2;
  scanf("%f%f%f", &a, &b, &c);
  if (a == 0) {
    printf("NEESG\n");
  } else {
    delta = pow(b, 2) - (4 * a * c);
    if (delta < 0) {
      printf("NRR\n");
    } else {
      x1 = (-b + sqrt(delta)) / (2 * a);
      x2 = (-b - sqrt(delta)) / (2 * a);
      printf("%.2f\n%.2f\n", x1, x2);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeb2(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1191 <main+0x51>
jp     1191 <main+0x51>
lea    0xe8a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    129b <main+0x15b>
movss  -0xc(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
cvtsi2ss %eax,%xmm1
movss  0xe54(%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,-0x14(%rbp)
xorps  %xmm0,%xmm0
ucomiss -0x14(%rbp),%xmm0
jbe    11f0 <main+0xb0>
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1296 <main+0x156>
movss  -0xc(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x14(%rbp),%xmm0
call   1060 <sqrt@plt>
movaps %xmm0,%xmm1
movss  -0x24(%rbp),%xmm0
addss  %xmm1,%xmm0
movss  0xddf(%rip),%xmm1
mulss  -0x8(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0xc(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x14(%rbp),%xmm0
call   1060 <sqrt@plt>
movaps %xmm0,%xmm1
movss  -0x20(%rbp),%xmm0
subss  %xmm1,%xmm0
movss  0xd9c(%rip),%xmm1
mulss  -0x8(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x1c(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xd8c(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
jmp    129b <main+0x15b>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x38,%rsp
lea    0xec5(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x14(%rsp),%rdx
lea    0x1c(%rsp),%rcx
call   1050 <scanf@plt>
movss  0xc(%rsp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1190 <main+0x40>
jp     1190 <main+0x40>
lea    0xeb0(%rip),%rdi
call   1030 <puts@plt>
jmp    1292 <main+0x142>
movss  0x14(%rsp),%xmm0
mov    $0x2,%edi
call   1060 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  0xc(%rsp),%xmm1
mulss  0xe4b(%rip),%xmm1
mulss  0x1c(%rsp),%xmm1
addss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomiss %xmm1,%xmm0
jbe    11d8 <main+0x88>
lea    0xe64(%rip),%rdi
call   1030 <puts@plt>
jmp    1292 <main+0x142>
movss  0x14(%rsp),%xmm0
sqrtss %xmm1,%xmm3
xorps  %xmm4,%xmm4
ucomiss %xmm4,%xmm1
movaps %xmm3,%xmm2
jae    121f <main+0xcf>
movss  %xmm0,0x18(%rsp)
movaps %xmm1,%xmm0
movss  %xmm1,0x10(%rsp)
movss  %xmm3,0x20(%rsp)
call   1070 <sqrt@plt>
xorps  %xmm4,%xmm4
movss  0x20(%rsp),%xmm3
movss  0x10(%rsp),%xmm1
movaps %xmm0,%xmm2
movss  0x18(%rsp),%xmm0
subss  %xmm0,%xmm2
movss  0xc(%rsp),%xmm0
addss  %xmm0,%xmm0
divss  %xmm0,%xmm2
movss  0x14(%rsp),%xmm5
xorps  0xdd2(%rip),%xmm5
ucomiss %xmm4,%xmm1
jae    1264 <main+0x114>
movaps %xmm1,%xmm0
movss  %xmm2,0x10(%rsp)
movaps %xmm5,0x20(%rsp)
call   1070 <sqrt@plt>
movaps 0x20(%rsp),%xmm5
movss  0x10(%rsp),%xmm2
movaps %xmm0,%xmm3
subss  %xmm3,%xmm5
movss  0xc(%rsp),%xmm0
addss  %xmm0,%xmm0
divss  %xmm0,%xmm5
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm5,%xmm1
lea    0xd9c(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%f%f%f\00"
@.str.1 = [7 x i8] c"NEESG\0A\00"
@.str.2 = [5 x i8] c"NRR\0A\00"
@.str.3 = [11 x i8] c"%.2f\0A%.2f\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 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), float* %2, float* %3, float* %4)
%9 = load float, float* %2
%10 = fcmp oeq float %9, 0.000000e+00
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %49
13: ; preds = %0
%14 = load float, float* %3
%15 = call i32 @pow(float %14, i32 2)
%16 = sitofp i32 %15 to float
%17 = load float, float* %2
%18 = fmul float 4.000000e+00, %17
%19 = load float, float* %4
%20 = fneg float %18
%21 = call float @llvm.fmuladd.f32(float %20, float %19, float %16)
store float %21, float* %5
%22 = load float, float* %5
%23 = fcmp olt float %22, 0.000000e+00
br i1 %23, label %24, label %26
24: ; preds = %13
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %48
26: ; preds = %13
%27 = load float, float* %3
%28 = fneg float %27
%29 = load float, float* %5
%30 = call float @sqrt(float %29)
%31 = fadd float %28, %30
%32 = load float, float* %2
%33 = fmul float 2.000000e+00, %32
%34 = fdiv float %31, %33
store float %34, float* %6
%35 = load float, float* %3
%36 = fneg float %35
%37 = load float, float* %5
%38 = call float @sqrt(float %37)
%39 = fsub float %36, %38
%40 = load float, float* %2
%41 = fmul float 2.000000e+00, %40
%42 = fdiv float %39, %41
store float %42, float* %7
%43 = load float, float* %6
%44 = fpext float %43 to double
%45 = load float, float* %7
%46 = fpext float %45 to double
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), double %44, double %46)
br label %48
48: ; preds = %26, %24
br label %49
49: ; preds = %48, %11
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%f%f%f\00"
@.str.3 = [11 x i8] c"%.2f\0A%.2f\0A\00"
@str = [4 x i8] c"NRR\00"
@str.4 = [6 x i8] c"NEESG\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = bitcast float* %1 to i8*
%5 = bitcast float* %2 to i8*
%6 = bitcast float* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), float* %1, float* %2, float* %3)
%8 = load float, float* %1
%9 = fcmp oeq float %8, 0.000000e+00
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.4, i64 0, i64 0))
br label %40
12: ; preds = %0
%13 = load float, float* %2
%14 = call i32 @pow(float %13, i32 2)
%15 = sitofp i32 %14 to float
%16 = load float, float* %1
%17 = load float, float* %3
%18 = fmul float %16, -4.000000e+00
%19 = call float @llvm.fmuladd.f32(float %18, float %17, float %15)
%20 = fcmp olt float %19, 0.000000e+00
br i1 %20, label %21, label %23
21: ; preds = %12
%22 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str, i64 0, i64 0))
br label %40
23: ; preds = %12
%24 = load float, float* %2
%25 = call float @sqrt(float %19)
%26 = fsub float %25, %24
%27 = load float, float* %1
%28 = fmul float %27, 2.000000e+00
%29 = fdiv float %26, %28
%30 = load float, float* %2
%31 = fneg float %30
%32 = call float @sqrt(float %19)
%33 = fsub float %31, %32
%34 = load float, float* %1
%35 = fmul float %34, 2.000000e+00
%36 = fdiv float %33, %35
%37 = fpext float %29 to double
%38 = fpext float %36 to double
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), double %37, double %38)
br label %40
40: ; preds = %21, %23, %10
ret i32 0
}