#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 */
unsigned long dc_inv_test(int);
unsigned long dc_test();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ ic_enable();
unsigned long ic_inv_test();
unsigned long ic_test();
int /*<<< orphan*/ report(unsigned long);
int main(void) {
  unsigned long rc, ret = 0;
  rc = dc_test();
  ret += rc;
  report(rc + 0xdeaddca1);
  rc = dc_inv_test(0x00100000);
  ret += rc;
  report(rc + 0x9e8daa91);
  rc = ic_test();
  ret += rc;
  report(rc + 0xdeaddead);
  ic_enable();
  rc = ic_inv_test();
  ret += rc;
  report(rc + 0xdeadde8f);
  report(ret + 0x9e8da867);
  exit(0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x18(%rbp)
mov    $0x0,%al
call   1050 <dc_test@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
movabs $0xdeaddca1,%rdi
add    -0x10(%rbp),%rdi
call   1080 <report@plt>
mov    $0x100000,%edi
call   1030 <dc_inv_test@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
movabs $0x9e8daa91,%rdi
add    -0x10(%rbp),%rdi
call   1080 <report@plt>
mov    $0x0,%al
call   1040 <ic_test@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
movabs $0xdeaddead,%rdi
add    -0x10(%rbp),%rdi
call   1080 <report@plt>
mov    $0x0,%al
call   1090 <ic_enable@plt>
mov    $0x0,%al
call   1060 <ic_inv_test@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
movabs $0xdeadde8f,%rdi
add    -0x10(%rbp),%rdi
call   1080 <report@plt>
movabs $0x9e8da867,%rdi
add    -0x18(%rbp),%rdi
call   1080 <report@plt>
xor    %edi,%edi
call   1070 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
xor    %eax,%eax
call   1050 <dc_test@plt>
mov    %rax,%rbx
mov    $0x9e8da867,%r13d
lea    (%rax,%r13,1),%rdi
add    $0x4020343a,%rdi
call   1080 <report@plt>
mov    $0x100000,%edi
call   1030 <dc_inv_test@plt>
mov    %rax,%r14
lea    (%rax,%r13,1),%rdi
add    $0x22a,%rdi
call   1080 <report@plt>
xor    %eax,%eax
call   1040 <ic_test@plt>
mov    %rax,%r15
lea    (%rax,%r13,1),%rdi
add    $0x40203646,%rdi
call   1080 <report@plt>
xor    %eax,%eax
call   1090 <ic_enable@plt>
xor    %eax,%eax
call   1060 <ic_inv_test@plt>
mov    %rax,%r12
lea    (%rax,%r13,1),%rdi
add    $0x40203628,%rdi
call   1080 <report@plt>
add    %r14,%rbx
add    %r15,%rbx
add    %r12,%rbx
add    %r13,%rbx
mov    %rbx,%rdi
call   1080 <report@plt>
xor    %edi,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
store i32 0, i32* %1
store i64 0, i64* %3
%4 = call i64 (...) @dc_test()
store i64 %4, i64* %2
%5 = load i64, i64* %2
%6 = load i64, i64* %3
%7 = add i64 %6, %5
store i64 %7, i64* %3
%8 = load i64, i64* %2
%9 = add i64 %8, 3735936161
%10 = call i32 @report(i64 %9)
%11 = call i64 @dc_inv_test(i32 1048576)
store i64 %11, i64* %2
%12 = load i64, i64* %2
%13 = load i64, i64* %3
%14 = add i64 %13, %12
store i64 %14, i64* %3
%15 = load i64, i64* %2
%16 = add i64 %15, 2660084369
%17 = call i32 @report(i64 %16)
%18 = call i64 (...) @ic_test()
store i64 %18, i64* %2
%19 = load i64, i64* %2
%20 = load i64, i64* %3
%21 = add i64 %20, %19
store i64 %21, i64* %3
%22 = load i64, i64* %2
%23 = add i64 %22, 3735936685
%24 = call i32 @report(i64 %23)
%25 = call i32 (...) @ic_enable()
%26 = call i64 (...) @ic_inv_test()
store i64 %26, i64* %2
%27 = load i64, i64* %2
%28 = load i64, i64* %3
%29 = add i64 %28, %27
store i64 %29, i64* %3
%30 = load i64, i64* %2
%31 = add i64 %30, 3735936655
%32 = call i32 @report(i64 %31)
%33 = load i64, i64* %3
%34 = add i64 %33, 2660083815
%35 = call i32 @report(i64 %34)
%36 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i64 (...) @dc_test()
%2 = add i64 %1, 3735936161
%3 = tail call i32 @report(i64 %2)
%4 = tail call i64 @dc_inv_test(i32 1048576)
%5 = add i64 %4, 2660084369
%6 = tail call i32 @report(i64 %5)
%7 = tail call i64 (...) @ic_test()
%8 = add i64 %7, 3735936685
%9 = tail call i32 @report(i64 %8)
%10 = tail call i32 (...) @ic_enable()
%11 = tail call i64 (...) @ic_inv_test()
%12 = add i64 %11, 3735936655
%13 = tail call i32 @report(i64 %12)
%14 = add i64 %1, 2660083815
%15 = add i64 %14, %4
%16 = add i64 %15, %7
%17 = add i64 %16, %11
%18 = tail call i32 @report(i64 %17)
%19 = tail call i32 @exit(i32 0)
unreachable
}