#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*/ bit_clr(unsigned long *, int);
int /*<<< orphan*/ bit_cnt(unsigned long *);
int /*<<< orphan*/ bit_set(unsigned long *, int);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  unsigned long t = 0;
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  bit_set(&t, 0);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  bit_set(&t, 1);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  bit_set(&t, 2);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  bit_set(&t, 3);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  bit_set(&t, 4);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  bit_set(&t, 5);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  bit_set(&t, 6);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  bit_set(&t, 7);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  bit_set(&t, 31);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  bit_set(&t, 30);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  bit_set(&t, 29);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  bit_set(&t, 28);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  bit_set(&t, 27);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  printf("\n");
  bit_clr(&t, 0);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  bit_clr(&t, 31);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  bit_clr(&t, 1);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  bit_clr(&t, 4);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  bit_clr(&t, 7);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  printf("\n");
  bit_clr(&t, 16);
  printf("0x%08lx has %d bits set\n", t, bit_cnt(&t));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0xb8(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0xb8(%rbp),%rsi
mov    %eax,%edx
lea    0xe7b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
xor    %esi,%esi
call   1060 <bit_set@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0xb0(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0xb0(%rbp),%rsi
mov    %eax,%edx
lea    0xe45(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
mov    $0x1,%esi
call   1060 <bit_set@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0xa8(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0xa8(%rbp),%rsi
mov    %eax,%edx
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
mov    $0x2,%esi
call   1060 <bit_set@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0xa0(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0xa0(%rbp),%rsi
mov    %eax,%edx
lea    0xdd3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
mov    $0x3,%esi
call   1060 <bit_set@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x98(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0x98(%rbp),%rsi
mov    %eax,%edx
lea    0xd9a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
mov    $0x4,%esi
call   1060 <bit_set@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x90(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0x90(%rbp),%rsi
mov    %eax,%edx
lea    0xd61(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
mov    $0x5,%esi
call   1060 <bit_set@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x88(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0x88(%rbp),%rsi
mov    %eax,%edx
lea    0xd28(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
mov    $0x6,%esi
call   1060 <bit_set@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x80(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0x80(%rbp),%rsi
mov    %eax,%edx
lea    0xcf5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
mov    $0x7,%esi
call   1060 <bit_set@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x78(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0x78(%rbp),%rsi
mov    %eax,%edx
lea    0xcc2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
mov    $0x1f,%esi
call   1060 <bit_set@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x70(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0x70(%rbp),%rsi
mov    %eax,%edx
lea    0xc8f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
mov    $0x1e,%esi
call   1060 <bit_set@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x68(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0x68(%rbp),%rsi
mov    %eax,%edx
lea    0xc5c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
mov    $0x1d,%esi
call   1060 <bit_set@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x60(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0x60(%rbp),%rsi
mov    %eax,%edx
lea    0xc29(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
mov    $0x1c,%esi
call   1060 <bit_set@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x58(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0x58(%rbp),%rsi
mov    %eax,%edx
lea    0xbf6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
mov    $0x1b,%esi
call   1060 <bit_set@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x50(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0x50(%rbp),%rsi
mov    %eax,%edx
lea    0xbc3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xbcc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
xor    %esi,%esi
call   1050 <bit_clr@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x48(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0x48(%rbp),%rsi
mov    %eax,%edx
lea    0xb85(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
mov    $0x1f,%esi
call   1050 <bit_clr@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x40(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0x40(%rbp),%rsi
mov    %eax,%edx
lea    0xb52(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
mov    $0x1,%esi
call   1050 <bit_clr@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x38(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0x38(%rbp),%rsi
mov    %eax,%edx
lea    0xb1f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
mov    $0x4,%esi
call   1050 <bit_clr@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0x30(%rbp),%rsi
mov    %eax,%edx
lea    0xaec(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
mov    $0x7,%esi
call   1050 <bit_clr@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0x28(%rbp),%rsi
mov    %eax,%edx
lea    0xab9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xac2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x18(%rbp),%rdi
mov    $0x10,%esi
call   1050 <bit_clr@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <bit_cnt@plt>
mov    -0x20(%rbp),%rsi
mov    %eax,%edx
lea    0xa78(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
movq   $0x0,0x8(%rsp)
lea    0x8(%rsp),%r15
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
lea    0xe8a(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
xor    %esi,%esi
call   1070 <bit_set@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    $0x1,%esi
call   1070 <bit_set@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    $0x2,%esi
call   1070 <bit_set@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    $0x3,%esi
call   1070 <bit_set@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    $0x4,%esi
call   1070 <bit_set@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    $0x5,%esi
call   1070 <bit_set@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    $0x6,%esi
call   1070 <bit_set@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    $0x7,%esi
call   1070 <bit_set@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    $0x1f,%esi
call   1070 <bit_set@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    $0x1e,%esi
call   1070 <bit_set@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    $0x1d,%esi
call   1070 <bit_set@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    $0x1c,%esi
call   1070 <bit_set@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    $0x1b,%esi
call   1070 <bit_set@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %r15,%rdi
xor    %esi,%esi
call   1060 <bit_clr@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    $0x1f,%esi
call   1060 <bit_clr@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    $0x1,%esi
call   1060 <bit_clr@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    $0x4,%esi
call   1060 <bit_clr@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    $0x7,%esi
call   1060 <bit_clr@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %r15,%rdi
mov    $0x10,%esi
call   1060 <bit_clr@plt>
mov    0x8(%rsp),%rbx
mov    %r15,%rdi
call   1030 <bit_cnt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [25 x i8] c"0x%08lx has %d bits set\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 0, i64* %6
%7 = load i64, i64* %6
%8 = call i32 @bit_cnt(i64* %6)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %7, i32 %8)
%10 = call i32 @bit_set(i64* %6, i32 0)
%11 = load i64, i64* %6
%12 = call i32 @bit_cnt(i64* %6)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %11, i32 %12)
%14 = call i32 @bit_set(i64* %6, i32 1)
%15 = load i64, i64* %6
%16 = call i32 @bit_cnt(i64* %6)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %15, i32 %16)
%18 = call i32 @bit_set(i64* %6, i32 2)
%19 = load i64, i64* %6
%20 = call i32 @bit_cnt(i64* %6)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %19, i32 %20)
%22 = call i32 @bit_set(i64* %6, i32 3)
%23 = load i64, i64* %6
%24 = call i32 @bit_cnt(i64* %6)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %23, i32 %24)
%26 = call i32 @bit_set(i64* %6, i32 4)
%27 = load i64, i64* %6
%28 = call i32 @bit_cnt(i64* %6)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %27, i32 %28)
%30 = call i32 @bit_set(i64* %6, i32 5)
%31 = load i64, i64* %6
%32 = call i32 @bit_cnt(i64* %6)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %31, i32 %32)
%34 = call i32 @bit_set(i64* %6, i32 6)
%35 = load i64, i64* %6
%36 = call i32 @bit_cnt(i64* %6)
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %35, i32 %36)
%38 = call i32 @bit_set(i64* %6, i32 7)
%39 = load i64, i64* %6
%40 = call i32 @bit_cnt(i64* %6)
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %39, i32 %40)
%42 = call i32 @bit_set(i64* %6, i32 31)
%43 = load i64, i64* %6
%44 = call i32 @bit_cnt(i64* %6)
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %43, i32 %44)
%46 = call i32 @bit_set(i64* %6, i32 30)
%47 = load i64, i64* %6
%48 = call i32 @bit_cnt(i64* %6)
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %47, i32 %48)
%50 = call i32 @bit_set(i64* %6, i32 29)
%51 = load i64, i64* %6
%52 = call i32 @bit_cnt(i64* %6)
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %51, i32 %52)
%54 = call i32 @bit_set(i64* %6, i32 28)
%55 = load i64, i64* %6
%56 = call i32 @bit_cnt(i64* %6)
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %55, i32 %56)
%58 = call i32 @bit_set(i64* %6, i32 27)
%59 = load i64, i64* %6
%60 = call i32 @bit_cnt(i64* %6)
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %59, i32 %60)
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%63 = call i32 @bit_clr(i64* %6, i32 0)
%64 = load i64, i64* %6
%65 = call i32 @bit_cnt(i64* %6)
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %64, i32 %65)
%67 = call i32 @bit_clr(i64* %6, i32 31)
%68 = load i64, i64* %6
%69 = call i32 @bit_cnt(i64* %6)
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %68, i32 %69)
%71 = call i32 @bit_clr(i64* %6, i32 1)
%72 = load i64, i64* %6
%73 = call i32 @bit_cnt(i64* %6)
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %72, i32 %73)
%75 = call i32 @bit_clr(i64* %6, i32 4)
%76 = load i64, i64* %6
%77 = call i32 @bit_cnt(i64* %6)
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %76, i32 %77)
%79 = call i32 @bit_clr(i64* %6, i32 7)
%80 = load i64, i64* %6
%81 = call i32 @bit_cnt(i64* %6)
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %80, i32 %81)
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%84 = call i32 @bit_clr(i64* %6, i32 16)
%85 = load i64, i64* %6
%86 = call i32 @bit_cnt(i64* %6)
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %85, i32 %86)
ret i32 0
}

LLVM IR (-O2):
@.str = [25 x i8] c"0x%08lx has %d bits set\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i64
%4 = bitcast i64* %3 to i8*
store i64 0, i64* %3
%5 = call i32 @bit_cnt(i64* %3)
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 0, i32 %5)
%7 = call i32 @bit_set(i64* %3, i32 0)
%8 = load i64, i64* %3
%9 = call i32 @bit_cnt(i64* %3)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %8, i32 %9)
%11 = call i32 @bit_set(i64* %3, i32 1)
%12 = load i64, i64* %3
%13 = call i32 @bit_cnt(i64* %3)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %12, i32 %13)
%15 = call i32 @bit_set(i64* %3, i32 2)
%16 = load i64, i64* %3
%17 = call i32 @bit_cnt(i64* %3)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %16, i32 %17)
%19 = call i32 @bit_set(i64* %3, i32 3)
%20 = load i64, i64* %3
%21 = call i32 @bit_cnt(i64* %3)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %20, i32 %21)
%23 = call i32 @bit_set(i64* %3, i32 4)
%24 = load i64, i64* %3
%25 = call i32 @bit_cnt(i64* %3)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %24, i32 %25)
%27 = call i32 @bit_set(i64* %3, i32 5)
%28 = load i64, i64* %3
%29 = call i32 @bit_cnt(i64* %3)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %28, i32 %29)
%31 = call i32 @bit_set(i64* %3, i32 6)
%32 = load i64, i64* %3
%33 = call i32 @bit_cnt(i64* %3)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %32, i32 %33)
%35 = call i32 @bit_set(i64* %3, i32 7)
%36 = load i64, i64* %3
%37 = call i32 @bit_cnt(i64* %3)
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %36, i32 %37)
%39 = call i32 @bit_set(i64* %3, i32 31)
%40 = load i64, i64* %3
%41 = call i32 @bit_cnt(i64* %3)
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %40, i32 %41)
%43 = call i32 @bit_set(i64* %3, i32 30)
%44 = load i64, i64* %3
%45 = call i32 @bit_cnt(i64* %3)
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %44, i32 %45)
%47 = call i32 @bit_set(i64* %3, i32 29)
%48 = load i64, i64* %3
%49 = call i32 @bit_cnt(i64* %3)
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %48, i32 %49)
%51 = call i32 @bit_set(i64* %3, i32 28)
%52 = load i64, i64* %3
%53 = call i32 @bit_cnt(i64* %3)
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %52, i32 %53)
%55 = call i32 @bit_set(i64* %3, i32 27)
%56 = load i64, i64* %3
%57 = call i32 @bit_cnt(i64* %3)
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %56, i32 %57)
%59 = call i32 @putchar(i32 10)
%60 = call i32 @bit_clr(i64* %3, i32 0)
%61 = load i64, i64* %3
%62 = call i32 @bit_cnt(i64* %3)
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %61, i32 %62)
%64 = call i32 @bit_clr(i64* %3, i32 31)
%65 = load i64, i64* %3
%66 = call i32 @bit_cnt(i64* %3)
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %65, i32 %66)
%68 = call i32 @bit_clr(i64* %3, i32 1)
%69 = load i64, i64* %3
%70 = call i32 @bit_cnt(i64* %3)
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %69, i32 %70)
%72 = call i32 @bit_clr(i64* %3, i32 4)
%73 = load i64, i64* %3
%74 = call i32 @bit_cnt(i64* %3)
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %73, i32 %74)
%76 = call i32 @bit_clr(i64* %3, i32 7)
%77 = load i64, i64* %3
%78 = call i32 @bit_cnt(i64* %3)
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %77, i32 %78)
%80 = call i32 @putchar(i32 10)
%81 = call i32 @bit_clr(i64* %3, i32 16)
%82 = load i64, i64* %3
%83 = call i32 @bit_cnt(i64* %3)
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 %82, i32 %83)
ret i32 0
}