#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*/ formatuj_rownanie(int, int, int);
int /*<<< orphan*/ oblicz_pierwiastki(int, int, int, float *, float *, float *,
                                      float *);
int /*<<< orphan*/ pobierz_dane(int *, int *, int *);
int /*<<< orphan*/ wyswietl_wynik(int, int, int, float, float, float, float);
int main() {
  int a, b, c;
  float x1r, x1n, x2r, x2n;
  pobierz_dane(&a, &b, &c);
  formatuj_rownanie(a, b, c);
  if ((a != 0) && (b != 0)) {
    oblicz_pierwiastki(a, b, c, &x1r, &x1n, &x2r, &x2n);
    wyswietl_wynik(a, b, c, x1r, x1n, x2r, x2n);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x8(%rbp),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x10(%rbp),%rdx
call   1060 <pobierz_dane@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1050 <formatuj_rownanie@plt>
cmpl   $0x0,-0x8(%rbp)
je     11c6 <main+0x86>
cmpl   $0x0,-0xc(%rbp)
je     11c6 <main+0x86>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    -0x14(%rbp),%rcx
lea    -0x18(%rbp),%r8
lea    -0x1c(%rbp),%r9
lea    -0x20(%rbp),%rax
mov    %rax,(%rsp)
call   1030 <oblicz_pierwiastki@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
movss  -0x14(%rbp),%xmm0
movss  -0x18(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm2
movss  -0x20(%rbp),%xmm3
call   1040 <wyswietl_wynik@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
lea    0x14(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
call   1060 <pobierz_dane@plt>
mov    0x14(%rsp),%edi
mov    0x10(%rsp),%esi
mov    0xc(%rsp),%edx
call   1050 <formatuj_rownanie@plt>
mov    0x14(%rsp),%edi
test   %edi,%edi
je     11c3 <main+0x83>
mov    0x10(%rsp),%esi
test   %esi,%esi
je     11c3 <main+0x83>
mov    0xc(%rsp),%edx
lea    0x18(%rsp),%rax
mov    %rax,(%rsp)
lea    0x24(%rsp),%rcx
lea    0x20(%rsp),%r8
lea    0x1c(%rsp),%r9
call   1030 <oblicz_pierwiastki@plt>
mov    0x14(%rsp),%edi
mov    0x10(%rsp),%esi
mov    0xc(%rsp),%edx
movss  0x24(%rsp),%xmm0
movss  0x20(%rsp),%xmm1
movss  0x1c(%rsp),%xmm2
movss  0x18(%rsp),%xmm3
call   1040 <wyswietl_wynik@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
store i32 0, i32* %1
%9 = call i32 @pobierz_dane(i32* %2, i32* %3, i32* %4)
%10 = load i32, i32* %2
%11 = load i32, i32* %3
%12 = load i32, i32* %4
%13 = call i32 @formatuj_rownanie(i32 %10, i32 %11, i32 %12)
%14 = load i32, i32* %2
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %32
16: ; preds = %0
%17 = load i32, i32* %3
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %32
19: ; preds = %16
%20 = load i32, i32* %2
%21 = load i32, i32* %3
%22 = load i32, i32* %4
%23 = call i32 @oblicz_pierwiastki(i32 %20, i32 %21, i32 %22, float* %5, float* %6, float* %7, float* %8)
%24 = load i32, i32* %2
%25 = load i32, i32* %3
%26 = load i32, i32* %4
%27 = load float, float* %5
%28 = load float, float* %6
%29 = load float, float* %7
%30 = load float, float* %8
%31 = call i32 @wyswietl_wynik(i32 %24, i32 %25, i32 %26, float %27, float %28, float %29, float %30)
br label %32
32: ; preds = %19, %16, %0
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = bitcast i32* %1 to i8*
%9 = bitcast i32* %2 to i8*
%10 = bitcast i32* %3 to i8*
%11 = bitcast float* %4 to i8*
%12 = bitcast float* %5 to i8*
%13 = bitcast float* %6 to i8*
%14 = bitcast float* %7 to i8*
%15 = call i32 @pobierz_dane(i32* %1, i32* %2, i32* %3)
%16 = load i32, i32* %1
%17 = load i32, i32* %2
%18 = load i32, i32* %3
%19 = call i32 @formatuj_rownanie(i32 %16, i32 %17, i32 %18)
%20 = load i32, i32* %1
%21 = icmp ne i32 %20, 0
%22 = load i32, i32* %2
%23 = icmp ne i32 %22, 0
%24 = select i1 %21, i1 %23, i1 false
br i1 %24, label %25, label %36
25: ; preds = %0
%26 = load i32, i32* %3
%27 = call i32 @oblicz_pierwiastki(i32 %20, i32 %22, i32 %26, float* %4, float* %5, float* %6, float* %7)
%28 = load i32, i32* %1
%29 = load i32, i32* %2
%30 = load i32, i32* %3
%31 = load float, float* %4
%32 = load float, float* %5
%33 = load float, float* %6
%34 = load float, float* %7
%35 = call i32 @wyswietl_wynik(i32 %28, i32 %29, i32 %30, float %31, float %32, float %33, float %34)
br label %36
36: ; preds = %25, %0
ret i32 0
}