#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 */
bool inttest(long long p1, long long p2, long long p3, long long p4,
             long long p5) {
  if (p1 != 0x100000002)
    return false;
  if (p2 != 0x300000004)
    return false;
  if (p3 != 0x500000006)
    return false;
  if (p4 != 0x700000008)
    return false;
  if (p5 != 0x90000000A)
    return false;
  return true;
}


x86 assembly (clang, -O0):
<inttest>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
movabs $0x100000002,%rax
cmp    %rax,-0x10(%rbp)
je     1138 <inttest+0x38>
movl   $0x0,-0x4(%rbp)
jmp    11bf <inttest+0xbf>
movabs $0x300000004,%rax
cmp    %rax,-0x18(%rbp)
je     1158 <inttest+0x58>
movl   $0x0,-0x4(%rbp)
jmp    11bf <inttest+0xbf>
movabs $0x500000006,%rax
cmp    %rax,-0x20(%rbp)
je     1178 <inttest+0x78>
movl   $0x0,-0x4(%rbp)
jmp    11bf <inttest+0xbf>
movabs $0x700000008,%rax
cmp    %rax,-0x28(%rbp)
je     1198 <inttest+0x98>
movl   $0x0,-0x4(%rbp)
jmp    11bf <inttest+0xbf>
movabs $0x90000000a,%rax
cmp    %rax,-0x30(%rbp)
je     11b8 <inttest+0xb8>
movl   $0x0,-0x4(%rbp)
jmp    11bf <inttest+0xbf>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<inttest>:
movabs $0x100000002,%rax
xor    %rdi,%rax
movabs $0x300000004,%rdi
xor    %rsi,%rdi
or     %rax,%rdi
movabs $0x500000006,%rax
xor    %rdx,%rax
movabs $0x700000008,%rdx
xor    %rcx,%rdx
or     %rax,%rdx
or     %rdi,%rdx
movabs $0x90000000a,%rcx
xor    %r8,%rcx
xor    %eax,%eax
or     %rdx,%rcx
sete   %al
ret

LLVM IR (-O0):
define i32 @inttest(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4) {
%6 = alloca i32
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
store i64 %0, i64* %7
store i64 %1, i64* %8
store i64 %2, i64* %9
store i64 %3, i64* %10
store i64 %4, i64* %11
%12 = load i64, i64* %7
%13 = icmp ne i64 %12, 4294967298
br i1 %13, label %14, label %15
14: ; preds = %5
store i32 0, i32* %6
br label %32
15: ; preds = %5
%16 = load i64, i64* %8
%17 = icmp ne i64 %16, 12884901892
br i1 %17, label %18, label %19
18: ; preds = %15
store i32 0, i32* %6
br label %32
19: ; preds = %15
%20 = load i64, i64* %9
%21 = icmp ne i64 %20, 21474836486
br i1 %21, label %22, label %23
22: ; preds = %19
store i32 0, i32* %6
br label %32
23: ; preds = %19
%24 = load i64, i64* %10
%25 = icmp ne i64 %24, 30064771080
br i1 %25, label %26, label %27
26: ; preds = %23
store i32 0, i32* %6
br label %32
27: ; preds = %23
%28 = load i64, i64* %11
%29 = icmp ne i64 %28, 38654705674
br i1 %29, label %30, label %31
30: ; preds = %27
store i32 0, i32* %6
br label %32
31: ; preds = %27
store i32 1, i32* %6
br label %32
32: ; preds = %31, %30, %26, %22, %18, %14
%33 = load i32, i32* %6
ret i32 %33
}

LLVM IR (-O2):
define i32 @inttest(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4) {
%6 = icmp eq i64 %0, 4294967298
%7 = icmp eq i64 %1, 12884901892
%8 = and i1 %6, %7
%9 = icmp eq i64 %2, 21474836486
%10 = and i1 %8, %9
%11 = icmp eq i64 %3, 30064771080
%12 = and i1 %10, %11
%13 = icmp eq i64 %4, 38654705674
%14 = and i1 %12, %13
%15 = zext i1 %14 to i32
ret i32 %15
}