#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*/ make_ti(int, int);
scalar_t__ test__addvti3(int /*<<< orphan*/, int /*<<< orphan*/);
int main() {
  if (test__addvti3(make_ti(0x8000000000000000LL, 0x0000000000000000LL),
                    make_ti(0x0000000000000000LL, 0x0000000000000001LL)))
    return 1;
  if (test__addvti3(make_ti(0x0000000000000000LL, 0x0000000000000001LL),
                    make_ti(0x8000000000000000LL, 0x0000000000000000LL)))
    return 1;
  if (test__addvti3(make_ti(0x8000000000000000LL, 0x0000000000000000LL),
                    make_ti(0x0000000000000000LL, 0x0000000000000000LL)))
    return 1;
  if (test__addvti3(make_ti(0x0000000000000000LL, 0x0000000000000000LL),
                    make_ti(0x8000000000000000LL, 0x0000000000000000LL)))
    return 1;
  if (test__addvti3(make_ti(0x7FFFFFFFFFFFFFFFLL, 0xFFFFFFFFFFFFFFFFLL),
                    make_ti(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFFFFFFFFFFLL)))
    return 1;
  if (test__addvti3(make_ti(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFFFFFFFFFFLL),
                    make_ti(0x7FFFFFFFFFFFFFFFLL, 0xFFFFFFFFFFFFFFFFLL)))
    return 1;
  if (test__addvti3(make_ti(0x7FFFFFFFFFFFFFFFLL, 0xFFFFFFFFFFFFFFFFLL),
                    make_ti(0x0000000000000000LL, 0x0000000000000000LL)))
    return 1;
  if (test__addvti3(make_ti(0x0000000000000000LL, 0x0000000000000000LL),
                    make_ti(0x7FFFFFFFFFFFFFFFLL, 0xFFFFFFFFFFFFFFFFLL)))
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    %eax,-0x8(%rbp)
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <make_ti@plt>
mov    -0x8(%rbp),%edi
mov    %eax,%esi
call   1030 <test__addvti3@plt>
cmp    $0x0,%rax
je     1167 <main+0x47>
movl   $0x1,-0x4(%rbp)
jmp    12f6 <main+0x1d6>
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <make_ti@plt>
mov    %eax,-0xc(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    -0xc(%rbp),%edi
mov    %eax,%esi
call   1030 <test__addvti3@plt>
cmp    $0x0,%rax
je     119f <main+0x7f>
movl   $0x1,-0x4(%rbp)
jmp    12f6 <main+0x1d6>
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    %eax,-0x10(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    -0x10(%rbp),%edi
mov    %eax,%esi
call   1030 <test__addvti3@plt>
cmp    $0x0,%rax
je     11d4 <main+0xb4>
movl   $0x1,-0x4(%rbp)
jmp    12f6 <main+0x1d6>
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    %eax,-0x14(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    -0x14(%rbp),%edi
mov    %eax,%esi
call   1030 <test__addvti3@plt>
cmp    $0x0,%rax
je     1209 <main+0xe9>
movl   $0x1,-0x4(%rbp)
jmp    12f6 <main+0x1d6>
mov    $0xffffffff,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    %eax,-0x18(%rbp)
mov    $0xffffffff,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    -0x18(%rbp),%edi
mov    %eax,%esi
call   1030 <test__addvti3@plt>
cmp    $0x0,%rax
je     1244 <main+0x124>
movl   $0x1,-0x4(%rbp)
jmp    12f6 <main+0x1d6>
mov    $0xffffffff,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    %eax,-0x1c(%rbp)
mov    $0xffffffff,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    -0x1c(%rbp),%edi
mov    %eax,%esi
call   1030 <test__addvti3@plt>
cmp    $0x0,%rax
je     127f <main+0x15f>
movl   $0x1,-0x4(%rbp)
jmp    12f6 <main+0x1d6>
mov    $0xffffffff,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    %eax,-0x20(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    -0x20(%rbp),%edi
mov    %eax,%esi
call   1030 <test__addvti3@plt>
cmp    $0x0,%rax
je     12b7 <main+0x197>
movl   $0x1,-0x4(%rbp)
jmp    12f6 <main+0x1d6>
xor    %esi,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    %eax,-0x24(%rbp)
mov    $0xffffffff,%esi
mov    %esi,%edi
call   1040 <make_ti@plt>
mov    -0x24(%rbp),%edi
mov    %eax,%esi
call   1030 <test__addvti3@plt>
cmp    $0x0,%rax
je     12ef <main+0x1cf>
movl   $0x1,-0x4(%rbp)
jmp    12f6 <main+0x1d6>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %edi,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebp
mov    $0x1,%ebx
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <make_ti@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <test__addvti3@plt>
test   %rax,%rax
jne    127e <main+0x15e>
mov    $0x1,%ebx
xor    %edi,%edi
mov    $0x1,%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__addvti3@plt>
test   %rax,%rax
jne    127e <main+0x15e>
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__addvti3@plt>
test   %rax,%rax
jne    127e <main+0x15e>
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__addvti3@plt>
test   %rax,%rax
jne    127e <main+0x15e>
mov    $0xffffffff,%edi
mov    $0xffffffff,%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__addvti3@plt>
test   %rax,%rax
jne    127e <main+0x15e>
mov    $0xffffffff,%edi
mov    $0xffffffff,%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__addvti3@plt>
test   %rax,%rax
jne    127e <main+0x15e>
mov    $0xffffffff,%edi
mov    $0xffffffff,%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__addvti3@plt>
test   %rax,%rax
jne    127e <main+0x15e>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <make_ti@plt>
mov    %eax,%ebx
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
call   1040 <make_ti@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <test__addvti3@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 i32 @make_ti(i32 0, i32 0)
%3 = call i32 @make_ti(i32 0, i32 1)
%4 = call i64 @test__addvti3(i32 %2, i32 %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %0
store i32 1, i32* %1
br label %50
7: ; preds = %0
%8 = call i32 @make_ti(i32 0, i32 1)
%9 = call i32 @make_ti(i32 0, i32 0)
%10 = call i64 @test__addvti3(i32 %8, i32 %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %7
store i32 1, i32* %1
br label %50
13: ; preds = %7
%14 = call i32 @make_ti(i32 0, i32 0)
%15 = call i32 @make_ti(i32 0, i32 0)
%16 = call i64 @test__addvti3(i32 %14, i32 %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %13
store i32 1, i32* %1
br label %50
19: ; preds = %13
%20 = call i32 @make_ti(i32 0, i32 0)
%21 = call i32 @make_ti(i32 0, i32 0)
%22 = call i64 @test__addvti3(i32 %20, i32 %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %19
store i32 1, i32* %1
br label %50
25: ; preds = %19
%26 = call i32 @make_ti(i32 -1, i32 -1)
%27 = call i32 @make_ti(i32 -1, i32 -1)
%28 = call i64 @test__addvti3(i32 %26, i32 %27)
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %25
store i32 1, i32* %1
br label %50
31: ; preds = %25
%32 = call i32 @make_ti(i32 -1, i32 -1)
%33 = call i32 @make_ti(i32 -1, i32 -1)
%34 = call i64 @test__addvti3(i32 %32, i32 %33)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %31
store i32 1, i32* %1
br label %50
37: ; preds = %31
%38 = call i32 @make_ti(i32 -1, i32 -1)
%39 = call i32 @make_ti(i32 0, i32 0)
%40 = call i64 @test__addvti3(i32 %38, i32 %39)
%41 = icmp ne i64 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %37
store i32 1, i32* %1
br label %50
43: ; preds = %37
%44 = call i32 @make_ti(i32 0, i32 0)
%45 = call i32 @make_ti(i32 -1, i32 -1)
%46 = call i64 @test__addvti3(i32 %44, i32 %45)
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %43
store i32 1, i32* %1
br label %50
49: ; preds = %43
store i32 0, i32* %1
br label %50
50: ; preds = %49, %48, %42, %36, %30, %24, %18, %12, %6
%51 = load i32, i32* %1
ret i32 %51
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @make_ti(i32 0, i32 0)
%2 = tail call i32 @make_ti(i32 0, i32 1)
%3 = tail call i64 @test__addvti3(i32 %1, i32 %2)
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %41
5: ; preds = %0
%6 = tail call i32 @make_ti(i32 0, i32 1)
%7 = tail call i32 @make_ti(i32 0, i32 0)
%8 = tail call i64 @test__addvti3(i32 %6, i32 %7)
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %41
10: ; preds = %5
%11 = tail call i32 @make_ti(i32 0, i32 0)
%12 = tail call i32 @make_ti(i32 0, i32 0)
%13 = tail call i64 @test__addvti3(i32 %11, i32 %12)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %41
15: ; preds = %10
%16 = tail call i32 @make_ti(i32 0, i32 0)
%17 = tail call i32 @make_ti(i32 0, i32 0)
%18 = tail call i64 @test__addvti3(i32 %16, i32 %17)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %41
20: ; preds = %15
%21 = tail call i32 @make_ti(i32 -1, i32 -1)
%22 = tail call i32 @make_ti(i32 -1, i32 -1)
%23 = tail call i64 @test__addvti3(i32 %21, i32 %22)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %41
25: ; preds = %20
%26 = tail call i32 @make_ti(i32 -1, i32 -1)
%27 = tail call i32 @make_ti(i32 -1, i32 -1)
%28 = tail call i64 @test__addvti3(i32 %26, i32 %27)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %41
30: ; preds = %25
%31 = tail call i32 @make_ti(i32 -1, i32 -1)
%32 = tail call i32 @make_ti(i32 0, i32 0)
%33 = tail call i64 @test__addvti3(i32 %31, i32 %32)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %41
35: ; preds = %30
%36 = tail call i32 @make_ti(i32 0, i32 0)
%37 = tail call i32 @make_ti(i32 -1, i32 -1)
%38 = tail call i64 @test__addvti3(i32 %36, i32 %37)
%39 = icmp ne i64 %38, 0
%40 = zext i1 %39 to i32
br label %41
41: ; preds = %35, %30, %25, %20, %15, %10, %5, %0
%42 = phi i32 [ 1, %0 ], [ 1, %5 ], [ 1, %10 ], [ 1, %15 ], [ 1, %20 ], [ 1, %25 ], [ 1, %30 ], [ %40, %35 ]
ret i32 %42
}