#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 make_ti(int, int);
scalar_t__ test__negti2(int, int);
int main() {
  if (test__negti2(0, 0))
    return 1;
  if (test__negti2(1, -1))
    return 1;
  if (test__negti2(-1, 1))
    return 1;
  if (test__negti2(2, -2))
    return 1;
  if (test__negti2(-2, 2))
    return 1;
  if (test__negti2(3, -3))
    return 1;
  if (test__negti2(-3, 3))
    return 1;
  if (test__negti2(make_ti(0x0000000000000000LL, 0x00000000FFFFFFFELL),
                   make_ti(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFF00000002LL)))
    return 1;
  if (test__negti2(make_ti(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFF00000002LL),
                   make_ti(0x0000000000000000LL, 0x00000000FFFFFFFELL)))
    return 1;
  if (test__negti2(make_ti(0x0000000000000000LL, 0x00000000FFFFFFFFLL),
                   make_ti(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFF00000001LL)))
    return 1;
  if (test__negti2(make_ti(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFF00000001LL),
                   make_ti(0x0000000000000000LL, 0x00000000FFFFFFFFLL)))
    return 1;
  if (test__negti2(make_ti(0x0000000000000000LL, 0x0000000100000000LL),
                   make_ti(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFF00000000LL)))
    return 1;
  if (test__negti2(make_ti(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFF00000000LL),
                   make_ti(0x0000000000000000LL, 0x0000000100000000LL)))
    return 1;
  if (test__negti2(make_ti(0x0000000000000000LL, 0x0000000200000000LL),
                   make_ti(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFE00000000LL)))
    return 1;
  if (test__negti2(make_ti(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFE00000000LL),
                   make_ti(0x0000000000000000LL, 0x0000000200000000LL)))
    return 1;
  if (test__negti2(make_ti(0x0000000000000000LL, 0x0000000300000000LL),
                   make_ti(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFD00000000LL)))
    return 1;
  if (test__negti2(make_ti(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFD00000000LL),
                   make_ti(0x0000000000000000LL, 0x0000000300000000LL)))
    return 1;
  if (test__negti2(make_ti(0x0000000000000000LL, 0x7FFFFFFFFFFFFFFFLL),
                   make_ti(0xFFFFFFFFFFFFFFFFLL, 0x8000000000000001LL)))
    return 1;
  if (test__negti2(make_ti(0xFFFFFFFFFFFFFFFFLL, 0x8000000000000001LL),
                   make_ti(0x0000000000000000LL, 0x7FFFFFFFFFFFFFFFLL)))
    return 1;
  if (test__negti2(make_ti(0x0000000000000000LL, 0x7FFFFFFFFFFFFFFFLL),
                   make_ti(0xFFFFFFFFFFFFFFFFLL, 0x8000000000000001LL)))
    return 1;
  if (test__negti2(make_ti(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFE00000000LL),
                   make_ti(0x0000000000000000LL, 0x0000000200000000LL)))
    return 1;
  if (test__negti2(make_ti(0x0000000000000000LL, 0x0000000200000000LL),
                   make_ti(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFE00000000LL)))
    return 1;
  if (test__negti2(make_ti(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFF00000000LL),
                   make_ti(0x0000000000000000LL, 0x0000000100000000LL)))
    return 1;
  if (test__negti2(make_ti(0x0000000000000000LL, 0x0000000100000000LL),
                   make_ti(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFF00000000LL)))
    return 1;
  if (test__negti2(make_ti(0x8000000000000000LL, 0x0000000000000000LL),
                   make_ti(0x8000000000000000LL, 0x0000000000000000LL)))
    return 1;
  if (test__negti2(make_ti(0x8000000000000000LL, 0x0000000000000001LL),
                   make_ti(0x7FFFFFFFFFFFFFFFLL, 0xFFFFFFFFFFFFFFFFLL)))
    return 1;
  if (test__negti2(make_ti(0x7FFFFFFFFFFFFFFFLL, 0xFFFFFFFFFFFFFFFFLL),
                   make_ti(0x8000000000000000LL, 0x0000000000000001LL)))
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     114e <main+0x2e>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
mov    $0x1,%edi
mov    $0xffffffff,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     1173 <main+0x53>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     1198 <main+0x78>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
mov    $0x2,%edi
mov    $0xfffffffe,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     11bd <main+0x9d>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
mov    $0xfffffffe,%edi
mov    $0x2,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     11e2 <main+0xc2>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
mov    $0x3,%edi
mov    $0xfffffffd,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     1207 <main+0xe7>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
mov    $0xfffffffd,%edi
mov    $0x3,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     122c <main+0x10c>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
xor    %edi,%edi
mov    $0xfffffffe,%esi
call   1040 <make_ti@plt>
mov    %eax,-0x8(%rbp)
mov    $0xffffffff,%edi
mov    $0x2,%esi
call   1040 <make_ti@plt>
mov    -0x8(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     126a <main+0x14a>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
mov    $0xffffffff,%edi
mov    $0x2,%esi
call   1040 <make_ti@plt>
mov    %eax,-0xc(%rbp)
xor    %edi,%edi
mov    $0xfffffffe,%esi
call   1040 <make_ti@plt>
mov    -0xc(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     12a8 <main+0x188>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
xor    %edi,%edi
mov    $0xffffffff,%esi
call   1040 <make_ti@plt>
mov    %eax,-0x10(%rbp)
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1040 <make_ti@plt>
mov    -0x10(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     12e6 <main+0x1c6>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1040 <make_ti@plt>
mov    %eax,-0x14(%rbp)
xor    %edi,%edi
mov    $0xffffffff,%esi
call   1040 <make_ti@plt>
mov    -0x14(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     1324 <main+0x204>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    %eax,-0x18(%rbp)
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    -0x18(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     135c <main+0x23c>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,-0x1c(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    -0x1c(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     1394 <main+0x274>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    %eax,-0x20(%rbp)
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    -0x20(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     13cc <main+0x2ac>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,-0x24(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    -0x24(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     1404 <main+0x2e4>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    %eax,-0x28(%rbp)
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    -0x28(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     143c <main+0x31c>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,-0x2c(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    -0x2c(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     1474 <main+0x354>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
xor    %edi,%edi
mov    $0xffffffff,%esi
call   1040 <make_ti@plt>
mov    %eax,-0x30(%rbp)
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1040 <make_ti@plt>
mov    -0x30(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     14b2 <main+0x392>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1040 <make_ti@plt>
mov    %eax,-0x34(%rbp)
xor    %edi,%edi
mov    $0xffffffff,%esi
call   1040 <make_ti@plt>
mov    -0x34(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     14f0 <main+0x3d0>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
xor    %edi,%edi
mov    $0xffffffff,%esi
call   1040 <make_ti@plt>
mov    %eax,-0x38(%rbp)
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1040 <make_ti@plt>
mov    -0x38(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     152e <main+0x40e>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,-0x3c(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    -0x3c(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     1566 <main+0x446>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    %eax,-0x40(%rbp)
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    -0x40(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     159e <main+0x47e>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,-0x44(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    -0x44(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     15d6 <main+0x4b6>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    %eax,-0x48(%rbp)
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    -0x48(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     160e <main+0x4ee>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    %eax,-0x4c(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    -0x4c(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     1643 <main+0x523>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <make_ti@plt>
mov    %eax,-0x50(%rbp)
mov    $0xffffffff,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    -0x50(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     167e <main+0x55e>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
mov    $0xffffffff,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    %eax,-0x54(%rbp)
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <make_ti@plt>
mov    -0x54(%rbp),%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
cmp    $0x0,%rax
je     16b9 <main+0x599>
movl   $0x1,-0x4(%rbp)
jmp    16c0 <main+0x5a0>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %edi,%edi
xor    %esi,%esi
call   1030 <test__negti2@plt>
mov    $0x1,%ebx
test   %rax,%rax
jne    1550 <main+0x430>
mov    $0x1,%ebx
mov    $0x1,%edi
mov    $0xffffffff,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
mov    $0x1,%ebx
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
mov    $0x2,%edi
mov    $0xfffffffe,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
mov    $0xfffffffe,%edi
mov    $0x2,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
mov    $0x3,%edi
mov    $0xfffffffd,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
mov    $0xfffffffd,%edi
mov    $0x3,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
xor    %edi,%edi
mov    $0xfffffffe,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
mov    $0xffffffff,%edi
mov    $0x2,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
mov    $0xffffffff,%edi
mov    $0x2,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
xor    %edi,%edi
mov    $0xfffffffe,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
xor    %edi,%edi
mov    $0xffffffff,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
mov    $0x1,%ebx
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
mov    $0x1,%ebx
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
xor    %edi,%edi
mov    $0xffffffff,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
xor    %edi,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
xor    %edi,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
xor    %edi,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
xor    %edi,%edi
mov    $0xffffffff,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
mov    $0x1,%ebx
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
mov    $0x1,%ebx
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
xor    %edi,%edi
mov    $0xffffffff,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
xor    %edi,%edi
mov    $0xffffffff,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
mov    $0x1,%ebx
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
xor    %edi,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
xor    %edi,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
xor    %edi,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
mov    $0x1,%ebx
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
test   %rax,%rax
jne    1550 <main+0x430>
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebx
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <make_ti@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <test__negti2@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i64 @test__negti2(i32 0, i32 0)
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
store i32 1, i32* %1
br label %150
5: ; preds = %0
%6 = call i64 @test__negti2(i32 1, i32 -1)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %5
store i32 1, i32* %1
br label %150
9: ; preds = %5
%10 = call i64 @test__negti2(i32 -1, i32 1)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %9
store i32 1, i32* %1
br label %150
13: ; preds = %9
%14 = call i64 @test__negti2(i32 2, i32 -2)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %13
store i32 1, i32* %1
br label %150
17: ; preds = %13
%18 = call i64 @test__negti2(i32 -2, i32 2)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %17
store i32 1, i32* %1
br label %150
21: ; preds = %17
%22 = call i64 @test__negti2(i32 3, i32 -3)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %21
store i32 1, i32* %1
br label %150
25: ; preds = %21
%26 = call i64 @test__negti2(i32 -3, i32 3)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %25
store i32 1, i32* %1
br label %150
29: ; preds = %25
%30 = call i32 @make_ti(i32 0, i32 -2)
%31 = call i32 @make_ti(i32 -1, i32 2)
%32 = call i64 @test__negti2(i32 %30, i32 %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %29
store i32 1, i32* %1
br label %150
35: ; preds = %29
%36 = call i32 @make_ti(i32 -1, i32 2)
%37 = call i32 @make_ti(i32 0, i32 -2)
%38 = call i64 @test__negti2(i32 %36, i32 %37)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %35
store i32 1, i32* %1
br label %150
41: ; preds = %35
%42 = call i32 @make_ti(i32 0, i32 -1)
%43 = call i32 @make_ti(i32 -1, i32 1)
%44 = call i64 @test__negti2(i32 %42, i32 %43)
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %41
store i32 1, i32* %1
br label %150
47: ; preds = %41
%48 = call i32 @make_ti(i32 -1, i32 1)
%49 = call i32 @make_ti(i32 0, i32 -1)
%50 = call i64 @test__negti2(i32 %48, i32 %49)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %47
store i32 1, i32* %1
br label %150
53: ; preds = %47
%54 = call i32 @make_ti(i32 0, i32 0)
%55 = call i32 @make_ti(i32 -1, i32 0)
%56 = call i64 @test__negti2(i32 %54, i32 %55)
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %59
58: ; preds = %53
store i32 1, i32* %1
br label %150
59: ; preds = %53
%60 = call i32 @make_ti(i32 -1, i32 0)
%61 = call i32 @make_ti(i32 0, i32 0)
%62 = call i64 @test__negti2(i32 %60, i32 %61)
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %65
64: ; preds = %59
store i32 1, i32* %1
br label %150
65: ; preds = %59
%66 = call i32 @make_ti(i32 0, i32 0)
%67 = call i32 @make_ti(i32 -1, i32 0)
%68 = call i64 @test__negti2(i32 %66, i32 %67)
%69 = icmp ne i64 %68, 0
br i1 %69, label %70, label %71
70: ; preds = %65
store i32 1, i32* %1
br label %150
71: ; preds = %65
%72 = call i32 @make_ti(i32 -1, i32 0)
%73 = call i32 @make_ti(i32 0, i32 0)
%74 = call i64 @test__negti2(i32 %72, i32 %73)
%75 = icmp ne i64 %74, 0
br i1 %75, label %76, label %77
76: ; preds = %71
store i32 1, i32* %1
br label %150
77: ; preds = %71
%78 = call i32 @make_ti(i32 0, i32 0)
%79 = call i32 @make_ti(i32 -1, i32 0)
%80 = call i64 @test__negti2(i32 %78, i32 %79)
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %83
82: ; preds = %77
store i32 1, i32* %1
br label %150
83: ; preds = %77
%84 = call i32 @make_ti(i32 -1, i32 0)
%85 = call i32 @make_ti(i32 0, i32 0)
%86 = call i64 @test__negti2(i32 %84, i32 %85)
%87 = icmp ne i64 %86, 0
br i1 %87, label %88, label %89
88: ; preds = %83
store i32 1, i32* %1
br label %150
89: ; preds = %83
%90 = call i32 @make_ti(i32 0, i32 -1)
%91 = call i32 @make_ti(i32 -1, i32 1)
%92 = call i64 @test__negti2(i32 %90, i32 %91)
%93 = icmp ne i64 %92, 0
br i1 %93, label %94, label %95
94: ; preds = %89
store i32 1, i32* %1
br label %150
95: ; preds = %89
%96 = call i32 @make_ti(i32 -1, i32 1)
%97 = call i32 @make_ti(i32 0, i32 -1)
%98 = call i64 @test__negti2(i32 %96, i32 %97)
%99 = icmp ne i64 %98, 0
br i1 %99, label %100, label %101
100: ; preds = %95
store i32 1, i32* %1
br label %150
101: ; preds = %95
%102 = call i32 @make_ti(i32 0, i32 -1)
%103 = call i32 @make_ti(i32 -1, i32 1)
%104 = call i64 @test__negti2(i32 %102, i32 %103)
%105 = icmp ne i64 %104, 0
br i1 %105, label %106, label %107
106: ; preds = %101
store i32 1, i32* %1
br label %150
107: ; preds = %101
%108 = call i32 @make_ti(i32 -1, i32 0)
%109 = call i32 @make_ti(i32 0, i32 0)
%110 = call i64 @test__negti2(i32 %108, i32 %109)
%111 = icmp ne i64 %110, 0
br i1 %111, label %112, label %113
112: ; preds = %107
store i32 1, i32* %1
br label %150
113: ; preds = %107
%114 = call i32 @make_ti(i32 0, i32 0)
%115 = call i32 @make_ti(i32 -1, i32 0)
%116 = call i64 @test__negti2(i32 %114, i32 %115)
%117 = icmp ne i64 %116, 0
br i1 %117, label %118, label %119
118: ; preds = %113
store i32 1, i32* %1
br label %150
119: ; preds = %113
%120 = call i32 @make_ti(i32 -1, i32 0)
%121 = call i32 @make_ti(i32 0, i32 0)
%122 = call i64 @test__negti2(i32 %120, i32 %121)
%123 = icmp ne i64 %122, 0
br i1 %123, label %124, label %125
124: ; preds = %119
store i32 1, i32* %1
br label %150
125: ; preds = %119
%126 = call i32 @make_ti(i32 0, i32 0)
%127 = call i32 @make_ti(i32 -1, i32 0)
%128 = call i64 @test__negti2(i32 %126, i32 %127)
%129 = icmp ne i64 %128, 0
br i1 %129, label %130, label %131
130: ; preds = %125
store i32 1, i32* %1
br label %150
131: ; preds = %125
%132 = call i32 @make_ti(i32 0, i32 0)
%133 = call i32 @make_ti(i32 0, i32 0)
%134 = call i64 @test__negti2(i32 %132, i32 %133)
%135 = icmp ne i64 %134, 0
br i1 %135, label %136, label %137
136: ; preds = %131
store i32 1, i32* %1
br label %150
137: ; preds = %131
%138 = call i32 @make_ti(i32 0, i32 1)
%139 = call i32 @make_ti(i32 -1, i32 -1)
%140 = call i64 @test__negti2(i32 %138, i32 %139)
%141 = icmp ne i64 %140, 0
br i1 %141, label %142, label %143
142: ; preds = %137
store i32 1, i32* %1
br label %150
143: ; preds = %137
%144 = call i32 @make_ti(i32 -1, i32 -1)
%145 = call i32 @make_ti(i32 0, i32 1)
%146 = call i64 @test__negti2(i32 %144, i32 %145)
%147 = icmp ne i64 %146, 0
br i1 %147, label %148, label %149
148: ; preds = %143
store i32 1, i32* %1
br label %150
149: ; preds = %143
store i32 0, i32* %1
br label %150
150: ; preds = %149, %148, %142, %136, %130, %124, %118, %112, %106, %100, %94, %88, %82, %76, %70, %64, %58, %52, %46, %40, %34, %28, %24, %20, %16, %12, %8, %4
%151 = load i32, i32* %1
ret i32 %151
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i64 @test__negti2(i32 0, i32 0)
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %122
3: ; preds = %0
%4 = tail call i64 @test__negti2(i32 1, i32 -1)
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %122
6: ; preds = %3
%7 = tail call i64 @test__negti2(i32 -1, i32 1)
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %122
9: ; preds = %6
%10 = tail call i64 @test__negti2(i32 2, i32 -2)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %122
12: ; preds = %9
%13 = tail call i64 @test__negti2(i32 -2, i32 2)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %122
15: ; preds = %12
%16 = tail call i64 @test__negti2(i32 3, i32 -3)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %122
18: ; preds = %15
%19 = tail call i64 @test__negti2(i32 -3, i32 3)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %122
21: ; preds = %18
%22 = tail call i32 @make_ti(i32 0, i32 -2)
%23 = tail call i32 @make_ti(i32 -1, i32 2)
%24 = tail call i64 @test__negti2(i32 %22, i32 %23)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %122
26: ; preds = %21
%27 = tail call i32 @make_ti(i32 -1, i32 2)
%28 = tail call i32 @make_ti(i32 0, i32 -2)
%29 = tail call i64 @test__negti2(i32 %27, i32 %28)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %122
31: ; preds = %26
%32 = tail call i32 @make_ti(i32 0, i32 -1)
%33 = tail call i32 @make_ti(i32 -1, i32 1)
%34 = tail call i64 @test__negti2(i32 %32, i32 %33)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %122
36: ; preds = %31
%37 = tail call i32 @make_ti(i32 -1, i32 1)
%38 = tail call i32 @make_ti(i32 0, i32 -1)
%39 = tail call i64 @test__negti2(i32 %37, i32 %38)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %122
41: ; preds = %36
%42 = tail call i32 @make_ti(i32 0, i32 0)
%43 = tail call i32 @make_ti(i32 -1, i32 0)
%44 = tail call i64 @test__negti2(i32 %42, i32 %43)
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %122
46: ; preds = %41
%47 = tail call i32 @make_ti(i32 -1, i32 0)
%48 = tail call i32 @make_ti(i32 0, i32 0)
%49 = tail call i64 @test__negti2(i32 %47, i32 %48)
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %122
51: ; preds = %46
%52 = tail call i32 @make_ti(i32 0, i32 0)
%53 = tail call i32 @make_ti(i32 -1, i32 0)
%54 = tail call i64 @test__negti2(i32 %52, i32 %53)
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %122
56: ; preds = %51
%57 = tail call i32 @make_ti(i32 -1, i32 0)
%58 = tail call i32 @make_ti(i32 0, i32 0)
%59 = tail call i64 @test__negti2(i32 %57, i32 %58)
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %122
61: ; preds = %56
%62 = tail call i32 @make_ti(i32 0, i32 0)
%63 = tail call i32 @make_ti(i32 -1, i32 0)
%64 = tail call i64 @test__negti2(i32 %62, i32 %63)
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %122
66: ; preds = %61
%67 = tail call i32 @make_ti(i32 -1, i32 0)
%68 = tail call i32 @make_ti(i32 0, i32 0)
%69 = tail call i64 @test__negti2(i32 %67, i32 %68)
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %122
71: ; preds = %66
%72 = tail call i32 @make_ti(i32 0, i32 -1)
%73 = tail call i32 @make_ti(i32 -1, i32 1)
%74 = tail call i64 @test__negti2(i32 %72, i32 %73)
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %122
76: ; preds = %71
%77 = tail call i32 @make_ti(i32 -1, i32 1)
%78 = tail call i32 @make_ti(i32 0, i32 -1)
%79 = tail call i64 @test__negti2(i32 %77, i32 %78)
%80 = icmp eq i64 %79, 0
br i1 %80, label %81, label %122
81: ; preds = %76
%82 = tail call i32 @make_ti(i32 0, i32 -1)
%83 = tail call i32 @make_ti(i32 -1, i32 1)
%84 = tail call i64 @test__negti2(i32 %82, i32 %83)
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %122
86: ; preds = %81
%87 = tail call i32 @make_ti(i32 -1, i32 0)
%88 = tail call i32 @make_ti(i32 0, i32 0)
%89 = tail call i64 @test__negti2(i32 %87, i32 %88)
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %122
91: ; preds = %86
%92 = tail call i32 @make_ti(i32 0, i32 0)
%93 = tail call i32 @make_ti(i32 -1, i32 0)
%94 = tail call i64 @test__negti2(i32 %92, i32 %93)
%95 = icmp eq i64 %94, 0
br i1 %95, label %96, label %122
96: ; preds = %91
%97 = tail call i32 @make_ti(i32 -1, i32 0)
%98 = tail call i32 @make_ti(i32 0, i32 0)
%99 = tail call i64 @test__negti2(i32 %97, i32 %98)
%100 = icmp eq i64 %99, 0
br i1 %100, label %101, label %122
101: ; preds = %96
%102 = tail call i32 @make_ti(i32 0, i32 0)
%103 = tail call i32 @make_ti(i32 -1, i32 0)
%104 = tail call i64 @test__negti2(i32 %102, i32 %103)
%105 = icmp eq i64 %104, 0
br i1 %105, label %106, label %122
106: ; preds = %101
%107 = tail call i32 @make_ti(i32 0, i32 0)
%108 = tail call i32 @make_ti(i32 0, i32 0)
%109 = tail call i64 @test__negti2(i32 %107, i32 %108)
%110 = icmp eq i64 %109, 0
br i1 %110, label %111, label %122
111: ; preds = %106
%112 = tail call i32 @make_ti(i32 0, i32 1)
%113 = tail call i32 @make_ti(i32 -1, i32 -1)
%114 = tail call i64 @test__negti2(i32 %112, i32 %113)
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %122
116: ; preds = %111
%117 = tail call i32 @make_ti(i32 -1, i32 -1)
%118 = tail call i32 @make_ti(i32 0, i32 1)
%119 = tail call i64 @test__negti2(i32 %117, i32 %118)
%120 = icmp ne i64 %119, 0
%121 = zext i1 %120 to i32
br label %122
122: ; preds = %116, %111, %106, %101, %96, %91, %86, %81, %76, %71, %66, %61, %56, %51, %46, %41, %36, %31, %26, %21, %18, %15, %12, %9, %6, %3, %0
%123 = phi i32 [ 1, %0 ], [ 1, %3 ], [ 1, %6 ], [ 1, %9 ], [ 1, %12 ], [ 1, %15 ], [ 1, %18 ], [ 1, %21 ], [ 1, %26 ], [ 1, %31 ], [ 1, %36 ], [ 1, %41 ], [ 1, %46 ], [ 1, %51 ], [ 1, %56 ], [ 1, %61 ], [ 1, %66 ], [ 1, %71 ], [ 1, %76 ], [ 1, %81 ], [ 1, %86 ], [ 1, %91 ], [ 1, %96 ], [ 1, %101 ], [ 1, %106 ], [ 1, %111 ], [ %121, %116 ]
ret i32 %123
}