#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*/ test_add(int, int);
int main() {
  test_add(0x00000000, 0x00000000);
  test_add(0x00000000, 0x00000d0c);
  test_add(0x00000d0c, 0x00000000);
  test_add(0x00000d0c, 0x00000d0c);
  test_add(0xffffffff, 0x00000000);
  test_add(0xffffffff, 0x00000001);
  test_add(0xffffffff, 0x00000d0c);
  test_add(0xffffffff, 0x80000000);
  test_add(0xffffffff, 0xffffffff);
  test_add(0x80000000, 0x00000000);
  test_add(0x80000000, 0x00000d0c);
  test_add(0x80000000, 0x80000000);
  test_add(0x80000000, 0xffffffff);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
xor    %esi,%esi
mov    %esi,%edi
call   1030 <test_add@plt>
xor    %edi,%edi
mov    $0xd0c,%esi
call   1030 <test_add@plt>
mov    $0xd0c,%edi
xor    %esi,%esi
call   1030 <test_add@plt>
mov    $0xd0c,%esi
mov    %esi,%edi
call   1030 <test_add@plt>
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1030 <test_add@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <test_add@plt>
mov    $0xffffffff,%edi
mov    $0xd0c,%esi
call   1030 <test_add@plt>
mov    $0xffffffff,%edi
mov    $0x80000000,%esi
call   1030 <test_add@plt>
mov    $0xffffffff,%esi
mov    %esi,%edi
call   1030 <test_add@plt>
mov    $0x80000000,%edi
xor    %esi,%esi
call   1030 <test_add@plt>
mov    $0x80000000,%edi
mov    $0xd0c,%esi
call   1030 <test_add@plt>
mov    $0x80000000,%esi
mov    %esi,%edi
call   1030 <test_add@plt>
mov    $0x80000000,%edi
mov    $0xffffffff,%esi
call   1030 <test_add@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
call   1030 <test_add@plt>
xor    %edi,%edi
mov    $0xd0c,%esi
call   1030 <test_add@plt>
mov    $0xd0c,%edi
xor    %esi,%esi
call   1030 <test_add@plt>
mov    $0xd0c,%edi
mov    $0xd0c,%esi
call   1030 <test_add@plt>
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1030 <test_add@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <test_add@plt>
mov    $0xffffffff,%edi
mov    $0xd0c,%esi
call   1030 <test_add@plt>
mov    $0xffffffff,%edi
mov    $0x80000000,%esi
call   1030 <test_add@plt>
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
call   1030 <test_add@plt>
mov    $0x80000000,%edi
xor    %esi,%esi
call   1030 <test_add@plt>
mov    $0x80000000,%edi
mov    $0xd0c,%esi
call   1030 <test_add@plt>
mov    $0x80000000,%edi
mov    $0x80000000,%esi
call   1030 <test_add@plt>
mov    $0x80000000,%edi
mov    $0xffffffff,%esi
call   1030 <test_add@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 @test_add(i32 0, i32 0)
%2 = call i32 @test_add(i32 0, i32 3340)
%3 = call i32 @test_add(i32 3340, i32 0)
%4 = call i32 @test_add(i32 3340, i32 3340)
%5 = call i32 @test_add(i32 -1, i32 0)
%6 = call i32 @test_add(i32 -1, i32 1)
%7 = call i32 @test_add(i32 -1, i32 3340)
%8 = call i32 @test_add(i32 -1, i32 -2147483648)
%9 = call i32 @test_add(i32 -1, i32 -1)
%10 = call i32 @test_add(i32 -2147483648, i32 0)
%11 = call i32 @test_add(i32 -2147483648, i32 3340)
%12 = call i32 @test_add(i32 -2147483648, i32 -2147483648)
%13 = call i32 @test_add(i32 -2147483648, i32 -1)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @test_add(i32 0, i32 0)
%2 = tail call i32 @test_add(i32 0, i32 3340)
%3 = tail call i32 @test_add(i32 3340, i32 0)
%4 = tail call i32 @test_add(i32 3340, i32 3340)
%5 = tail call i32 @test_add(i32 -1, i32 0)
%6 = tail call i32 @test_add(i32 -1, i32 1)
%7 = tail call i32 @test_add(i32 -1, i32 3340)
%8 = tail call i32 @test_add(i32 -1, i32 -2147483648)
%9 = tail call i32 @test_add(i32 -1, i32 -1)
%10 = tail call i32 @test_add(i32 -2147483648, i32 0)
%11 = tail call i32 @test_add(i32 -2147483648, i32 3340)
%12 = tail call i32 @test_add(i32 -2147483648, i32 -2147483648)
%13 = tail call i32 @test_add(i32 -2147483648, i32 -1)
ret i32 0
}