int main(void) {
  assert(2147483647);
  assert(2147483648);
  assert(2147483649);
  assert(4294967295);
  assert(4294967296);
  assert(4294967297);
  assert(9223372036854775806);
  assert(9223372036854775807);
  assert(-9223372036854775807);
  assert(-9223372036854775807L - 1);
  assert(1 == 1);
  assert(2 == 2), assert(3 == 3);
  assert(2 == 2);
  assert(3 == 3);
  assert(4 != 4);
  assert(42 != 42);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x7fffffff,%edi
mov    $0x0,%al
call   1030 <assert@plt>
mov    $0x80000000,%edi
mov    $0x0,%al
call   1030 <assert@plt>
mov    $0x80000001,%edi
mov    $0x0,%al
call   1030 <assert@plt>
mov    $0xffffffff,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movabs $0x100000000,%rdi
mov    $0x0,%al
call   1030 <assert@plt>
movabs $0x100000001,%rdi
mov    $0x0,%al
call   1030 <assert@plt>
movabs $0x7ffffffffffffffe,%rdi
ff ff 7f
mov    $0x0,%al
call   1030 <assert@plt>
movabs $0x7fffffffffffffff,%rdi
ff ff 7f
mov    $0x0,%al
call   1030 <assert@plt>
movabs $0x8000000000000001,%rdi
mov    $0x0,%al
call   1030 <assert@plt>
movabs $0x8000000000000000,%rdi
mov    $0x0,%al
call   1030 <assert@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   1030 <assert@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   1030 <assert@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   1030 <assert@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   1030 <assert@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   1030 <assert@plt>
xor    %edi,%edi
mov    $0x0,%al
call   1030 <assert@plt>
xor    %edi,%edi
mov    $0x0,%al
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x7fffffff,%edi
xor    %eax,%eax
call   1030 <assert@plt>
mov    $0x80000000,%ebx
mov    $0x80000000,%edi
xor    %eax,%eax
call   1030 <assert@plt>
lea    0x1(%rbx),%rdi
xor    %eax,%eax
call   1030 <assert@plt>
or     $0x7fffffff,%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <assert@plt>
movabs $0x100000000,%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <assert@plt>
or     $0x1,%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <assert@plt>
movabs $0x7ffffffffffffffe,%rbx
ff ff 7f
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <assert@plt>
lea    0x1(%rbx),%rdi
xor    %eax,%eax
call   1030 <assert@plt>
lea    0x3(%rbx),%rdi
xor    %eax,%eax
call   1030 <assert@plt>
add    $0x2,%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <assert@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <assert@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <assert@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <assert@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <assert@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <assert@plt>
xor    %edi,%edi
xor    %eax,%eax
call   1030 <assert@plt>
xor    %edi,%edi
xor    %eax,%eax
call   1030 <assert@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 2147483647)
%3 = call i32 (i64, ...) bitcast (i32 (...)* @assert to i32 (i64, ...)*)(i64 2147483648)
%4 = call i32 (i64, ...) bitcast (i32 (...)* @assert to i32 (i64, ...)*)(i64 2147483649)
%5 = call i32 (i64, ...) bitcast (i32 (...)* @assert to i32 (i64, ...)*)(i64 4294967295)
%6 = call i32 (i64, ...) bitcast (i32 (...)* @assert to i32 (i64, ...)*)(i64 4294967296)
%7 = call i32 (i64, ...) bitcast (i32 (...)* @assert to i32 (i64, ...)*)(i64 4294967297)
%8 = call i32 (i64, ...) bitcast (i32 (...)* @assert to i32 (i64, ...)*)(i64 9223372036854775806)
%9 = call i32 (i64, ...) bitcast (i32 (...)* @assert to i32 (i64, ...)*)(i64 9223372036854775807)
%10 = call i32 (i64, ...) bitcast (i32 (...)* @assert to i32 (i64, ...)*)(i64 -9223372036854775807)
%11 = call i32 (i64, ...) bitcast (i32 (...)* @assert to i32 (i64, ...)*)(i64 -9223372036854775808)
%12 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%13 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%14 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%15 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%16 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%17 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 0)
%18 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 0)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 2147483647)
%2 = tail call i32 (i64, ...) bitcast (i32 (...)* @assert to i32 (i64, ...)*)(i64 2147483648)
%3 = tail call i32 (i64, ...) bitcast (i32 (...)* @assert to i32 (i64, ...)*)(i64 2147483649)
%4 = tail call i32 (i64, ...) bitcast (i32 (...)* @assert to i32 (i64, ...)*)(i64 4294967295)
%5 = tail call i32 (i64, ...) bitcast (i32 (...)* @assert to i32 (i64, ...)*)(i64 4294967296)
%6 = tail call i32 (i64, ...) bitcast (i32 (...)* @assert to i32 (i64, ...)*)(i64 4294967297)
%7 = tail call i32 (i64, ...) bitcast (i32 (...)* @assert to i32 (i64, ...)*)(i64 9223372036854775806)
%8 = tail call i32 (i64, ...) bitcast (i32 (...)* @assert to i32 (i64, ...)*)(i64 9223372036854775807)
%9 = tail call i32 (i64, ...) bitcast (i32 (...)* @assert to i32 (i64, ...)*)(i64 -9223372036854775807)
%10 = tail call i32 (i64, ...) bitcast (i32 (...)* @assert to i32 (i64, ...)*)(i64 -9223372036854775808)
%11 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%12 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%13 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%14 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%15 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%16 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 0)
%17 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 0)
ret i32 0
}