#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 abs(int);
double fabs(double);
int /*<<< orphan*/ printf(char *, ...);
void printScreen(int a, int b, int c, int curTyp, int rcRoot, double r1,
                 double r2) {
  char bc = (b < 0) ? '-' : '+';
  char cc = (c < 0) ? '-' : '+';
  printf("\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-");
  switch (curTyp) {
  case 1:
    if (a < -1) {
      if (c != 0) {
        if (abs(b) == 1)
          printf("\nThe equation is y = %dx^2 %c x %c %d", a, bc, cc, abs(c));
        else if (b == 0)
          printf("\nThe equation is y = %dx^2 %c %d", a, cc, abs(c));
        else
          printf("\nThe equation is y = %dx^2 %c %dx %c %d", a, bc, abs(b), cc,
                 abs(c));
      } else {
        if (abs(b) == 1)
          printf("\nThe equation is y = %dx^2 %c x", a, bc);
        else if (b == 0)
          printf("\nThe equation is y = %dx^2", a);
        else
          printf("\nThe equation is y = %dx^2 %c %dx", a, bc, abs(b));
      }
    }
    if (abs(a) == 1) {
      if (c != 0) {
        if (abs(b) == 1)
          printf("\nThe equation is y = %cx^2 %c x %c %d", (a < 1) ? '-' : '\0',
                 bc, cc, abs(c));
        else if (b == 0)
          printf("\nThe equation is y = %cx^2 %c %d", (a < 1) ? '-' : '\0', cc,
                 abs(c));
        else
          printf("\nThe equation is y = %cx^2 %c %dx %c %d",
                 (a < 1) ? '-' : '\0', bc, abs(b), cc, abs(c));
      } else {
        if (abs(b) == 1)
          printf("\nThe equation is y = %cx^2 %c x", (a < 1) ? '-' : '\0', bc);
        else if (b == 0)
          printf("\nThe equation is y = %cx^2", (a < 1) ? '-' : '\0');
        else
          printf("\nThe equation is y = %cx^2 %c %dx", (a < 1) ? '-' : '\0', bc,
                 abs(b));
      }
    }
    if (a > 1) {
      if (c != 0) {
        if (abs(b) == 1)
          printf("\nThe equation is y = %dx^2 %c x %c %d", a, bc, cc, abs(c));
        else if (b == 0)
          printf("\nThe equation is y = %dx^2 %c %d", a, cc, abs(c));
        else
          printf("\nThe equation is y = %dx^2 %c %dx %c %d", a, bc, abs(b), cc,
                 abs(c));
      } else {
        if (abs(b) == 1)
          printf("\nThe equation is y = %dx^2 %c x", a, bc);
        else if (b == 0)
          printf("\nThe equation is y = %dx^2", a);
        else
          printf("\nThe equation is y = %dx^2 %c %dx", a, bc, abs(b));
      }
    }
    if (a < 0)
      printf("\nThe parabola opens downward.");
    else if (a > 0)
      printf("\nThe parabola opens upward.");
    if (rcRoot == 1) {
      printf("\nThe parabola has two real roots.");
      printf("\nRoots are %.3f and %.3f", r1, r2);
    } else {
      printf("\nThe parabola has two complex roots.");
      printf("\nRoots are %.3f + %.3fi and %.3f - %.3fi", r1, fabs(r2), r1,
             fabs(r2));
    }
    break;
  case 2:
    if (c == 0) {
      if (abs(b) == 1)
        printf("\nThe equation is y = %cx", (b == -1) ? '-' : '\0');
      else
        printf("\nThe equation is y = %dx", b);
    } else {
      if (abs(b) == 1)
        printf("\nThe equation is y = %cx %c %d", (b < 0) ? '-' : '\0', cc,
               abs(c));
      else
        printf("\nThe equation is y = %dx %c %d", b, cc, abs(c));
    }
    printf("\nThe line has a zero at x = %.3f", r1);
    break;
  case 3:
    printf("\nThe equation is y = %d", c);
    printf("\nThe line has no zeros.");
    break;
  }
  printf("\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n\n");
  return;
}


x86 assembly (clang, -O0):
<printScreen>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
movsd  %xmm0,-0x20(%rbp)
movsd  %xmm1,-0x28(%rbp)
mov    -0x8(%rbp),%eax
shr    $0x1f,%eax
add    %al,%al
add    $0x2b,%al
mov    %al,-0x29(%rbp)
mov    -0xc(%rbp),%eax
shr    $0x1f,%eax
add    %al,%al
add    $0x2b,%al
mov    %al,-0x2a(%rbp)
lea    0xeaa(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x10(%rbp),%eax
mov    %eax,-0x30(%rbp)
sub    $0x1,%eax
je     11a3 <printScreen+0x83>
jmp    1181 <printScreen+0x61>
mov    -0x30(%rbp),%eax
sub    $0x2,%eax
je     174a <printScreen+0x62a>
jmp    1192 <printScreen+0x72>
mov    -0x30(%rbp),%eax
sub    $0x3,%eax
je     184c <printScreen+0x72c>
jmp    186b <printScreen+0x74b>
cmpl   $0xffffffff,-0x4(%rbp)
jge    1311 <printScreen+0x1f1>
cmpl   $0x0,-0xc(%rbp)
je     128c <printScreen+0x16c>
mov    -0x8(%rbp),%edi
call   1030 <abs@plt>
cmp    $0x1,%eax
jne    1203 <printScreen+0xe3>
mov    -0x4(%rbp),%eax
mov    %eax,-0x3c(%rbp)
movsbl -0x29(%rbp),%eax
mov    %eax,-0x38(%rbp)
movsbl -0x2a(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <abs@plt>
mov    -0x3c(%rbp),%esi
mov    -0x38(%rbp),%edx
mov    -0x34(%rbp),%ecx
mov    %eax,%r8d
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1287 <printScreen+0x167>
cmpl   $0x0,-0x8(%rbp)
jne    123d <printScreen+0x11d>
mov    -0x4(%rbp),%eax
mov    %eax,-0x44(%rbp)
movsbl -0x2a(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <abs@plt>
mov    -0x44(%rbp),%esi
mov    -0x40(%rbp),%edx
mov    %eax,%ecx
lea    0xe34(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1282 <printScreen+0x162>
mov    -0x4(%rbp),%eax
mov    %eax,-0x54(%rbp)
movsbl -0x29(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <abs@plt>
mov    %eax,-0x4c(%rbp)
movsbl -0x2a(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <abs@plt>
mov    -0x54(%rbp),%esi
mov    -0x50(%rbp),%edx
mov    -0x4c(%rbp),%ecx
mov    -0x48(%rbp),%r8d
mov    %eax,%r9d
lea    0xe0b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1287 <printScreen+0x167>
jmp    130c <printScreen+0x1ec>
mov    -0x8(%rbp),%edi
call   1030 <abs@plt>
cmp    $0x1,%eax
jne    12b7 <printScreen+0x197>
mov    -0x4(%rbp),%esi
movsbl -0x29(%rbp),%edx
lea    0xe03(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1307 <printScreen+0x1e7>
cmpl   $0x0,-0x8(%rbp)
jne    12d7 <printScreen+0x1b7>
mov    -0x4(%rbp),%esi
lea    0xe03(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1302 <printScreen+0x1e2>
mov    -0x4(%rbp),%eax
mov    %eax,-0x5c(%rbp)
movsbl -0x29(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <abs@plt>
mov    -0x5c(%rbp),%esi
mov    -0x58(%rbp),%edx
mov    %eax,%ecx
lea    0xdee(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1307 <printScreen+0x1e7>
jmp    130c <printScreen+0x1ec>
jmp    1311 <printScreen+0x1f1>
mov    -0x4(%rbp),%edi
call   1030 <abs@plt>
cmp    $0x1,%eax
jne    14e0 <printScreen+0x3c0>
cmpl   $0x0,-0xc(%rbp)
je     1428 <printScreen+0x308>
mov    -0x8(%rbp),%edi
call   1030 <abs@plt>
cmp    $0x1,%eax
jne    1385 <printScreen+0x265>
mov    -0x4(%rbp),%edx
xor    %eax,%eax
mov    $0x2d,%ecx
cmp    $0x1,%edx
cmovl  %ecx,%eax
mov    %eax,-0x68(%rbp)
movsbl -0x29(%rbp),%eax
mov    %eax,-0x64(%rbp)
movsbl -0x2a(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <abs@plt>
mov    -0x68(%rbp),%esi
mov    -0x64(%rbp),%edx
mov    -0x60(%rbp),%ecx
mov    %eax,%r8d
lea    0xd92(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1423 <printScreen+0x303>
cmpl   $0x0,-0x8(%rbp)
jne    13cc <printScreen+0x2ac>
mov    -0x4(%rbp),%edx
xor    %eax,%eax
mov    $0x2d,%ecx
cmp    $0x1,%edx
cmovl  %ecx,%eax
mov    %eax,-0x70(%rbp)
movsbl -0x2a(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <abs@plt>
mov    -0x70(%rbp),%esi
mov    -0x6c(%rbp),%edx
mov    %eax,%ecx
lea    0xd71(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    141e <printScreen+0x2fe>
mov    -0x4(%rbp),%edx
xor    %eax,%eax
mov    $0x2d,%ecx
cmp    $0x1,%edx
cmovl  %ecx,%eax
mov    %eax,-0x80(%rbp)
movsbl -0x29(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <abs@plt>
mov    %eax,-0x78(%rbp)
movsbl -0x2a(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <abs@plt>
mov    -0x80(%rbp),%esi
mov    -0x7c(%rbp),%edx
mov    -0x78(%rbp),%ecx
mov    -0x74(%rbp),%r8d
mov    %eax,%r9d
lea    0xd3b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1423 <printScreen+0x303>
jmp    14db <printScreen+0x3bb>
mov    -0x8(%rbp),%edi
call   1030 <abs@plt>
cmp    $0x1,%eax
jne    1460 <printScreen+0x340>
mov    -0x4(%rbp),%ecx
xor    %esi,%esi
mov    $0x2d,%eax
cmp    $0x1,%ecx
cmovl  %eax,%esi
movsbl -0x29(%rbp),%edx
lea    0xd26(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14d6 <printScreen+0x3b6>
cmpl   $0x0,-0x8(%rbp)
jne    148d <printScreen+0x36d>
mov    -0x4(%rbp),%ecx
xor    %esi,%esi
mov    $0x2d,%eax
cmp    $0x1,%ecx
cmovl  %eax,%esi
lea    0xd19(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14d1 <printScreen+0x3b1>
mov    -0x4(%rbp),%edx
xor    %eax,%eax
mov    $0x2d,%ecx
cmp    $0x1,%edx
cmovl  %ecx,%eax
mov    %eax,-0x88(%rbp)
movsbl -0x29(%rbp),%eax
mov    %eax,-0x84(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <abs@plt>
mov    -0x88(%rbp),%esi
mov    -0x84(%rbp),%edx
mov    %eax,%ecx
lea    0xceb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14d6 <printScreen+0x3b6>
jmp    14db <printScreen+0x3bb>
jmp    14e0 <printScreen+0x3c0>
cmpl   $0x1,-0x4(%rbp)
jle    1690 <printScreen+0x570>
cmpl   $0x0,-0xc(%rbp)
je     15ff <printScreen+0x4df>
mov    -0x8(%rbp),%edi
call   1030 <abs@plt>
cmp    $0x1,%eax
jne    1552 <printScreen+0x432>
mov    -0x4(%rbp),%eax
mov    %eax,-0x94(%rbp)
movsbl -0x29(%rbp),%eax
mov    %eax,-0x90(%rbp)
movsbl -0x2a(%rbp),%eax
mov    %eax,-0x8c(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <abs@plt>
mov    -0x94(%rbp),%esi
mov    -0x90(%rbp),%edx
mov    -0x8c(%rbp),%ecx
mov    %eax,%r8d
lea    0xaf9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    15fa <printScreen+0x4da>
cmpl   $0x0,-0x8(%rbp)
jne    1598 <printScreen+0x478>
mov    -0x4(%rbp),%eax
mov    %eax,-0x9c(%rbp)
movsbl -0x2a(%rbp),%eax
mov    %eax,-0x98(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <abs@plt>
mov    -0x9c(%rbp),%esi
mov    -0x98(%rbp),%edx
mov    %eax,%ecx
lea    0xad9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    15f5 <printScreen+0x4d5>
mov    -0x4(%rbp),%eax
mov    %eax,-0xac(%rbp)
movsbl -0x29(%rbp),%eax
mov    %eax,-0xa8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <abs@plt>
mov    %eax,-0xa4(%rbp)
movsbl -0x2a(%rbp),%eax
mov    %eax,-0xa0(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <abs@plt>
mov    -0xac(%rbp),%esi
mov    -0xa8(%rbp),%edx
mov    -0xa4(%rbp),%ecx
mov    -0xa0(%rbp),%r8d
mov    %eax,%r9d
lea    0xa98(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    15fa <printScreen+0x4da>
jmp    168b <printScreen+0x56b>
mov    -0x8(%rbp),%edi
call   1030 <abs@plt>
cmp    $0x1,%eax
jne    162a <printScreen+0x50a>
mov    -0x4(%rbp),%esi
movsbl -0x29(%rbp),%edx
lea    0xa90(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1686 <printScreen+0x566>
cmpl   $0x0,-0x8(%rbp)
jne    164a <printScreen+0x52a>
mov    -0x4(%rbp),%esi
lea    0xa90(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1681 <printScreen+0x561>
mov    -0x4(%rbp),%eax
mov    %eax,-0xb4(%rbp)
movsbl -0x29(%rbp),%eax
mov    %eax,-0xb0(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <abs@plt>
mov    -0xb4(%rbp),%esi
mov    -0xb0(%rbp),%edx
mov    %eax,%ecx
lea    0xa6f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1686 <printScreen+0x566>
jmp    168b <printScreen+0x56b>
jmp    1690 <printScreen+0x570>
cmpl   $0x0,-0x4(%rbp)
jge    16ad <printScreen+0x58d>
lea    0xb36(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    16ca <printScreen+0x5aa>
cmpl   $0x0,-0x4(%rbp)
jle    16c5 <printScreen+0x5a5>
lea    0xb37(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    16ca <printScreen+0x5aa>
cmpl   $0x1,-0x14(%rbp)
jne    16ff <printScreen+0x5df>
lea    0xb36(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
lea    0xb40(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
jmp    1745 <printScreen+0x625>
lea    0xb46(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movaps 0x8e2(%rip),%xmm2
pand   %xmm2,%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
movaps 0x8cd(%rip),%xmm4
pand   %xmm4,%xmm3
lea    0xb33(%rip),%rdi
mov    $0x4,%al
call   1040 <printf@plt>
jmp    186b <printScreen+0x74b>
cmpl   $0x0,-0xc(%rbp)
jne    179e <printScreen+0x67e>
mov    -0x8(%rbp),%edi
call   1030 <abs@plt>
cmp    $0x1,%eax
jne    1788 <printScreen+0x668>
mov    -0x8(%rbp),%ecx
xor    %esi,%esi
mov    $0x2d,%eax
cmp    $0xffffffff,%ecx
cmove  %eax,%esi
lea    0xb1e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1799 <printScreen+0x679>
mov    -0x8(%rbp),%esi
lea    0xb21(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1834 <printScreen+0x714>
mov    -0x8(%rbp),%edi
call   1030 <abs@plt>
cmp    $0x1,%eax
jne    17f8 <printScreen+0x6d8>
mov    -0x8(%rbp),%edx
xor    %eax,%eax
mov    $0x2d,%ecx
cmp    $0x0,%edx
cmovl  %ecx,%eax
mov    %eax,-0xbc(%rbp)
movsbl -0x2a(%rbp),%eax
mov    %eax,-0xb8(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <abs@plt>
mov    -0xbc(%rbp),%esi
mov    -0xb8(%rbp),%edx
mov    %eax,%ecx
lea    0xae0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    182f <printScreen+0x70f>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc4(%rbp)
movsbl -0x2a(%rbp),%eax
mov    %eax,-0xc0(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <abs@plt>
mov    -0xc4(%rbp),%esi
mov    -0xc0(%rbp),%edx
mov    %eax,%ecx
lea    0xac3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1834 <printScreen+0x714>
movsd  -0x20(%rbp),%xmm0
lea    0xaca(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    186b <printScreen+0x74b>
mov    -0xc(%rbp),%esi
lea    0xad5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xadf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xae9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printScreen>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
movaps %xmm1,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
mov    %r8d,%r14d
mov    %ecx,%ebx
mov    %edx,%r13d
mov    %esi,%r12d
mov    %edi,%r15d
lea    0xec2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x3,%ebx
je     11d0 <printScreen+0xb0>
mov    %r13d,%ebp
shr    $0x1f,%ebp
add    %bpl,%bpl
add    $0x2b,%bpl
cmp    $0x2,%ebx
je     11f4 <printScreen+0xd4>
cmp    $0x1,%ebx
jne    156f <printScreen+0x44f>
mov    %r12d,%ebx
shr    $0x1f,%ebx
add    %bl,%bl
add    $0x2b,%bl
cmp    $0xfffffffe,%r15d
jg     1314 <printScreen+0x1f4>
mov    %r12d,%ecx
neg    %ecx
cmovs  %r12d,%ecx
test   %r13d,%r13d
je     1261 <printScreen+0x141>
cmp    $0x1,%ecx
jne    12a9 <printScreen+0x189>
movzbl %bl,%edx
movzbl %bpl,%ecx
mov    %r13d,%r8d
neg    %r8d
cmovs  %r13d,%r8d
lea    0xe7e(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1314 <printScreen+0x1f4>
lea    0x1154(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x115b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    156f <printScreen+0x44f>
mov    %r12d,%eax
neg    %eax
cmovs  %r12d,%eax
test   %r13d,%r13d
je     1225 <printScreen+0x105>
cmp    $0x1,%eax
jne    1241 <printScreen+0x121>
sar    $0x1f,%r12d
and    $0x2d,%r12d
movzbl %bpl,%edx
mov    %r13d,%ecx
neg    %ecx
cmovs  %r13d,%ecx
lea    0x10a9(%rip),%rdi
jmp    1255 <printScreen+0x135>
cmp    $0x1,%eax
jne    127f <printScreen+0x15f>
xor    %eax,%eax
cmp    $0xffffffff,%r12d
mov    $0x2d,%esi
cmovne %eax,%esi
lea    0x105b(%rip),%rdi
jmp    1289 <printScreen+0x169>
movzbl %bpl,%edx
mov    %r13d,%ecx
neg    %ecx
cmovs  %r13d,%ecx
lea    0x1096(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1290 <printScreen+0x170>
cmp    $0x1,%ecx
jne    12d2 <printScreen+0x1b2>
movzbl %bl,%edx
lea    0xe3e(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1314 <printScreen+0x1f4>
lea    0x102d(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0x8(%rsp),%xmm0
lea    0x106d(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    156f <printScreen+0x44f>
test   %r12d,%r12d
je     12e3 <printScreen+0x1c3>
movzbl %bl,%edx
movzbl %bpl,%r8d
mov    %r13d,%r9d
neg    %r9d
cmovs  %r13d,%r9d
lea    0xdc0(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1314 <printScreen+0x1f4>
test   %r12d,%r12d
je     1303 <printScreen+0x1e3>
movzbl %bl,%edx
lea    0xe08(%rip),%rdi
jmp    12f7 <printScreen+0x1d7>
movzbl %bpl,%edx
mov    %r13d,%ecx
neg    %ecx
cmovs  %r13d,%ecx
lea    0xd6e(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1314 <printScreen+0x1f4>
lea    0xdc4(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15d,%eax
neg    %eax
cmovs  %r15d,%eax
cmp    $0x1,%eax
jne    1419 <printScreen+0x2f9>
mov    %r12d,%ecx
neg    %ecx
cmovs  %r12d,%ecx
xor    %eax,%eax
test   %r13d,%r13d
je     1374 <printScreen+0x254>
cmp    $0x1,%ecx
jne    13a4 <printScreen+0x284>
test   %r15d,%r15d
mov    $0x2d,%esi
cmovg  %eax,%esi
movzbl %bl,%edx
movzbl %bpl,%ecx
mov    %r13d,%r8d
neg    %r8d
cmovs  %r13d,%r8d
lea    0xdad(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x2,%r15d
jge    1423 <printScreen+0x303>
jmp    14ee <printScreen+0x3ce>
cmp    $0x1,%ecx
jne    13de <printScreen+0x2be>
test   %r15d,%r15d
mov    $0x2d,%esi
cmovg  %eax,%esi
movzbl %bl,%edx
lea    0xdec(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x2,%r15d
jge    1423 <printScreen+0x303>
jmp    14ee <printScreen+0x3ce>
test   %r15d,%r15d
mov    $0x2d,%esi
cmovg  %eax,%esi
test   %r12d,%r12d
je     13fe <printScreen+0x2de>
movzbl %bl,%edx
movzbl %bpl,%r8d
mov    %r13d,%r9d
neg    %r9d
cmovs  %r13d,%r9d
lea    0xd86(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x2,%r15d
jge    1423 <printScreen+0x303>
jmp    14ee <printScreen+0x3ce>
test   %r15d,%r15d
mov    $0x2d,%esi
cmovg  %eax,%esi
test   %r12d,%r12d
je     14d6 <printScreen+0x3b6>
movzbl %bl,%edx
lea    0xdb9(%rip),%rdi
jmp    1412 <printScreen+0x2f2>
movzbl %bpl,%edx
mov    %r13d,%ecx
neg    %ecx
cmovs  %r13d,%ecx
lea    0xd1f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x2,%r15d
jl     14ee <printScreen+0x3ce>
mov    %r12d,%ecx
neg    %ecx
cmovs  %r12d,%ecx
test   %r13d,%r13d
je     145d <printScreen+0x33d>
cmp    $0x1,%ecx
jne    1478 <printScreen+0x358>
movzbl %bl,%edx
movzbl %bpl,%ecx
mov    %r13d,%r8d
neg    %r8d
cmovs  %r13d,%r8d
lea    0xbf1(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    14f5 <printScreen+0x3d5>
cmp    $0x1,%ecx
jne    14a1 <printScreen+0x381>
movzbl %bl,%edx
lea    0xc42(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    14f5 <printScreen+0x3d5>
test   %r12d,%r12d
je     14b6 <printScreen+0x396>
movzbl %bl,%edx
movzbl %bpl,%r8d
mov    %r13d,%r9d
neg    %r9d
cmovs  %r13d,%r9d
lea    0xbf1(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    14f5 <printScreen+0x3d5>
test   %r12d,%r12d
je     1589 <printScreen+0x469>
movzbl %bl,%edx
lea    0xc35(%rip),%rdi
jmp    14ca <printScreen+0x3aa>
movzbl %bpl,%edx
mov    %r13d,%ecx
neg    %ecx
cmovs  %r13d,%ecx
lea    0xb9b(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    14f5 <printScreen+0x3d5>
lea    0xcbd(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x2,%r15d
jge    1423 <printScreen+0x303>
test   %r15d,%r15d
js     14fe <printScreen+0x3de>
je     150c <printScreen+0x3ec>
lea    0xcf9(%rip),%rdi
jmp    1505 <printScreen+0x3e5>
lea    0xcd2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x1,%r14d
jne    153b <printScreen+0x41b>
lea    0xcf8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd0c(%rip),%rdi
movsd  0x8(%rsp),%xmm0
movaps 0x10(%rsp),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
jmp    156f <printScreen+0x44f>
lea    0xd0a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movaps 0x10(%rsp),%xmm1
andps  0xaab(%rip),%xmm1
lea    0xd15(%rip),%rdi
movsd  0x8(%rsp),%xmm0
movaps %xmm0,%xmm2
movaps %xmm1,%xmm3
mov    $0x4,%al
call   1040 <printf@plt>
lea    0xde5(%rip),%rdi
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <puts@plt>
lea    0xb3e(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    14f5 <printScreen+0x3d5>

LLVM IR (-O0):
@.str = [47 x i8] c"\0A-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\00"
@.str.1 = [38 x i8] c"\0AThe equation is y = %dx^2 %c x %c %d\00"
@.str.2 = [33 x i8] c"\0AThe equation is y = %dx^2 %c %d\00"
@.str.3 = [40 x i8] c"\0AThe equation is y = %dx^2 %c %dx %c %d\00"
@.str.4 = [32 x i8] c"\0AThe equation is y = %dx^2 %c x\00"
@.str.5 = [27 x i8] c"\0AThe equation is y = %dx^2\00"
@.str.6 = [34 x i8] c"\0AThe equation is y = %dx^2 %c %dx\00"
@.str.7 = [38 x i8] c"\0AThe equation is y = %cx^2 %c x %c %d\00"
@.str.8 = [33 x i8] c"\0AThe equation is y = %cx^2 %c %d\00"
@.str.9 = [40 x i8] c"\0AThe equation is y = %cx^2 %c %dx %c %d\00"
@.str.10 = [32 x i8] c"\0AThe equation is y = %cx^2 %c x\00"
@.str.11 = [27 x i8] c"\0AThe equation is y = %cx^2\00"
@.str.12 = [34 x i8] c"\0AThe equation is y = %cx^2 %c %dx\00"
@.str.13 = [30 x i8] c"\0AThe parabola opens downward.\00"
@.str.14 = [28 x i8] c"\0AThe parabola opens upward.\00"
@.str.15 = [34 x i8] c"\0AThe parabola has two real roots.\00"
@.str.16 = [25 x i8] c"\0ARoots are %.3f and %.3f\00"
@.str.17 = [37 x i8] c"\0AThe parabola has two complex roots.\00"
@.str.18 = [41 x i8] c"\0ARoots are %.3f + %.3fi and %.3f - %.3fi\00"
@.str.19 = [25 x i8] c"\0AThe equation is y = %cx\00"
@.str.20 = [25 x i8] c"\0AThe equation is y = %dx\00"
@.str.21 = [31 x i8] c"\0AThe equation is y = %cx %c %d\00"
@.str.22 = [31 x i8] c"\0AThe equation is y = %dx %c %d\00"
@.str.23 = [33 x i8] c"\0AThe line has a zero at x = %.3f\00"
@.str.24 = [24 x i8] c"\0AThe equation is y = %d\00"
@.str.25 = [24 x i8] c"\0AThe line has no zeros.\00"
@.str.26 = [49 x i8] c"\0A-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\0A\0A\00"
define void @printScreen(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, double %5, double %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca double
%14 = alloca double
%15 = alloca i8
%16 = alloca i8
store i32 %0, i32* %8
store i32 %1, i32* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store double %5, double* %13
store double %6, double* %14
%17 = load i32, i32* %9
%18 = icmp slt i32 %17, 0
%19 = zext i1 %18 to i64
%20 = select i1 %18, i32 45, i32 43
%21 = trunc i32 %20 to i8
store i8 %21, i8* %15
%22 = load i32, i32* %10
%23 = icmp slt i32 %22, 0
%24 = zext i1 %23 to i64
%25 = select i1 %23, i32 45, i32 43
%26 = trunc i32 %25 to i8
store i8 %26, i8* %16
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
%28 = load i32, i32* %11
switch i32 %28, label %324 [
i32 1, label %29
i32 2, label %278
i32 3, label %320
]
29: ; preds = %7
%30 = load i32, i32* %8
%31 = icmp slt i32 %30, -1
br i1 %31, label %32, label %96
32: ; preds = %29
%33 = load i32, i32* %10
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %71
35: ; preds = %32
%36 = load i32, i32* %9
%37 = call i32 @abs(i32 %36)
%38 = icmp eq i32 %37, 1
br i1 %38, label %39, label %48
39: ; preds = %35
%40 = load i32, i32* %8
%41 = load i8, i8* %15
%42 = sext i8 %41 to i32
%43 = load i8, i8* %16
%44 = sext i8 %43 to i32
%45 = load i32, i32* %10
%46 = call i32 @abs(i32 %45)
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i32 %40, i32 %42, i32 %44, i32 %46)
br label %70
48: ; preds = %35
%49 = load i32, i32* %9
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %58
51: ; preds = %48
%52 = load i32, i32* %8
%53 = load i8, i8* %16
%54 = sext i8 %53 to i32
%55 = load i32, i32* %10
%56 = call i32 @abs(i32 %55)
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %52, i32 %54, i32 %56)
br label %69
58: ; preds = %48
%59 = load i32, i32* %8
%60 = load i8, i8* %15
%61 = sext i8 %60 to i32
%62 = load i32, i32* %9
%63 = call i32 @abs(i32 %62)
%64 = load i8, i8* %16
%65 = sext i8 %64 to i32
%66 = load i32, i32* %10
%67 = call i32 @abs(i32 %66)
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0), i32 %59, i32 %61, i32 %63, i32 %65, i32 %67)
br label %69
69: ; preds = %58, %51
br label %70
70: ; preds = %69, %39
br label %95
71: ; preds = %32
%72 = load i32, i32* %9
%73 = call i32 @abs(i32 %72)
%74 = icmp eq i32 %73, 1
br i1 %74, label %75, label %80
75: ; preds = %71
%76 = load i32, i32* %8
%77 = load i8, i8* %15
%78 = sext i8 %77 to i32
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 %76, i32 %78)
br label %94
80: ; preds = %71
%81 = load i32, i32* %9
%82 = icmp eq i32 %81, 0
br i1 %82, label %83, label %86
83: ; preds = %80
%84 = load i32, i32* %8
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i32 %84)
br label %93
86: ; preds = %80
%87 = load i32, i32* %8
%88 = load i8, i8* %15
%89 = sext i8 %88 to i32
%90 = load i32, i32* %9
%91 = call i32 @abs(i32 %90)
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 %87, i32 %89, i32 %91)
br label %93
93: ; preds = %86, %83
br label %94
94: ; preds = %93, %75
br label %95
95: ; preds = %94, %70
br label %96
96: ; preds = %95, %29
%97 = load i32, i32* %8
%98 = call i32 @abs(i32 %97)
%99 = icmp eq i32 %98, 1
br i1 %99, label %100, label %182
100: ; preds = %96
%101 = load i32, i32* %10
%102 = icmp ne i32 %101, 0
br i1 %102, label %103, label %148
103: ; preds = %100
%104 = load i32, i32* %9
%105 = call i32 @abs(i32 %104)
%106 = icmp eq i32 %105, 1
br i1 %106, label %107, label %119
107: ; preds = %103
%108 = load i32, i32* %8
%109 = icmp slt i32 %108, 1
%110 = zext i1 %109 to i64
%111 = select i1 %109, i32 45, i32 0
%112 = load i8, i8* %15
%113 = sext i8 %112 to i32
%114 = load i8, i8* %16
%115 = sext i8 %114 to i32
%116 = load i32, i32* %10
%117 = call i32 @abs(i32 %116)
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0), i32 %111, i32 %113, i32 %115, i32 %117)
br label %147
119: ; preds = %103
%120 = load i32, i32* %9
%121 = icmp eq i32 %120, 0
br i1 %121, label %122, label %132
122: ; preds = %119
%123 = load i32, i32* %8
%124 = icmp slt i32 %123, 1
%125 = zext i1 %124 to i64
%126 = select i1 %124, i32 45, i32 0
%127 = load i8, i8* %16
%128 = sext i8 %127 to i32
%129 = load i32, i32* %10
%130 = call i32 @abs(i32 %129)
%131 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0), i32 %126, i32 %128, i32 %130)
br label %146
132: ; preds = %119
%133 = load i32, i32* %8
%134 = icmp slt i32 %133, 1
%135 = zext i1 %134 to i64
%136 = select i1 %134, i32 45, i32 0
%137 = load i8, i8* %15
%138 = sext i8 %137 to i32
%139 = load i32, i32* %9
%140 = call i32 @abs(i32 %139)
%141 = load i8, i8* %16
%142 = sext i8 %141 to i32
%143 = load i32, i32* %10
%144 = call i32 @abs(i32 %143)
%145 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i32 %136, i32 %138, i32 %140, i32 %142, i32 %144)
br label %146
146: ; preds = %132, %122
br label %147
147: ; preds = %146, %107
br label %181
148: ; preds = %100
%149 = load i32, i32* %9
%150 = call i32 @abs(i32 %149)
%151 = icmp eq i32 %150, 1
br i1 %151, label %152, label %160
152: ; preds = %148
%153 = load i32, i32* %8
%154 = icmp slt i32 %153, 1
%155 = zext i1 %154 to i64
%156 = select i1 %154, i32 45, i32 0
%157 = load i8, i8* %15
%158 = sext i8 %157 to i32
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0), i32 %156, i32 %158)
br label %180
160: ; preds = %148
%161 = load i32, i32* %9
%162 = icmp eq i32 %161, 0
br i1 %162, label %163, label %169
163: ; preds = %160
%164 = load i32, i32* %8
%165 = icmp slt i32 %164, 1
%166 = zext i1 %165 to i64
%167 = select i1 %165, i32 45, i32 0
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i32 %167)
br label %179
169: ; preds = %160
%170 = load i32, i32* %8
%171 = icmp slt i32 %170, 1
%172 = zext i1 %171 to i64
%173 = select i1 %171, i32 45, i32 0
%174 = load i8, i8* %15
%175 = sext i8 %174 to i32
%176 = load i32, i32* %9
%177 = call i32 @abs(i32 %176)
%178 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0), i32 %173, i32 %175, i32 %177)
br label %179
179: ; preds = %169, %163
br label %180
180: ; preds = %179, %152
br label %181
181: ; preds = %180, %147
br label %182
182: ; preds = %181, %96
%183 = load i32, i32* %8
%184 = icmp sgt i32 %183, 1
br i1 %184, label %185, label %249
185: ; preds = %182
%186 = load i32, i32* %10
%187 = icmp ne i32 %186, 0
br i1 %187, label %188, label %224
188: ; preds = %185
%189 = load i32, i32* %9
%190 = call i32 @abs(i32 %189)
%191 = icmp eq i32 %190, 1
br i1 %191, label %192, label %201
192: ; preds = %188
%193 = load i32, i32* %8
%194 = load i8, i8* %15
%195 = sext i8 %194 to i32
%196 = load i8, i8* %16
%197 = sext i8 %196 to i32
%198 = load i32, i32* %10
%199 = call i32 @abs(i32 %198)
%200 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i32 %193, i32 %195, i32 %197, i32 %199)
br label %223
201: ; preds = %188
%202 = load i32, i32* %9
%203 = icmp eq i32 %202, 0
br i1 %203, label %204, label %211
204: ; preds = %201
%205 = load i32, i32* %8
%206 = load i8, i8* %16
%207 = sext i8 %206 to i32
%208 = load i32, i32* %10
%209 = call i32 @abs(i32 %208)
%210 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %205, i32 %207, i32 %209)
br label %222
211: ; preds = %201
%212 = load i32, i32* %8
%213 = load i8, i8* %15
%214 = sext i8 %213 to i32
%215 = load i32, i32* %9
%216 = call i32 @abs(i32 %215)
%217 = load i8, i8* %16
%218 = sext i8 %217 to i32
%219 = load i32, i32* %10
%220 = call i32 @abs(i32 %219)
%221 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0), i32 %212, i32 %214, i32 %216, i32 %218, i32 %220)
br label %222
222: ; preds = %211, %204
br label %223
223: ; preds = %222, %192
br label %248
224: ; preds = %185
%225 = load i32, i32* %9
%226 = call i32 @abs(i32 %225)
%227 = icmp eq i32 %226, 1
br i1 %227, label %228, label %233
228: ; preds = %224
%229 = load i32, i32* %8
%230 = load i8, i8* %15
%231 = sext i8 %230 to i32
%232 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 %229, i32 %231)
br label %247
233: ; preds = %224
%234 = load i32, i32* %9
%235 = icmp eq i32 %234, 0
br i1 %235, label %236, label %239
236: ; preds = %233
%237 = load i32, i32* %8
%238 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i32 %237)
br label %246
239: ; preds = %233
%240 = load i32, i32* %8
%241 = load i8, i8* %15
%242 = sext i8 %241 to i32
%243 = load i32, i32* %9
%244 = call i32 @abs(i32 %243)
%245 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 %240, i32 %242, i32 %244)
br label %246
246: ; preds = %239, %236
br label %247
247: ; preds = %246, %228
br label %248
248: ; preds = %247, %223
br label %249
249: ; preds = %248, %182
%250 = load i32, i32* %8
%251 = icmp slt i32 %250, 0
br i1 %251, label %252, label %254
252: ; preds = %249
%253 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.13, i64 0, i64 0))
br label %260
254: ; preds = %249
%255 = load i32, i32* %8
%256 = icmp sgt i32 %255, 0
br i1 %256, label %257, label %259
257: ; preds = %254
%258 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0))
br label %259
259: ; preds = %257, %254
br label %260
260: ; preds = %259, %252
%261 = load i32, i32* %12
%262 = icmp eq i32 %261, 1
br i1 %262, label %263, label %268
263: ; preds = %260
%264 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.15, i64 0, i64 0))
%265 = load double, double* %13
%266 = load double, double* %14
%267 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.16, i64 0, i64 0), double %265, double %266)
br label %277
268: ; preds = %260
%269 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.17, i64 0, i64 0))
%270 = load double, double* %13
%271 = load double, double* %14
%272 = call double @llvm.fabs.f64(double %271)
%273 = load double, double* %13
%274 = load double, double* %14
%275 = call double @llvm.fabs.f64(double %274)
%276 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.18, i64 0, i64 0), double %270, double %272, double %273, double %275)
br label %277
277: ; preds = %268, %263
br label %324
278: ; preds = %7
%279 = load i32, i32* %10
%280 = icmp eq i32 %279, 0
br i1 %280, label %281, label %295
281: ; preds = %278
%282 = load i32, i32* %9
%283 = call i32 @abs(i32 %282)
%284 = icmp eq i32 %283, 1
br i1 %284, label %285, label %291
285: ; preds = %281
%286 = load i32, i32* %9
%287 = icmp eq i32 %286, -1
%288 = zext i1 %287 to i64
%289 = select i1 %287, i32 45, i32 0
%290 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0), i32 %289)
br label %294
291: ; preds = %281
%292 = load i32, i32* %9
%293 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.20, i64 0, i64 0), i32 %292)
br label %294
294: ; preds = %291, %285
br label %317
295: ; preds = %278
%296 = load i32, i32* %9
%297 = call i32 @abs(i32 %296)
%298 = icmp eq i32 %297, 1
br i1 %298, label %299, label %309
299: ; preds = %295
%300 = load i32, i32* %9
%301 = icmp slt i32 %300, 0
%302 = zext i1 %301 to i64
%303 = select i1 %301, i32 45, i32 0
%304 = load i8, i8* %16
%305 = sext i8 %304 to i32
%306 = load i32, i32* %10
%307 = call i32 @abs(i32 %306)
%308 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.21, i64 0, i64 0), i32 %303, i32 %305, i32 %307)
br label %316
309: ; preds = %295
%310 = load i32, i32* %9
%311 = load i8, i8* %16
%312 = sext i8 %311 to i32
%313 = load i32, i32* %10
%314 = call i32 @abs(i32 %313)
%315 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.22, i64 0, i64 0), i32 %310, i32 %312, i32 %314)
br label %316
316: ; preds = %309, %299
br label %317
317: ; preds = %316, %294
%318 = load double, double* %13
%319 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.23, i64 0, i64 0), double %318)
br label %324
320: ; preds = %7
%321 = load i32, i32* %10
%322 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.24, i64 0, i64 0), i32 %321)
%323 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.25, i64 0, i64 0))
br label %324
324: ; preds = %7, %320, %317, %277
%325 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.26, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [47 x i8] c"\0A-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\00"
@.str.1 = [38 x i8] c"\0AThe equation is y = %dx^2 %c x %c %d\00"
@.str.2 = [33 x i8] c"\0AThe equation is y = %dx^2 %c %d\00"
@.str.3 = [40 x i8] c"\0AThe equation is y = %dx^2 %c %dx %c %d\00"
@.str.4 = [32 x i8] c"\0AThe equation is y = %dx^2 %c x\00"
@.str.5 = [27 x i8] c"\0AThe equation is y = %dx^2\00"
@.str.6 = [34 x i8] c"\0AThe equation is y = %dx^2 %c %dx\00"
@.str.7 = [38 x i8] c"\0AThe equation is y = %cx^2 %c x %c %d\00"
@.str.8 = [33 x i8] c"\0AThe equation is y = %cx^2 %c %d\00"
@.str.9 = [40 x i8] c"\0AThe equation is y = %cx^2 %c %dx %c %d\00"
@.str.10 = [32 x i8] c"\0AThe equation is y = %cx^2 %c x\00"
@.str.11 = [27 x i8] c"\0AThe equation is y = %cx^2\00"
@.str.12 = [34 x i8] c"\0AThe equation is y = %cx^2 %c %dx\00"
@.str.13 = [30 x i8] c"\0AThe parabola opens downward.\00"
@.str.14 = [28 x i8] c"\0AThe parabola opens upward.\00"
@.str.15 = [34 x i8] c"\0AThe parabola has two real roots.\00"
@.str.16 = [25 x i8] c"\0ARoots are %.3f and %.3f\00"
@.str.17 = [37 x i8] c"\0AThe parabola has two complex roots.\00"
@.str.18 = [41 x i8] c"\0ARoots are %.3f + %.3fi and %.3f - %.3fi\00"
@.str.19 = [25 x i8] c"\0AThe equation is y = %cx\00"
@.str.20 = [25 x i8] c"\0AThe equation is y = %dx\00"
@.str.21 = [31 x i8] c"\0AThe equation is y = %cx %c %d\00"
@.str.22 = [31 x i8] c"\0AThe equation is y = %dx %c %d\00"
@.str.23 = [33 x i8] c"\0AThe line has a zero at x = %.3f\00"
@.str.24 = [24 x i8] c"\0AThe equation is y = %d\00"
@.str.25 = [24 x i8] c"\0AThe line has no zeros.\00"
@str = [48 x i8] c"\0A-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\0A\00"
define void @printScreen(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, double %5, double %6) {
%8 = icmp slt i32 %1, 0
%9 = select i1 %8, i8 45, i8 43
%10 = icmp slt i32 %2, 0
%11 = select i1 %10, i8 45, i8 43
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
switch i32 %3, label %166 [
i32 1, label %13
i32 2, label %140
i32 3, label %163
]
13: ; preds = %7
%14 = icmp slt i32 %0, -1
br i1 %14, label %15, label %47
15: ; preds = %13
%16 = icmp eq i32 %2, 0
%17 = tail call i32 @llvm.abs.i32(i32 %1, i1 true)
%18 = icmp eq i32 %17, 1
br i1 %16, label %36, label %19
19: ; preds = %15
br i1 %18, label %20, label %25
20: ; preds = %19
%21 = zext i8 %9 to i32
%22 = zext i8 %11 to i32
%23 = tail call i32 @llvm.abs.i32(i32 %2, i1 true)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i32 %0, i32 %21, i32 %22, i32 %23)
br label %47
25: ; preds = %19
%26 = icmp eq i32 %1, 0
br i1 %26, label %27, label %31
27: ; preds = %25
%28 = zext i8 %11 to i32
%29 = tail call i32 @llvm.abs.i32(i32 %2, i1 true)
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %0, i32 %28, i32 %29)
br label %47
31: ; preds = %25
%32 = zext i8 %9 to i32
%33 = zext i8 %11 to i32
%34 = tail call i32 @llvm.abs.i32(i32 %2, i1 true)
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0), i32 %0, i32 %32, i32 %17, i32 %33, i32 %34)
br label %47
36: ; preds = %15
br i1 %18, label %37, label %40
37: ; preds = %36
%38 = zext i8 %9 to i32
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 %0, i32 %38)
br label %47
40: ; preds = %36
%41 = icmp eq i32 %1, 0
br i1 %41, label %42, label %44
42: ; preds = %40
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i32 %0)
br label %47
44: ; preds = %40
%45 = zext i8 %9 to i32
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 %0, i32 %45, i32 %17)
br label %47
47: ; preds = %27, %31, %20, %42, %44, %37, %13
%48 = tail call i32 @llvm.abs.i32(i32 %0, i1 true)
%49 = icmp eq i32 %48, 1
br i1 %49, label %50, label %90
50: ; preds = %47
%51 = icmp eq i32 %2, 0
%52 = tail call i32 @llvm.abs.i32(i32 %1, i1 true)
%53 = icmp eq i32 %52, 1
br i1 %51, label %75, label %54
54: ; preds = %50
br i1 %53, label %55, label %62
55: ; preds = %54
%56 = icmp sgt i32 %0, 0
%57 = select i1 %56, i32 0, i32 45
%58 = zext i8 %9 to i32
%59 = zext i8 %11 to i32
%60 = tail call i32 @llvm.abs.i32(i32 %2, i1 true)
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0), i32 %57, i32 %58, i32 %59, i32 %60)
br label %90
62: ; preds = %54
%63 = icmp eq i32 %1, 0
%64 = icmp sgt i32 %0, 0
%65 = select i1 %64, i32 0, i32 45
br i1 %63, label %66, label %70
66: ; preds = %62
%67 = zext i8 %11 to i32
%68 = tail call i32 @llvm.abs.i32(i32 %2, i1 true)
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0), i32 %65, i32 %67, i32 %68)
br label %90
70: ; preds = %62
%71 = zext i8 %9 to i32
%72 = zext i8 %11 to i32
%73 = tail call i32 @llvm.abs.i32(i32 %2, i1 true)
%74 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i32 %65, i32 %71, i32 %52, i32 %72, i32 %73)
br label %90
75: ; preds = %50
br i1 %53, label %76, label %81
76: ; preds = %75
%77 = icmp sgt i32 %0, 0
%78 = select i1 %77, i32 0, i32 45
%79 = zext i8 %9 to i32
%80 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0), i32 %78, i32 %79)
br label %90
81: ; preds = %75
%82 = icmp eq i32 %1, 0
%83 = icmp sgt i32 %0, 0
%84 = select i1 %83, i32 0, i32 45
br i1 %82, label %85, label %87
85: ; preds = %81
%86 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i32 %84)
br label %90
87: ; preds = %81
%88 = zext i8 %9 to i32
%89 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0), i32 %84, i32 %88, i32 %52)
br label %90
90: ; preds = %66, %70, %55, %85, %87, %76, %47
%91 = icmp sgt i32 %0, 1
br i1 %91, label %92, label %124
92: ; preds = %90
%93 = icmp eq i32 %2, 0
%94 = tail call i32 @llvm.abs.i32(i32 %1, i1 true)
%95 = icmp eq i32 %94, 1
br i1 %93, label %113, label %96
96: ; preds = %92
br i1 %95, label %97, label %102
97: ; preds = %96
%98 = zext i8 %9 to i32
%99 = zext i8 %11 to i32
%100 = tail call i32 @llvm.abs.i32(i32 %2, i1 true)
%101 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i32 %0, i32 %98, i32 %99, i32 %100)
br label %128
102: ; preds = %96
%103 = icmp eq i32 %1, 0
br i1 %103, label %104, label %108
104: ; preds = %102
%105 = zext i8 %11 to i32
%106 = tail call i32 @llvm.abs.i32(i32 %2, i1 true)
%107 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %0, i32 %105, i32 %106)
br label %128
108: ; preds = %102
%109 = zext i8 %9 to i32
%110 = zext i8 %11 to i32
%111 = tail call i32 @llvm.abs.i32(i32 %2, i1 true)
%112 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0), i32 %0, i32 %109, i32 %94, i32 %110, i32 %111)
br label %128
113: ; preds = %92
br i1 %95, label %114, label %117
114: ; preds = %113
%115 = zext i8 %9 to i32
%116 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 %0, i32 %115)
br label %128
117: ; preds = %113
%118 = icmp eq i32 %1, 0
br i1 %118, label %119, label %121
119: ; preds = %117
%120 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i32 %0)
br label %128
121: ; preds = %117
%122 = zext i8 %9 to i32
%123 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 %0, i32 %122, i32 %94)
br label %128
124: ; preds = %90
%125 = icmp slt i32 %0, 0
br i1 %125, label %128, label %126
126: ; preds = %124
%127 = icmp eq i32 %0, 0
br i1 %127, label %131, label %128
128: ; preds = %126, %114, %121, %119, %97, %108, %104, %124
%129 = phi i8* [ getelementptr inbounds ([30 x i8], [30 x i8]* @.str.13, i64 0, i64 0), %124 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), %104 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), %108 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), %97 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), %119 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), %121 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), %114 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), %126 ]
%130 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %129)
br label %131
131: ; preds = %128, %126
%132 = icmp eq i32 %4, 1
br i1 %132, label %133, label %136
133: ; preds = %131
%134 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.15, i64 0, i64 0))
%135 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.16, i64 0, i64 0), double %5, double %6)
br label %166
136: ; preds = %131
%137 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.17, i64 0, i64 0))
%138 = tail call double @llvm.fabs.f64(double %6)
%139 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.18, i64 0, i64 0), double %5, double %138, double %5, double %138)
br label %166
140: ; preds = %7
%141 = icmp eq i32 %2, 0
%142 = tail call i32 @llvm.abs.i32(i32 %1, i1 true)
%143 = icmp eq i32 %142, 1
br i1 %141, label %144, label %151
144: ; preds = %140
br i1 %143, label %145, label %149
145: ; preds = %144
%146 = icmp eq i32 %1, -1
%147 = select i1 %146, i32 45, i32 0
%148 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0), i32 %147)
br label %161
149: ; preds = %144
%150 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.20, i64 0, i64 0), i32 %1)
br label %161
151: ; preds = %140
br i1 %143, label %152, label %157
152: ; preds = %151
%153 = select i1 %8, i32 45, i32 0
%154 = zext i8 %11 to i32
%155 = tail call i32 @llvm.abs.i32(i32 %2, i1 true)
%156 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.21, i64 0, i64 0), i32 %153, i32 %154, i32 %155)
br label %161
157: ; preds = %151
%158 = zext i8 %11 to i32
%159 = tail call i32 @llvm.abs.i32(i32 %2, i1 true)
%160 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.22, i64 0, i64 0), i32 %1, i32 %158, i32 %159)
br label %161
161: ; preds = %152, %157, %145, %149
%162 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.23, i64 0, i64 0), double %5)
br label %166
163: ; preds = %7
%164 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.24, i64 0, i64 0), i32 %2)
%165 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.25, i64 0, i64 0))
br label %166
166: ; preds = %133, %136, %7, %163, %161
%167 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str, i64 0, i64 0))
ret void
}