#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 *, ...);
void printf_base(int var) {
  printf(
      "VAR     = %10d\t\tVAR     = %10d\t\tVAR     = %10d\t\tVAR     = %10d\n",
      var, var + 1, var + 2, var + 3);
  printf("--------------------\t\t--------------------\t\t--------------------"
         "\t\t--------------------\n");
  printf("\e[1mBASE 2  =\e[0m 0b"
         "%u%u%u%u%u%u%u%u"
         "\t\t"
         "\e[1mBASE 2  =\e[0m 0b"
         "%u%u%u%u%u%u%u%u"
         "\t\t"
         "\e[1mBASE 2  =\e[0m 0b"
         "%u%u%u%u%u%u%u%u"
         "\t\t"
         "\e[1mBASE 2  =\e[0m 0b"
         "%u%u%u%u%u%u%u%u"
         "\n",
         (var & 0x80 ? 1 : 0), (var & 0x40 ? 1 : 0), (var & 0x20 ? 1 : 0),
         (var & 0x10 ? 1 : 0), (var & 0x08 ? 1 : 0), (var & 0x04 ? 1 : 0),
         (var & 0x02 ? 1 : 0), (var & 0x01 ? 1 : 0), ((var + 1) & 0x80 ? 1 : 0),
         ((var + 1) & 0x40 ? 1 : 0), ((var + 1) & 0x20 ? 1 : 0),
         ((var + 1) & 0x10 ? 1 : 0), ((var + 1) & 0x08 ? 1 : 0),
         ((var + 1) & 0x04 ? 1 : 0), ((var + 1) & 0x02 ? 1 : 0),
         ((var + 1) & 0x01 ? 1 : 0), ((var + 2) & 0x80 ? 1 : 0),
         ((var + 2) & 0x40 ? 1 : 0), ((var + 2) & 0x20 ? 1 : 0),
         ((var + 2) & 0x10 ? 1 : 0), ((var + 2) & 0x08 ? 1 : 0),
         ((var + 2) & 0x04 ? 1 : 0), ((var + 2) & 0x02 ? 1 : 0),
         ((var + 2) & 0x01 ? 1 : 0), ((var + 3) & 0x80 ? 1 : 0),
         ((var + 3) & 0x40 ? 1 : 0), ((var + 3) & 0x20 ? 1 : 0),
         ((var + 3) & 0x10 ? 1 : 0), ((var + 3) & 0x08 ? 1 : 0),
         ((var + 3) & 0x04 ? 1 : 0), ((var + 3) & 0x02 ? 1 : 0),
         ((var + 3) & 0x01 ? 1 : 0));
  printf("\e[1mBASE 8  =\e[0m 0o%08o\t\t"
         "\e[1mBASE 8  =\e[0m 0o%08o\t\t"
         "\e[1mBASE 8  =\e[0m 0o%08o\t\t"
         "\e[1mBASE 8  =\e[0m 0o%08o\n",
         var, var + 1, var + 2, var + 3);
  printf("\e[1mBASE 10 =\e[0m %010d\t\t"
         "\e[1mBASE 10 =\e[0m %010d\t\t"
         "\e[1mBASE 10 =\e[0m %010d\t\t"
         "\e[1mBASE 10 =\e[0m %010d\n",
         var, var + 1, var + 2, var + 3);
  printf("\e[1mBASE 16 =\e[0m 0x%08x\t\t"
         "\e[1mBASE 16 =\e[0m 0x%08x\t\t"
         "\e[1mBASE 16 =\e[0m 0x%08x\t\t"
         "\e[1mBASE 16 =\e[0m 0x%08x\n",
         var, var + 1, var + 2, var + 3);
}


x86 assembly (clang, -O0):
<printf_base>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
mov    %edi,-0x2c(%rbp)
mov    -0x2c(%rbp),%esi
mov    -0x2c(%rbp),%edx
add    $0x1,%edx
mov    -0x2c(%rbp),%ecx
add    $0x2,%ecx
mov    -0x2c(%rbp),%r8d
add    $0x3,%r8d
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x2c(%rbp),%ecx
and    $0x80,%ecx
xor    %esi,%esi
mov    $0x1,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
mov    -0x2c(%rbp),%ecx
and    $0x40,%ecx
xor    %edx,%edx
mov    $0x1,%eax
cmp    $0x0,%ecx
cmovne %eax,%edx
mov    -0x2c(%rbp),%edi
and    $0x20,%edi
xor    %ecx,%ecx
mov    $0x1,%eax
cmp    $0x0,%edi
cmovne %eax,%ecx
mov    -0x2c(%rbp),%edi
and    $0x10,%edi
xor    %r8d,%r8d
mov    $0x1,%eax
cmp    $0x0,%edi
cmovne %eax,%r8d
mov    -0x2c(%rbp),%edi
and    $0x8,%edi
xor    %r9d,%r9d
mov    $0x1,%eax
cmp    $0x0,%edi
cmovne %eax,%r9d
mov    -0x2c(%rbp),%r10d
and    $0x4,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x7c(%rbp)
mov    -0x2c(%rbp),%r10d
and    $0x2,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x78(%rbp)
mov    -0x2c(%rbp),%r10d
and    $0x1,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x74(%rbp)
mov    -0x2c(%rbp),%r10d
add    $0x1,%r10d
and    $0x80,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x70(%rbp)
mov    -0x2c(%rbp),%r10d
add    $0x1,%r10d
and    $0x40,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x2c(%rbp),%r10d
add    $0x1,%r10d
and    $0x20,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x68(%rbp)
mov    -0x2c(%rbp),%r10d
add    $0x1,%r10d
and    $0x10,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x64(%rbp)
mov    -0x2c(%rbp),%r10d
add    $0x1,%r10d
and    $0x8,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x60(%rbp)
mov    -0x2c(%rbp),%r10d
add    $0x1,%r10d
and    $0x4,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x2c(%rbp),%r10d
add    $0x1,%r10d
and    $0x2,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x58(%rbp)
mov    -0x2c(%rbp),%r10d
add    $0x1,%r10d
and    $0x1,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x54(%rbp)
mov    -0x2c(%rbp),%r10d
add    $0x2,%r10d
and    $0x80,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x50(%rbp)
mov    -0x2c(%rbp),%r10d
add    $0x2,%r10d
and    $0x40,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x2c(%rbp),%r10d
add    $0x2,%r10d
and    $0x20,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x48(%rbp)
mov    -0x2c(%rbp),%r10d
add    $0x2,%r10d
and    $0x10,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x44(%rbp)
mov    -0x2c(%rbp),%r10d
add    $0x2,%r10d
and    $0x8,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x40(%rbp)
mov    -0x2c(%rbp),%r10d
add    $0x2,%r10d
and    $0x4,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x2c(%rbp),%r10d
add    $0x2,%r10d
and    $0x2,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x38(%rbp)
mov    -0x2c(%rbp),%r10d
add    $0x2,%r10d
and    $0x1,%r10d
xor    %eax,%eax
mov    $0x1,%edi
cmp    $0x0,%r10d
cmovne %edi,%eax
mov    %eax,-0x34(%rbp)
mov    -0x2c(%rbp),%edi
add    $0x3,%edi
and    $0x80,%edi
xor    %r13d,%r13d
mov    $0x1,%eax
cmp    $0x0,%edi
cmovne %eax,%r13d
mov    -0x2c(%rbp),%edi
add    $0x3,%edi
and    $0x40,%edi
xor    %r12d,%r12d
mov    $0x1,%eax
cmp    $0x0,%edi
cmovne %eax,%r12d
mov    -0x2c(%rbp),%edi
add    $0x3,%edi
and    $0x20,%edi
xor    %r15d,%r15d
mov    $0x1,%eax
cmp    $0x0,%edi
cmovne %eax,%r15d
mov    -0x2c(%rbp),%edi
add    $0x3,%edi
and    $0x10,%edi
xor    %r14d,%r14d
mov    $0x1,%eax
cmp    $0x0,%edi
cmovne %eax,%r14d
mov    -0x2c(%rbp),%edi
add    $0x3,%edi
and    $0x8,%edi
xor    %ebx,%ebx
mov    $0x1,%eax
cmp    $0x0,%edi
cmovne %eax,%ebx
mov    -0x2c(%rbp),%edi
add    $0x3,%edi
and    $0x4,%edi
xor    %r11d,%r11d
mov    $0x1,%eax
cmp    $0x0,%edi
cmovne %eax,%r11d
mov    -0x2c(%rbp),%edi
add    $0x3,%edi
and    $0x2,%edi
xor    %r10d,%r10d
mov    $0x1,%eax
cmp    $0x0,%edi
cmovne %eax,%r10d
mov    -0x2c(%rbp),%eax
add    $0x3,%eax
and    $0x1,%eax
mov    %eax,-0x84(%rbp)
xor    %edi,%edi
mov    $0x1,%eax
mov    %eax,-0x80(%rbp)
mov    -0x84(%rbp),%eax
cmp    $0x0,%eax
mov    -0x80(%rbp),%eax
cmovne %eax,%edi
mov    -0x7c(%rbp),%eax
mov    %edi,-0x30(%rbp)
lea    0xbd9(%rip),%rdi
mov    %eax,(%rsp)
mov    -0x78(%rbp),%eax
mov    %eax,0x8(%rsp)
mov    -0x74(%rbp),%eax
mov    %eax,0x10(%rsp)
mov    -0x70(%rbp),%eax
mov    %eax,0x18(%rsp)
mov    -0x6c(%rbp),%eax
mov    %eax,0x20(%rsp)
mov    -0x68(%rbp),%eax
mov    %eax,0x28(%rsp)
mov    -0x64(%rbp),%eax
mov    %eax,0x30(%rsp)
mov    -0x60(%rbp),%eax
mov    %eax,0x38(%rsp)
mov    -0x5c(%rbp),%eax
mov    %eax,0x40(%rsp)
mov    -0x58(%rbp),%eax
mov    %eax,0x48(%rsp)
mov    -0x54(%rbp),%eax
mov    %eax,0x50(%rsp)
mov    -0x50(%rbp),%eax
mov    %eax,0x58(%rsp)
mov    -0x4c(%rbp),%eax
mov    %eax,0x60(%rsp)
mov    -0x48(%rbp),%eax
mov    %eax,0x68(%rsp)
mov    -0x44(%rbp),%eax
mov    %eax,0x70(%rsp)
mov    -0x40(%rbp),%eax
mov    %eax,0x78(%rsp)
mov    -0x3c(%rbp),%eax
mov    %eax,0x80(%rsp)
mov    -0x38(%rbp),%eax
mov    %eax,0x88(%rsp)
mov    -0x34(%rbp),%eax
mov    %eax,0x90(%rsp)
mov    -0x30(%rbp),%eax
mov    %r13d,0x98(%rsp)
mov    %r12d,0xa0(%rsp)
mov    %r15d,0xa8(%rsp)
mov    %r14d,0xb0(%rsp)
mov    %ebx,0xb8(%rsp)
mov    %r11d,0xc0(%rsp)
mov    %r10d,0xc8(%rsp)
mov    %eax,0xd0(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x2c(%rbp),%esi
mov    -0x2c(%rbp),%edx
add    $0x1,%edx
mov    -0x2c(%rbp),%ecx
add    $0x2,%ecx
mov    -0x2c(%rbp),%r8d
add    $0x3,%r8d
lea    0xb81(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x2c(%rbp),%esi
mov    -0x2c(%rbp),%edx
add    $0x1,%edx
mov    -0x2c(%rbp),%ecx
add    $0x2,%ecx
mov    -0x2c(%rbp),%r8d
add    $0x3,%r8d
lea    0xbc4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x2c(%rbp),%esi
mov    -0x2c(%rbp),%edx
add    $0x1,%edx
mov    -0x2c(%rbp),%ecx
add    $0x2,%ecx
mov    -0x2c(%rbp),%r8d
add    $0x3,%r8d
lea    0xc03(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x138,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<printf_base>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %edi,%ebx
mov    %rbx,0xa0(%rsp)
lea    0x1(%rbx),%ebp
lea    0x2(%rbx),%r14d
lea    0x3(%rbx),%r15d
lea    0xeb3(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
mov    %r15d,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10a7(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%esi
shr    $0x7,%esi
and    $0x1,%esi
mov    %ebx,%edx
shr    $0x6,%edx
and    $0x1,%edx
mov    %ebx,%ecx
shr    $0x5,%ecx
and    $0x1,%ecx
mov    %ebx,%r8d
shr    $0x4,%r8d
and    $0x1,%r8d
mov    %ebx,%r9d
shr    $0x3,%r9d
and    $0x1,%r9d
mov    %ebx,%eax
shr    $0x2,%eax
and    $0x1,%eax
mov    %rax,0x98(%rsp)
mov    %ebx,%eax
shr    %eax
and    $0x1,%eax
mov    %rax,0x90(%rsp)
and    $0x1,%ebx
mov    %rbx,0x58(%rsp)
mov    %ebp,0xc(%rsp)
mov    %ebp,%eax
shr    $0x7,%eax
and    $0x1,%eax
mov    %rax,0x88(%rsp)
mov    %ebp,%eax
shr    $0x6,%eax
and    $0x1,%eax
mov    %rax,0x80(%rsp)
mov    %ebp,%eax
shr    $0x5,%eax
and    $0x1,%eax
mov    %rax,0x78(%rsp)
mov    %ebp,%eax
shr    $0x4,%eax
and    $0x1,%eax
mov    %rax,0x70(%rsp)
mov    %ebp,%eax
shr    $0x3,%eax
and    $0x1,%eax
mov    %rax,0x68(%rsp)
mov    %ebp,%eax
shr    $0x2,%eax
and    $0x1,%eax
mov    %rax,0x60(%rsp)
mov    %ebp,%eax
shr    %eax
and    $0x1,%eax
mov    %rax,0x50(%rsp)
mov    %ebp,%eax
and    $0x1,%eax
mov    %rax,0x48(%rsp)
mov    %r14d,0x8(%rsp)
mov    %r14d,%eax
shr    $0x7,%eax
and    $0x1,%eax
mov    %rax,0x40(%rsp)
mov    %r14d,%eax
shr    $0x6,%eax
and    $0x1,%eax
mov    %rax,0x38(%rsp)
mov    %r14d,%eax
shr    $0x5,%eax
and    $0x1,%eax
mov    %rax,0x30(%rsp)
mov    %r14d,%eax
shr    $0x4,%eax
and    $0x1,%eax
mov    %rax,0x28(%rsp)
mov    %r14d,%eax
shr    $0x3,%eax
and    $0x1,%eax
mov    %rax,0x20(%rsp)
mov    %r14d,%eax
shr    $0x2,%eax
and    $0x1,%eax
mov    %rax,0x18(%rsp)
mov    %r14d,%eax
shr    %eax
and    $0x1,%eax
mov    %rax,0x10(%rsp)
mov    %r15d,%eax
mov    %r15d,0x4(%rsp)
shr    $0x7,%r15d
and    $0x1,%r15d
mov    %eax,%ebp
shr    $0x6,%ebp
and    $0x1,%ebp
mov    %eax,%r12d
shr    $0x5,%r12d
and    $0x1,%r12d
mov    %eax,%r10d
shr    $0x4,%r10d
and    $0x1,%r10d
mov    %eax,%r14d
shr    $0x3,%r14d
and    $0x1,%r14d
mov    %eax,%ebx
shr    $0x2,%ebx
and    $0x1,%ebx
mov    %eax,%r11d
shr    %r11d
and    $0x1,%r11d
mov    %eax,%r13d
and    $0x1,%r13d
sub    $0x8,%rsp
lea    0xd50(%rip),%rdi
xor    %eax,%eax
push   %r13
push   %r11
push   %rbx
push   %r14
push   %r10
push   %r12
push   %rbp
push   %r15
mov    0xa0(%rsp),%rbp
push   %rbp
push   0x60(%rsp)
push   0x70(%rsp)
push   0x80(%rsp)
push   0x90(%rsp)
push   0xa0(%rsp)
push   0xb0(%rsp)
push   0xc0(%rsp)
push   0xd0(%rsp)
push   0xe0(%rsp)
push   0xf8(%rsp)
push   0x108(%rsp)
push   0x118(%rsp)
push   0x128(%rsp)
push   0x138(%rsp)
push   0x148(%rsp)
push   %rbp
push   0x160(%rsp)
push   0x170(%rsp)
call   1040 <printf@plt>
add    $0xe0,%rsp
lea    0xd4a(%rip),%rdi
mov    0xa0(%rsp),%rbx
mov    %ebx,%esi
mov    0xc(%rsp),%ebp
mov    %ebp,%edx
mov    0x8(%rsp),%r14d
mov    %r14d,%ecx
mov    0x4(%rsp),%r15d
mov    %r15d,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd84(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
mov    %r15d,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdd0(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
mov    %r15d,%r8d
xor    %eax,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [64 x i8] c"VAR = %10d\09\09VAR = %10d\09\09VAR = %10d\09\09VAR = %10d\0A\00"
@.str.1 = [88 x i8] c"--------------------\09\09--------------------\09\09--------------------\09\09--------------------\0A\00"
@.str.2 = [152 x i8] c"\1B[1mBASE 2 =\1B[0m 0b%u%u%u%u%u%u%u%u\09\09\1B[1mBASE 2 =\1B[0m 0b%u%u%u%u%u%u%u%u\09\09\1B[1mBASE 2 =\1B[0m 0b%u%u%u%u%u%u%u%u\09\09\1B[1mBASE 2 =\1B[0m 0b%u%u%u%u%u%u%u%u\0A\00"
@.str.3 = [104 x i8] c"\1B[1mBASE 8 =\1B[0m 0o%08o\09\09\1B[1mBASE 8 =\1B[0m 0o%08o\09\09\1B[1mBASE 8 =\1B[0m 0o%08o\09\09\1B[1mBASE 8 =\1B[0m 0o%08o\0A\00"
@.str.4 = [100 x i8] c"\1B[1mBASE 10 =\1B[0m %010d\09\09\1B[1mBASE 10 =\1B[0m %010d\09\09\1B[1mBASE 10 =\1B[0m %010d\09\09\1B[1mBASE 10 =\1B[0m %010d\0A\00"
@.str.5 = [104 x i8] c"\1B[1mBASE 16 =\1B[0m 0x%08x\09\09\1B[1mBASE 16 =\1B[0m 0x%08x\09\09\1B[1mBASE 16 =\1B[0m 0x%08x\09\09\1B[1mBASE 16 =\1B[0m 0x%08x\0A\00"
define void @printf_base(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* %2
%5 = add nsw i32 %4, 1
%6 = load i32, i32* %2
%7 = add nsw i32 %6, 2
%8 = load i32, i32* %2
%9 = add nsw i32 %8, 3
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %5, i32 %7, i32 %9)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.1, i64 0, i64 0))
%12 = load i32, i32* %2
%13 = and i32 %12, 128
%14 = icmp ne i32 %13, 0
%15 = zext i1 %14 to i64
%16 = select i1 %14, i32 1, i32 0
%17 = load i32, i32* %2
%18 = and i32 %17, 64
%19 = icmp ne i32 %18, 0
%20 = zext i1 %19 to i64
%21 = select i1 %19, i32 1, i32 0
%22 = load i32, i32* %2
%23 = and i32 %22, 32
%24 = icmp ne i32 %23, 0
%25 = zext i1 %24 to i64
%26 = select i1 %24, i32 1, i32 0
%27 = load i32, i32* %2
%28 = and i32 %27, 16
%29 = icmp ne i32 %28, 0
%30 = zext i1 %29 to i64
%31 = select i1 %29, i32 1, i32 0
%32 = load i32, i32* %2
%33 = and i32 %32, 8
%34 = icmp ne i32 %33, 0
%35 = zext i1 %34 to i64
%36 = select i1 %34, i32 1, i32 0
%37 = load i32, i32* %2
%38 = and i32 %37, 4
%39 = icmp ne i32 %38, 0
%40 = zext i1 %39 to i64
%41 = select i1 %39, i32 1, i32 0
%42 = load i32, i32* %2
%43 = and i32 %42, 2
%44 = icmp ne i32 %43, 0
%45 = zext i1 %44 to i64
%46 = select i1 %44, i32 1, i32 0
%47 = load i32, i32* %2
%48 = and i32 %47, 1
%49 = icmp ne i32 %48, 0
%50 = zext i1 %49 to i64
%51 = select i1 %49, i32 1, i32 0
%52 = load i32, i32* %2
%53 = add nsw i32 %52, 1
%54 = and i32 %53, 128
%55 = icmp ne i32 %54, 0
%56 = zext i1 %55 to i64
%57 = select i1 %55, i32 1, i32 0
%58 = load i32, i32* %2
%59 = add nsw i32 %58, 1
%60 = and i32 %59, 64
%61 = icmp ne i32 %60, 0
%62 = zext i1 %61 to i64
%63 = select i1 %61, i32 1, i32 0
%64 = load i32, i32* %2
%65 = add nsw i32 %64, 1
%66 = and i32 %65, 32
%67 = icmp ne i32 %66, 0
%68 = zext i1 %67 to i64
%69 = select i1 %67, i32 1, i32 0
%70 = load i32, i32* %2
%71 = add nsw i32 %70, 1
%72 = and i32 %71, 16
%73 = icmp ne i32 %72, 0
%74 = zext i1 %73 to i64
%75 = select i1 %73, i32 1, i32 0
%76 = load i32, i32* %2
%77 = add nsw i32 %76, 1
%78 = and i32 %77, 8
%79 = icmp ne i32 %78, 0
%80 = zext i1 %79 to i64
%81 = select i1 %79, i32 1, i32 0
%82 = load i32, i32* %2
%83 = add nsw i32 %82, 1
%84 = and i32 %83, 4
%85 = icmp ne i32 %84, 0
%86 = zext i1 %85 to i64
%87 = select i1 %85, i32 1, i32 0
%88 = load i32, i32* %2
%89 = add nsw i32 %88, 1
%90 = and i32 %89, 2
%91 = icmp ne i32 %90, 0
%92 = zext i1 %91 to i64
%93 = select i1 %91, i32 1, i32 0
%94 = load i32, i32* %2
%95 = add nsw i32 %94, 1
%96 = and i32 %95, 1
%97 = icmp ne i32 %96, 0
%98 = zext i1 %97 to i64
%99 = select i1 %97, i32 1, i32 0
%100 = load i32, i32* %2
%101 = add nsw i32 %100, 2
%102 = and i32 %101, 128
%103 = icmp ne i32 %102, 0
%104 = zext i1 %103 to i64
%105 = select i1 %103, i32 1, i32 0
%106 = load i32, i32* %2
%107 = add nsw i32 %106, 2
%108 = and i32 %107, 64
%109 = icmp ne i32 %108, 0
%110 = zext i1 %109 to i64
%111 = select i1 %109, i32 1, i32 0
%112 = load i32, i32* %2
%113 = add nsw i32 %112, 2
%114 = and i32 %113, 32
%115 = icmp ne i32 %114, 0
%116 = zext i1 %115 to i64
%117 = select i1 %115, i32 1, i32 0
%118 = load i32, i32* %2
%119 = add nsw i32 %118, 2
%120 = and i32 %119, 16
%121 = icmp ne i32 %120, 0
%122 = zext i1 %121 to i64
%123 = select i1 %121, i32 1, i32 0
%124 = load i32, i32* %2
%125 = add nsw i32 %124, 2
%126 = and i32 %125, 8
%127 = icmp ne i32 %126, 0
%128 = zext i1 %127 to i64
%129 = select i1 %127, i32 1, i32 0
%130 = load i32, i32* %2
%131 = add nsw i32 %130, 2
%132 = and i32 %131, 4
%133 = icmp ne i32 %132, 0
%134 = zext i1 %133 to i64
%135 = select i1 %133, i32 1, i32 0
%136 = load i32, i32* %2
%137 = add nsw i32 %136, 2
%138 = and i32 %137, 2
%139 = icmp ne i32 %138, 0
%140 = zext i1 %139 to i64
%141 = select i1 %139, i32 1, i32 0
%142 = load i32, i32* %2
%143 = add nsw i32 %142, 2
%144 = and i32 %143, 1
%145 = icmp ne i32 %144, 0
%146 = zext i1 %145 to i64
%147 = select i1 %145, i32 1, i32 0
%148 = load i32, i32* %2
%149 = add nsw i32 %148, 3
%150 = and i32 %149, 128
%151 = icmp ne i32 %150, 0
%152 = zext i1 %151 to i64
%153 = select i1 %151, i32 1, i32 0
%154 = load i32, i32* %2
%155 = add nsw i32 %154, 3
%156 = and i32 %155, 64
%157 = icmp ne i32 %156, 0
%158 = zext i1 %157 to i64
%159 = select i1 %157, i32 1, i32 0
%160 = load i32, i32* %2
%161 = add nsw i32 %160, 3
%162 = and i32 %161, 32
%163 = icmp ne i32 %162, 0
%164 = zext i1 %163 to i64
%165 = select i1 %163, i32 1, i32 0
%166 = load i32, i32* %2
%167 = add nsw i32 %166, 3
%168 = and i32 %167, 16
%169 = icmp ne i32 %168, 0
%170 = zext i1 %169 to i64
%171 = select i1 %169, i32 1, i32 0
%172 = load i32, i32* %2
%173 = add nsw i32 %172, 3
%174 = and i32 %173, 8
%175 = icmp ne i32 %174, 0
%176 = zext i1 %175 to i64
%177 = select i1 %175, i32 1, i32 0
%178 = load i32, i32* %2
%179 = add nsw i32 %178, 3
%180 = and i32 %179, 4
%181 = icmp ne i32 %180, 0
%182 = zext i1 %181 to i64
%183 = select i1 %181, i32 1, i32 0
%184 = load i32, i32* %2
%185 = add nsw i32 %184, 3
%186 = and i32 %185, 2
%187 = icmp ne i32 %186, 0
%188 = zext i1 %187 to i64
%189 = select i1 %187, i32 1, i32 0
%190 = load i32, i32* %2
%191 = add nsw i32 %190, 3
%192 = and i32 %191, 1
%193 = icmp ne i32 %192, 0
%194 = zext i1 %193 to i64
%195 = select i1 %193, i32 1, i32 0
%196 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.2, i64 0, i64 0), i32 %16, i32 %21, i32 %26, i32 %31, i32 %36, i32 %41, i32 %46, i32 %51, i32 %57, i32 %63, i32 %69, i32 %75, i32 %81, i32 %87, i32 %93, i32 %99, i32 %105, i32 %111, i32 %117, i32 %123, i32 %129, i32 %135, i32 %141, i32 %147, i32 %153, i32 %159, i32 %165, i32 %171, i32 %177, i32 %183, i32 %189, i32 %195)
%197 = load i32, i32* %2
%198 = load i32, i32* %2
%199 = add nsw i32 %198, 1
%200 = load i32, i32* %2
%201 = add nsw i32 %200, 2
%202 = load i32, i32* %2
%203 = add nsw i32 %202, 3
%204 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([104 x i8], [104 x i8]* @.str.3, i64 0, i64 0), i32 %197, i32 %199, i32 %201, i32 %203)
%205 = load i32, i32* %2
%206 = load i32, i32* %2
%207 = add nsw i32 %206, 1
%208 = load i32, i32* %2
%209 = add nsw i32 %208, 2
%210 = load i32, i32* %2
%211 = add nsw i32 %210, 3
%212 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.4, i64 0, i64 0), i32 %205, i32 %207, i32 %209, i32 %211)
%213 = load i32, i32* %2
%214 = load i32, i32* %2
%215 = add nsw i32 %214, 1
%216 = load i32, i32* %2
%217 = add nsw i32 %216, 2
%218 = load i32, i32* %2
%219 = add nsw i32 %218, 3
%220 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([104 x i8], [104 x i8]* @.str.5, i64 0, i64 0), i32 %213, i32 %215, i32 %217, i32 %219)
ret void
}

LLVM IR (-O2):
@.str = [64 x i8] c"VAR = %10d\09\09VAR = %10d\09\09VAR = %10d\09\09VAR = %10d\0A\00"
@.str.2 = [152 x i8] c"\1B[1mBASE 2 =\1B[0m 0b%u%u%u%u%u%u%u%u\09\09\1B[1mBASE 2 =\1B[0m 0b%u%u%u%u%u%u%u%u\09\09\1B[1mBASE 2 =\1B[0m 0b%u%u%u%u%u%u%u%u\09\09\1B[1mBASE 2 =\1B[0m 0b%u%u%u%u%u%u%u%u\0A\00"
@.str.3 = [104 x i8] c"\1B[1mBASE 8 =\1B[0m 0o%08o\09\09\1B[1mBASE 8 =\1B[0m 0o%08o\09\09\1B[1mBASE 8 =\1B[0m 0o%08o\09\09\1B[1mBASE 8 =\1B[0m 0o%08o\0A\00"
@.str.4 = [100 x i8] c"\1B[1mBASE 10 =\1B[0m %010d\09\09\1B[1mBASE 10 =\1B[0m %010d\09\09\1B[1mBASE 10 =\1B[0m %010d\09\09\1B[1mBASE 10 =\1B[0m %010d\0A\00"
@.str.5 = [104 x i8] c"\1B[1mBASE 16 =\1B[0m 0x%08x\09\09\1B[1mBASE 16 =\1B[0m 0x%08x\09\09\1B[1mBASE 16 =\1B[0m 0x%08x\09\09\1B[1mBASE 16 =\1B[0m 0x%08x\0A\00"
@str = [87 x i8] c"--------------------\09\09--------------------\09\09--------------------\09\09--------------------\00"
define void @printf_base(i32 %0) {
%2 = add nsw i32 %0, 1
%3 = add nsw i32 %0, 2
%4 = add nsw i32 %0, 3
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %2, i32 %3, i32 %4)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str, i64 0, i64 0))
%7 = lshr i32 %0, 7
%8 = and i32 %7, 1
%9 = lshr i32 %0, 6
%10 = and i32 %9, 1
%11 = lshr i32 %0, 5
%12 = and i32 %11, 1
%13 = lshr i32 %0, 4
%14 = and i32 %13, 1
%15 = lshr i32 %0, 3
%16 = and i32 %15, 1
%17 = lshr i32 %0, 2
%18 = and i32 %17, 1
%19 = lshr i32 %0, 1
%20 = and i32 %19, 1
%21 = and i32 %0, 1
%22 = lshr i32 %2, 7
%23 = and i32 %22, 1
%24 = lshr i32 %2, 6
%25 = and i32 %24, 1
%26 = lshr i32 %2, 5
%27 = and i32 %26, 1
%28 = lshr i32 %2, 4
%29 = and i32 %28, 1
%30 = lshr i32 %2, 3
%31 = and i32 %30, 1
%32 = lshr i32 %2, 2
%33 = and i32 %32, 1
%34 = lshr i32 %2, 1
%35 = and i32 %34, 1
%36 = and i32 %2, 1
%37 = lshr i32 %3, 7
%38 = and i32 %37, 1
%39 = lshr i32 %3, 6
%40 = and i32 %39, 1
%41 = lshr i32 %3, 5
%42 = and i32 %41, 1
%43 = lshr i32 %3, 4
%44 = and i32 %43, 1
%45 = lshr i32 %3, 3
%46 = and i32 %45, 1
%47 = lshr i32 %3, 2
%48 = and i32 %47, 1
%49 = lshr i32 %3, 1
%50 = and i32 %49, 1
%51 = lshr i32 %4, 7
%52 = and i32 %51, 1
%53 = lshr i32 %4, 6
%54 = and i32 %53, 1
%55 = lshr i32 %4, 5
%56 = and i32 %55, 1
%57 = lshr i32 %4, 4
%58 = and i32 %57, 1
%59 = lshr i32 %4, 3
%60 = and i32 %59, 1
%61 = lshr i32 %4, 2
%62 = and i32 %61, 1
%63 = lshr i32 %4, 1
%64 = and i32 %63, 1
%65 = and i32 %4, 1
%66 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([152 x i8], [152 x i8]* @.str.2, i64 0, i64 0), i32 %8, i32 %10, i32 %12, i32 %14, i32 %16, i32 %18, i32 %20, i32 %21, i32 %23, i32 %25, i32 %27, i32 %29, i32 %31, i32 %33, i32 %35, i32 %36, i32 %38, i32 %40, i32 %42, i32 %44, i32 %46, i32 %48, i32 %50, i32 %21, i32 %52, i32 %54, i32 %56, i32 %58, i32 %60, i32 %62, i32 %64, i32 %65)
%67 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([104 x i8], [104 x i8]* @.str.3, i64 0, i64 0), i32 %0, i32 %2, i32 %3, i32 %4)
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([100 x i8], [100 x i8]* @.str.4, i64 0, i64 0), i32 %0, i32 %2, i32 %3, i32 %4)
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([104 x i8], [104 x i8]* @.str.5, i64 0, i64 0), i32 %0, i32 %2, i32 %3, i32 %4)
ret void
}