#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*/ printf(char *, ...);
int main() {
  unsigned int umask = 0x01;
  int mask = 0x70000000;
  unsigned long long i = 0xffffffffffffffff;
  printf("i=0x%llx\n", i);
  printf("mask=0x%x\n", mask);
  printf("~mask=0x%x\n", ~mask);
  printf("ull~mask=0x%llx\n", (unsigned long long)~mask);
  i &= ~mask;
  printf("i=0x%llx\n", i);
  printf("\n================\n");
  mask = 0x80000000;
  i = 0xffffffffffffffff;
  printf("i=0x%llx\n", i);
  printf("mask=0x%x\n", mask);
  printf("~mask=0x%x\n", ~mask);
  printf("ull~mask=0x%llx\n", (unsigned long long)~mask);
  i &= ~mask;
  printf("i=0x%llx\n", i);
  printf("\n================\n");
  mask = 0x1;
  i = 0xffffffffffffffff;
  printf("i=0x%llx\n", i);
  printf("mask=0x%x\n", mask);
  printf("~mask=0x%x\n", ~mask);
  printf("ull~mask=0x%llx\n", (unsigned long long)~mask);
  i &= ~mask;
  printf("i=0x%llx\n", i);
  printf("\n================\n");
  i = 0xffffffffffffffff;
  printf("i=0x%llx\n", i);
  printf("umask=0x%x\n", umask);
  printf("~umask=0x%x\n", ~umask);
  printf("ull~umask=0x%llx\n", (unsigned long long)~umask);
  i &= ~umask;
  printf("i=0x%llx\n", i);
  printf("\n================\n");
  umask = 0x01u;
  printf("(int)umask=0x%x,%u\n", (int)umask, (int)umask);
  printf("(ulong)umask=0x%lx\n", (unsigned long)umask);
  printf("(ulong long)umask=0x%llx\n", (unsigned long long)umask);
  umask = 0x80000000u;
  printf("(int)umask=0x%x,%u\n", (int)umask, (int)umask);
  printf("(ulong)umask=0x%lx\n", (unsigned long)umask);
  printf("(ulong long)umask=0x%llx\n", (unsigned long long)umask);
  printf("\n================\n");
  mask = 0x1;
  printf("(int)mask=0x%x,%d\n", (int)mask, (int)mask);
  printf("(long)mask=0x%lx\n", (long)mask);
  printf("(long long)mask=0x%llx\n", (long long)mask);
  mask = 0x80000000;
  printf("(int)mask=0x%x,%d\n", (int)mask, (int)mask);
  printf("(long)mask=0x%lx, %ld\n", (long)mask, (long)mask);
  printf("(long long)mask=0x%llx,%lld\n", (long long)mask, (long long)mask);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0x70000000,-0xc(%rbp)
movq   $0xffffffffffffffff,-0x18(%rbp)
ff
mov    -0x18(%rbp),%rsi
lea    0xec0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xeeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
xor    $0xffffffff,%esi
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
xor    $0xffffffff,%eax
movslq %eax,%rsi
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
xor    $0xffffffff,%eax
cltq
and    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xe62(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x80000000,-0xc(%rbp)
movq   $0xffffffffffffffff,-0x18(%rbp)
ff
mov    -0x18(%rbp),%rsi
lea    0xe33(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
xor    $0xffffffff,%esi
lea    0xe18(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
xor    $0xffffffff,%eax
movslq %eax,%rsi
lea    0xe0d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
xor    $0xffffffff,%eax
cltq
and    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdee(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0xc(%rbp)
movq   $0xffffffffffffffff,-0x18(%rbp)
ff
mov    -0x18(%rbp),%rsi
lea    0xda6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xdd1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
xor    $0xffffffff,%esi
lea    0xd8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
xor    $0xffffffff,%eax
movslq %eax,%rsi
lea    0xd80(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
xor    $0xffffffff,%eax
cltq
and    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xd48(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movq   $0xffffffffffffffff,-0x18(%rbp)
ff
mov    -0x18(%rbp),%rsi
lea    0xd20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xd4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
xor    $0xffffffff,%esi
lea    0xd35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
xor    $0xffffffff,%eax
mov    %eax,%eax
mov    %eax,%esi
lea    0xd2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
xor    $0xffffffff,%eax
mov    %eax,%eax
and    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xcc1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xcf1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,%esi
lea    0xcf2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,%esi
lea    0xcf3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x80000000,-0x8(%rbp)
mov    -0x8(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xcb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,%esi
lea    0xcb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,%esi
lea    0xcb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xca3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0xc(%rbp),%rsi
lea    0xca4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0xc(%rbp),%rsi
lea    0xca4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x80000000,-0xc(%rbp)
mov    -0xc(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xc64(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0xc(%rbp),%rsi
movslq -0xc(%rbp),%rdx
lea    0xc8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0xc(%rbp),%rsi
movslq -0xc(%rbp),%rdx
lea    0xc8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xece(%rip),%rbp
mov    %rbp,%rdi
mov    $0xffffffffffffffff,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xedf(%rip),%r15
mov    %r15,%rdi
mov    $0x70000000,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeaa(%rip),%r12
mov    %r12,%rdi
mov    $0x8fffffff,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xea0(%rip),%r13
mov    %r13,%rdi
mov    $0xffffffff8fffffff,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    $0xffffffff8fffffff,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf5a(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
mov    $0xffffffffffffffff,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    $0x80000000,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x7fffffff,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x7fffffff,%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x7fffffff,%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
mov    $0xffffffffffffffff,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0xfffffffe,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0xfffffffffffffffe,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    $0xfffffffffffffffe,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
mov    $0xffffffffffffffff,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdbb(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xda7(%rip),%rdi
mov    $0xfffffffe,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x80000000,%eax
lea    0x7ffffffe(%rax),%rbx
lea    0xd95(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xd81(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd7a(%rip),%r15
mov    $0x1,%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd78(%rip),%rbp
mov    $0x1,%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x80000000,%esi
mov    $0x80000000,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x80000000,%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x80000000,%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xd42(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd3a(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd39(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x80000000,%esi
mov    $0x80000000,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd2a(%rip),%rdi
mov    $0xffffffff80000000,%rsi
mov    $0xffffffff80000000,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd25(%rip),%rdi
mov    $0xffffffff80000000,%rsi
mov    $0xffffffff80000000,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [10 x i8] c"i=0x%llx\0A\00"
@.str.1 = [11 x i8] c"mask=0x%x\0A\00"
@.str.2 = [12 x i8] c"~mask=0x%x\0A\00"
@.str.3 = [17 x i8] c"ull~mask=0x%llx\0A\00"
@.str.4 = [19 x i8] c"\0A================\0A\00"
@.str.5 = [12 x i8] c"umask=0x%x\0A\00"
@.str.6 = [13 x i8] c"~umask=0x%x\0A\00"
@.str.7 = [18 x i8] c"ull~umask=0x%llx\0A\00"
@.str.8 = [20 x i8] c"(int)umask=0x%x,%u\0A\00"
@.str.9 = [20 x i8] c"(ulong)umask=0x%lx\0A\00"
@.str.10 = [26 x i8] c"(ulong long)umask=0x%llx\0A\00"
@.str.11 = [19 x i8] c"(int)mask=0x%x,%d\0A\00"
@.str.12 = [18 x i8] c"(long)mask=0x%lx\0A\00"
@.str.13 = [24 x i8] c"(long long)mask=0x%llx\0A\00"
@.str.14 = [23 x i8] c"(long)mask=0x%lx, %ld\0A\00"
@.str.15 = [29 x i8] c"(long long)mask=0x%llx,%lld\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i64
store i32 0, i32* %1
store i32 1, i32* %2
store i32 1879048192, i32* %3
store i64 -1, i64* %4
%5 = load i64, i64* %4
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 %5)
%7 = load i32, i32* %3
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %7)
%9 = load i32, i32* %3
%10 = xor i32 %9, -1
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %10)
%12 = load i32, i32* %3
%13 = xor i32 %12, -1
%14 = sext i32 %13 to i64
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i64 %14)
%16 = load i32, i32* %3
%17 = xor i32 %16, -1
%18 = sext i32 %17 to i64
%19 = load i64, i64* %4
%20 = and i64 %19, %18
store i64 %20, i64* %4
%21 = load i64, i64* %4
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 %21)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
store i32 -2147483648, i32* %3
store i64 -1, i64* %4
%24 = load i64, i64* %4
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 %24)
%26 = load i32, i32* %3
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %26)
%28 = load i32, i32* %3
%29 = xor i32 %28, -1
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %29)
%31 = load i32, i32* %3
%32 = xor i32 %31, -1
%33 = sext i32 %32 to i64
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i64 %33)
%35 = load i32, i32* %3
%36 = xor i32 %35, -1
%37 = sext i32 %36 to i64
%38 = load i64, i64* %4
%39 = and i64 %38, %37
store i64 %39, i64* %4
%40 = load i64, i64* %4
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 %40)
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %3
store i64 -1, i64* %4
%43 = load i64, i64* %4
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 %43)
%45 = load i32, i32* %3
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %45)
%47 = load i32, i32* %3
%48 = xor i32 %47, -1
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %48)
%50 = load i32, i32* %3
%51 = xor i32 %50, -1
%52 = sext i32 %51 to i64
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i64 %52)
%54 = load i32, i32* %3
%55 = xor i32 %54, -1
%56 = sext i32 %55 to i64
%57 = load i64, i64* %4
%58 = and i64 %57, %56
store i64 %58, i64* %4
%59 = load i64, i64* %4
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 %59)
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
store i64 -1, i64* %4
%62 = load i64, i64* %4
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 %62)
%64 = load i32, i32* %2
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %64)
%66 = load i32, i32* %2
%67 = xor i32 %66, -1
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 %67)
%69 = load i32, i32* %2
%70 = xor i32 %69, -1
%71 = zext i32 %70 to i64
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i64 %71)
%73 = load i32, i32* %2
%74 = xor i32 %73, -1
%75 = zext i32 %74 to i64
%76 = load i64, i64* %4
%77 = and i64 %76, %75
store i64 %77, i64* %4
%78 = load i64, i64* %4
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 %78)
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %2
%81 = load i32, i32* %2
%82 = load i32, i32* %2
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 %81, i32 %82)
%84 = load i32, i32* %2
%85 = zext i32 %84 to i64
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), i64 %85)
%87 = load i32, i32* %2
%88 = zext i32 %87 to i64
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i64 %88)
store i32 -2147483648, i32* %2
%90 = load i32, i32* %2
%91 = load i32, i32* %2
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 %90, i32 %91)
%93 = load i32, i32* %2
%94 = zext i32 %93 to i64
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), i64 %94)
%96 = load i32, i32* %2
%97 = zext i32 %96 to i64
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i64 %97)
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %3
%100 = load i32, i32* %3
%101 = load i32, i32* %3
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i32 %100, i32 %101)
%103 = load i32, i32* %3
%104 = sext i32 %103 to i64
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0), i64 %104)
%106 = load i32, i32* %3
%107 = sext i32 %106 to i64
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0), i64 %107)
store i32 -2147483648, i32* %3
%109 = load i32, i32* %3
%110 = load i32, i32* %3
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i32 %109, i32 %110)
%112 = load i32, i32* %3
%113 = sext i32 %112 to i64
%114 = load i32, i32* %3
%115 = sext i32 %114 to i64
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0), i64 %113, i64 %115)
%117 = load i32, i32* %3
%118 = sext i32 %117 to i64
%119 = load i32, i32* %3
%120 = sext i32 %119 to i64
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.15, i64 0, i64 0), i64 %118, i64 %120)
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"i=0x%llx\0A\00"
@.str.1 = [11 x i8] c"mask=0x%x\0A\00"
@.str.2 = [12 x i8] c"~mask=0x%x\0A\00"
@.str.3 = [17 x i8] c"ull~mask=0x%llx\0A\00"
@.str.5 = [12 x i8] c"umask=0x%x\0A\00"
@.str.6 = [13 x i8] c"~umask=0x%x\0A\00"
@.str.7 = [18 x i8] c"ull~umask=0x%llx\0A\00"
@.str.8 = [20 x i8] c"(int)umask=0x%x,%u\0A\00"
@.str.9 = [20 x i8] c"(ulong)umask=0x%lx\0A\00"
@.str.10 = [26 x i8] c"(ulong long)umask=0x%llx\0A\00"
@.str.11 = [19 x i8] c"(int)mask=0x%x,%d\0A\00"
@.str.12 = [18 x i8] c"(long)mask=0x%lx\0A\00"
@.str.13 = [24 x i8] c"(long long)mask=0x%llx\0A\00"
@.str.14 = [23 x i8] c"(long)mask=0x%lx, %ld\0A\00"
@.str.15 = [29 x i8] c"(long long)mask=0x%llx,%lld\0A\00"
@str.19 = [18 x i8] c"\0A================\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 -1)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 1879048192)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 -1879048193)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i64 -1879048193)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 -1879048193)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.19, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 -1)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 -2147483648)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 2147483647)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i64 2147483647)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 2147483647)
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.19, i64 0, i64 0))
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 -1)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 1)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 -2)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i64 -2)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 -2)
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.19, i64 0, i64 0))
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 -1)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 1)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 -2)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i64 4294967294)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 4294967294)
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.19, i64 0, i64 0))
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 1, i32 1)
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), i64 1)
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i64 1)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 -2147483648, i32 -2147483648)
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), i64 2147483648)
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i64 2147483648)
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.19, i64 0, i64 0))
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i32 1, i32 1)
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0), i64 1)
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0), i64 1)
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i32 -2147483648, i32 -2147483648)
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0), i64 -2147483648, i64 -2147483648)
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.15, i64 0, i64 0), i64 -2147483648, i64 -2147483648)
ret i32 0
}