#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_adc(int, int, int);
int main() {
  test_adc(0x00000000, 0x00000000, 0x0);
  test_adc(0x00000000, 0x00000000, 0x1);
  test_adc(0x00000d0c, 0x00000000, 0x1);
  test_adc(0x00000d0c, 0x00000d0c, 0x1);
  test_adc(0x00000000, 0x00000d0c, 0x1);
  test_adc(0x00000d0c, 0x00000000, 0x0);
  test_adc(0x00000d0c, 0x00000d0c, 0x0);
  test_adc(0x00000000, 0x00000d0c, 0x0);
  test_adc(0xffffffff, 0x00000000, 0x0);
  test_adc(0xffffffff, 0x00000001, 0x0);
  test_adc(0xffffffff, 0x00000d0c, 0x0);
  test_adc(0xffffffff, 0x80000000, 0x0);
  test_adc(0xffffffff, 0xffffffff, 0x0);
  test_adc(0xffffffff, 0x00000000, 0x1);
  test_adc(0xffffffff, 0x00000001, 0x1);
  test_adc(0xffffffff, 0x00000d0c, 0x1);
  test_adc(0xffffffff, 0x80000000, 0x1);
  test_adc(0xffffffff, 0xffffffff, 0x1);
  test_adc(0x80000000, 0x00000000, 0x0);
  test_adc(0x80000000, 0x00000d0c, 0x0);
  test_adc(0x80000000, 0x80000000, 0x0);
  test_adc(0x80000000, 0xffffffff, 0x0);
  test_adc(0x80000000, 0x00000000, 0x1);
  test_adc(0x80000000, 0x00000d0c, 0x1);
  test_adc(0x80000000, 0x80000000, 0x1);
  test_adc(0x80000000, 0xffffffff, 0x1);
}


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

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

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 @test_adc(i32 0, i32 0, i32 0)
%2 = call i32 @test_adc(i32 0, i32 0, i32 1)
%3 = call i32 @test_adc(i32 3340, i32 0, i32 1)
%4 = call i32 @test_adc(i32 3340, i32 3340, i32 1)
%5 = call i32 @test_adc(i32 0, i32 3340, i32 1)
%6 = call i32 @test_adc(i32 3340, i32 0, i32 0)
%7 = call i32 @test_adc(i32 3340, i32 3340, i32 0)
%8 = call i32 @test_adc(i32 0, i32 3340, i32 0)
%9 = call i32 @test_adc(i32 -1, i32 0, i32 0)
%10 = call i32 @test_adc(i32 -1, i32 1, i32 0)
%11 = call i32 @test_adc(i32 -1, i32 3340, i32 0)
%12 = call i32 @test_adc(i32 -1, i32 -2147483648, i32 0)
%13 = call i32 @test_adc(i32 -1, i32 -1, i32 0)
%14 = call i32 @test_adc(i32 -1, i32 0, i32 1)
%15 = call i32 @test_adc(i32 -1, i32 1, i32 1)
%16 = call i32 @test_adc(i32 -1, i32 3340, i32 1)
%17 = call i32 @test_adc(i32 -1, i32 -2147483648, i32 1)
%18 = call i32 @test_adc(i32 -1, i32 -1, i32 1)
%19 = call i32 @test_adc(i32 -2147483648, i32 0, i32 0)
%20 = call i32 @test_adc(i32 -2147483648, i32 3340, i32 0)
%21 = call i32 @test_adc(i32 -2147483648, i32 -2147483648, i32 0)
%22 = call i32 @test_adc(i32 -2147483648, i32 -1, i32 0)
%23 = call i32 @test_adc(i32 -2147483648, i32 0, i32 1)
%24 = call i32 @test_adc(i32 -2147483648, i32 3340, i32 1)
%25 = call i32 @test_adc(i32 -2147483648, i32 -2147483648, i32 1)
%26 = call i32 @test_adc(i32 -2147483648, i32 -1, i32 1)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @test_adc(i32 0, i32 0, i32 0)
%2 = tail call i32 @test_adc(i32 0, i32 0, i32 1)
%3 = tail call i32 @test_adc(i32 3340, i32 0, i32 1)
%4 = tail call i32 @test_adc(i32 3340, i32 3340, i32 1)
%5 = tail call i32 @test_adc(i32 0, i32 3340, i32 1)
%6 = tail call i32 @test_adc(i32 3340, i32 0, i32 0)
%7 = tail call i32 @test_adc(i32 3340, i32 3340, i32 0)
%8 = tail call i32 @test_adc(i32 0, i32 3340, i32 0)
%9 = tail call i32 @test_adc(i32 -1, i32 0, i32 0)
%10 = tail call i32 @test_adc(i32 -1, i32 1, i32 0)
%11 = tail call i32 @test_adc(i32 -1, i32 3340, i32 0)
%12 = tail call i32 @test_adc(i32 -1, i32 -2147483648, i32 0)
%13 = tail call i32 @test_adc(i32 -1, i32 -1, i32 0)
%14 = tail call i32 @test_adc(i32 -1, i32 0, i32 1)
%15 = tail call i32 @test_adc(i32 -1, i32 1, i32 1)
%16 = tail call i32 @test_adc(i32 -1, i32 3340, i32 1)
%17 = tail call i32 @test_adc(i32 -1, i32 -2147483648, i32 1)
%18 = tail call i32 @test_adc(i32 -1, i32 -1, i32 1)
%19 = tail call i32 @test_adc(i32 -2147483648, i32 0, i32 0)
%20 = tail call i32 @test_adc(i32 -2147483648, i32 3340, i32 0)
%21 = tail call i32 @test_adc(i32 -2147483648, i32 -2147483648, i32 0)
%22 = tail call i32 @test_adc(i32 -2147483648, i32 -1, i32 0)
%23 = tail call i32 @test_adc(i32 -2147483648, i32 0, i32 1)
%24 = tail call i32 @test_adc(i32 -2147483648, i32 3340, i32 1)
%25 = tail call i32 @test_adc(i32 -2147483648, i32 -2147483648, i32 1)
%26 = tail call i32 @test_adc(i32 -2147483648, i32 -1, i32 1)
ret i32 0
}