#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 */
typedef scalar_t__ v16;

/* Variables and functions */
int BITPOS(int);
int bitINT16(short, int);
int /*<<< orphan*/ printINT16(int);
int /*<<< orphan*/ printINT32(int);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, const char *argv[]) {
  short v16 = 0;
  printINT16(v16);
  if (((v16)&0x00000001))
    printf("Have One at 0\n");
  ((v16) |= 0x00000001);
  printINT16(v16);
  if (((v16)&0x00000001))
    printf("Have One at 0\n");
  ((v16) |= 0x00000002);
  printINT16(v16);
  if (v16 & 0x00000002)
    printf("Have One at 1\n");
  if (bitINT16(v16, 1) == 1)
    printf("Have One at 1\n");
  ((v16) &= ~0x00000002);
  printINT16(v16);
  if (v16 & 0x00000002)
    printf("Have One at 1\n");
  printINT16(0b0000000000000010);
  if (bitINT16(v16, 1) == 1)
    printf("Have One at 1\n");
  printINT16(0x0068);
  printINT16(0x00AF);
  printINT16(0x1702);
  printINT16((0xFFFF / 0x0080));
  printINT16(58594);
  printf("%d, %x\n", 58594, 58594);
  printINT16(0x8);
  printINT16(0x0023);
  char chCMD = 0;
  printINT16(chCMD);
  chCMD |= 0x18;
  printINT16(chCMD);
  chCMD <<= 3;
  printINT16(chCMD);
  unsigned short sCMD = chCMD;
  printINT16(sCMD);
  sCMD <<= 8;
  printINT16(sCMD);
  unsigned short nVolt = 0b1100000001101011;
  printINT16(nVolt);
  nVolt <<= 3;
  printINT16(nVolt);
  nVolt >>= 1;
  printINT16(nVolt);
  float fVolt = (nVolt * 3300.0 / 1024.0);
  printf("%.2f\n", fVolt);
  printf("%.2f\n", ((fVolt - 100.0) / 10.0) - 40.0);
  printf("%d %d\n", 0x44e10000, 0x44e10800);
  printINT32(0x44e10000);
  printINT32(0x44e10800);
  int nValue = 1;
  printINT32(nValue);
  printINT32(nValue + 1);
  printINT32(nValue << 2);
  printINT32(0x00000002);
  printINT32(0x00000004);
  printINT16(0b00000000);
  printINT16(0b00000111);
  printINT16(0b00100111);
  printINT16(0x37);
  printINT16(0x27);
  printINT16(0x1FFF);
  printINT16(0xFF);
  printINT32(0x2);
  printINT32(1 << 18);
  printINT16(1 << 4);
  printINT16(0x1F);
  int nS = 1;
  printINT32(nS);
  printINT32(nS >> (0 & 0x1F));
  printINT32(nS >> (1 & 0x1F));
  printINT32(nS >> (22 & 0x1F));
  int nV = 7 << 22;
  printINT32(7);
  printINT32(nV);
  printINT32(nV ^ nV);
  int nLSL = 0;
  nV = 1;
  nV = nV << (nLSL & 0x1F);
  printINT32(nV);
  nV = nV << (22 & 0x1F);
  printINT32(nV);
  int nR6 = 0;
  nR6 = nR6 | nV;
  printINT32(nR6);
  nLSL = nLSL + 1;
  nV = 1;
  nV = nV << (nLSL & 0x1F);
  nV = nV << (22 & 0x1F);
  nR6 = nR6 | nV;
  printINT32(nR6);
  nLSL = nLSL + 1;
  nV = 1;
  nV = nV << (nLSL & 0x1F);
  nV = nV << (22 & 0x1F);
  nR6 = nR6 | nV;
  printINT32(nR6);
  printINT32(0x44E11FFF - 0x44E10000);
  printf("%x\n", 8191);
  printINT32(0x01800000);
  printINT32(0x00780000);
  printINT32(131);
  printINT32(643);
  printINT32(0x00000080);
  printINT32(0x00001000);
  printf("%d\n", BITPOS(0x00001000));
  printINT32(0x660000E3);
  printINT32(0x00F42400);
  printINT32(0x02FAF080);
  printf("0x%x\n", 0x02FAF080 * 2);
  printINT32(1 << 0);
  printINT32(1 << 1);
  printINT32(1 << 2);
  printINT32(20);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movw   $0x0,-0x12(%rbp)
movswl -0x12(%rbp),%edi
call   1040 <printINT16@plt>
movswl -0x12(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1193 <main+0x43>
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movswl -0x12(%rbp),%eax
or     $0x1,%eax
mov    %ax,-0x12(%rbp)
movswl -0x12(%rbp),%edi
call   1040 <printINT16@plt>
movswl -0x12(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     11c5 <main+0x75>
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movswl -0x12(%rbp),%eax
or     $0x2,%eax
mov    %ax,-0x12(%rbp)
movswl -0x12(%rbp),%edi
call   1040 <printINT16@plt>
movswl -0x12(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     11f7 <main+0xa7>
lea    0xe47(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1,%esi
movswl -0x12(%rbp),%edi
call   1060 <bitINT16@plt>
cmp    $0x1,%eax
jne    121c <main+0xcc>
lea    0xe22(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movswl -0x12(%rbp),%eax
and    $0xfffffffd,%eax
mov    %ax,-0x12(%rbp)
movswl -0x12(%rbp),%edi
call   1040 <printINT16@plt>
movswl -0x12(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     124e <main+0xfe>
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x2,%edi
call   1040 <printINT16@plt>
mov    $0x1,%esi
movswl -0x12(%rbp),%edi
call   1060 <bitINT16@plt>
cmp    $0x1,%eax
jne    127d <main+0x12d>
lea    0xdc1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x68,%edi
call   1040 <printINT16@plt>
mov    $0xaf,%edi
call   1040 <printINT16@plt>
mov    $0x1702,%edi
call   1040 <printINT16@plt>
mov    $0x1ff,%edi
call   1040 <printINT16@plt>
mov    $0xe4e2,%edi
call   1040 <printINT16@plt>
lea    0xd90(%rip),%rdi
mov    $0xe4e2,%edx
mov    %edx,%esi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x8,%edi
call   1040 <printINT16@plt>
mov    $0x23,%edi
call   1040 <printINT16@plt>
movb   $0x0,-0x13(%rbp)
movsbl -0x13(%rbp),%edi
call   1040 <printINT16@plt>
movsbl -0x13(%rbp),%eax
or     $0x18,%eax
mov    %al,-0x13(%rbp)
movsbl -0x13(%rbp),%edi
call   1040 <printINT16@plt>
movsbl -0x13(%rbp),%eax
shl    $0x3,%eax
mov    %al,-0x13(%rbp)
movsbl -0x13(%rbp),%edi
call   1040 <printINT16@plt>
movsbl -0x13(%rbp),%eax
mov    %ax,-0x16(%rbp)
movzwl -0x16(%rbp),%edi
call   1040 <printINT16@plt>
movzwl -0x16(%rbp),%eax
shl    $0x8,%eax
mov    %ax,-0x16(%rbp)
movzwl -0x16(%rbp),%edi
call   1040 <printINT16@plt>
movw   $0xc06b,-0x18(%rbp)
movzwl -0x18(%rbp),%edi
call   1040 <printINT16@plt>
movzwl -0x18(%rbp),%eax
shl    $0x3,%eax
mov    %ax,-0x18(%rbp)
movzwl -0x18(%rbp),%edi
call   1040 <printINT16@plt>
movzwl -0x18(%rbp),%eax
sar    $0x1,%eax
mov    %ax,-0x18(%rbp)
movzwl -0x18(%rbp),%edi
call   1040 <printINT16@plt>
movzwl -0x18(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  0xca9(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xc95(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcae(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc58(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xc44(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xc30(%rip),%xmm1
subsd  %xmm1,%xmm0
lea    0xc73(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xc6b(%rip),%rdi
mov    $0x44e10000,%esi
mov    $0x44e10800,%edx
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x44e10000,%edi
call   1070 <printINT32@plt>
mov    $0x44e10800,%edi
call   1070 <printINT32@plt>
movl   $0x1,-0x20(%rbp)
mov    -0x20(%rbp),%edi
call   1070 <printINT32@plt>
mov    -0x20(%rbp),%edi
add    $0x1,%edi
call   1070 <printINT32@plt>
mov    -0x20(%rbp),%edi
shl    $0x2,%edi
call   1070 <printINT32@plt>
mov    $0x2,%edi
call   1070 <printINT32@plt>
mov    $0x4,%edi
call   1070 <printINT32@plt>
xor    %edi,%edi
call   1040 <printINT16@plt>
mov    $0x7,%edi
call   1040 <printINT16@plt>
mov    $0x27,%edi
call   1040 <printINT16@plt>
mov    $0x37,%edi
call   1040 <printINT16@plt>
mov    $0x27,%edi
call   1040 <printINT16@plt>
mov    $0x1fff,%edi
call   1040 <printINT16@plt>
mov    $0xff,%edi
call   1040 <printINT16@plt>
mov    $0x2,%edi
call   1070 <printINT32@plt>
mov    $0x40000,%edi
call   1070 <printINT32@plt>
mov    $0x10,%edi
call   1040 <printINT16@plt>
mov    $0x1f,%edi
call   1040 <printINT16@plt>
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%edi
call   1070 <printINT32@plt>
mov    -0x24(%rbp),%edi
sar    $0x0,%edi
call   1070 <printINT32@plt>
mov    -0x24(%rbp),%edi
sar    $0x1,%edi
call   1070 <printINT32@plt>
mov    -0x24(%rbp),%edi
sar    $0x16,%edi
call   1070 <printINT32@plt>
movl   $0x1c00000,-0x28(%rbp)
mov    $0x7,%edi
call   1070 <printINT32@plt>
mov    -0x28(%rbp),%edi
call   1070 <printINT32@plt>
mov    -0x28(%rbp),%edi
xor    -0x28(%rbp),%edi
call   1070 <printINT32@plt>
movl   $0x0,-0x2c(%rbp)
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    -0x2c(%rbp),%ecx
and    $0x1f,%ecx
shl    %cl,%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%edi
call   1070 <printINT32@plt>
mov    -0x28(%rbp),%eax
shl    $0x16,%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%edi
call   1070 <printINT32@plt>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
or     -0x28(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%edi
call   1070 <printINT32@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    -0x2c(%rbp),%ecx
and    $0x1f,%ecx
shl    %cl,%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
shl    $0x16,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%eax
or     -0x28(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%edi
call   1070 <printINT32@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    -0x2c(%rbp),%ecx
and    $0x1f,%ecx
shl    %cl,%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
shl    $0x16,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%eax
or     -0x28(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%edi
call   1070 <printINT32@plt>
mov    $0x1fff,%edi
call   1070 <printINT32@plt>
lea    0xa76(%rip),%rdi
mov    $0x1fff,%esi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1800000,%edi
call   1070 <printINT32@plt>
mov    $0x780000,%edi
call   1070 <printINT32@plt>
mov    $0x83,%edi
call   1070 <printINT32@plt>
mov    $0x283,%edi
call   1070 <printINT32@plt>
mov    $0x80,%edi
call   1070 <printINT32@plt>
mov    $0x1000,%edi
call   1070 <printINT32@plt>
mov    $0x1000,%edi
call   1030 <BITPOS@plt>
mov    %eax,%esi
lea    0xa28(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x660000e3,%edi
call   1070 <printINT32@plt>
mov    $0xf42400,%edi
call   1070 <printINT32@plt>
mov    $0x2faf080,%edi
call   1070 <printINT32@plt>
lea    0xa00(%rip),%rdi
mov    $0x5f5e100,%esi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1,%edi
call   1070 <printINT32@plt>
mov    $0x2,%edi
call   1070 <printINT32@plt>
mov    $0x4,%edi
call   1070 <printINT32@plt>
mov    $0x14,%edi
call   1070 <printINT32@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %edi,%edi
call   1050 <printINT16@plt>
mov    $0x1,%edi
call   1050 <printINT16@plt>
lea    0xeb2(%rip),%rdi
call   1040 <puts@plt>
mov    $0x3,%edi
call   1050 <printINT16@plt>
lea    0xeaa(%rip),%rdi
call   1040 <puts@plt>
mov    $0x3,%edi
mov    $0x1,%esi
call   1070 <bitINT16@plt>
cmp    $0x1,%eax
jne    11b4 <main+0x54>
lea    0xe8a(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1050 <printINT16@plt>
mov    $0x2,%edi
call   1050 <printINT16@plt>
mov    $0x1,%edi
mov    $0x1,%esi
call   1070 <bitINT16@plt>
cmp    $0x1,%eax
jne    11e8 <main+0x88>
lea    0xe56(%rip),%rdi
call   1040 <puts@plt>
mov    $0x68,%edi
call   1050 <printINT16@plt>
mov    $0xaf,%edi
call   1050 <printINT16@plt>
mov    $0x1702,%edi
call   1050 <printINT16@plt>
mov    $0x1ff,%edi
call   1050 <printINT16@plt>
mov    $0xe4e2,%edi
call   1050 <printINT16@plt>
lea    0xdef(%rip),%rdi
mov    $0xe4e2,%esi
mov    $0xe4e2,%edx
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x8,%edi
call   1050 <printINT16@plt>
mov    $0x23,%edi
call   1050 <printINT16@plt>
xor    %edi,%edi
call   1050 <printINT16@plt>
mov    $0x18,%edi
call   1050 <printINT16@plt>
mov    $0xffffffc0,%edi
call   1050 <printINT16@plt>
mov    $0xffc0,%edi
call   1050 <printINT16@plt>
mov    $0xc000,%edi
call   1050 <printINT16@plt>
mov    $0xc06b,%edi
call   1050 <printINT16@plt>
mov    $0x358,%edi
call   1050 <printINT16@plt>
mov    $0x1ac,%edi
call   1050 <printINT16@plt>
lea    0xd7e(%rip),%rbx
movsd  0xd5e(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xd54(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xd59(%rip),%rdi
mov    $0x44e10000,%esi
mov    $0x44e10800,%edx
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x44e10000,%edi
call   1080 <printINT32@plt>
mov    $0x44e10800,%edi
call   1080 <printINT32@plt>
mov    $0x1,%edi
call   1080 <printINT32@plt>
mov    $0x2,%edi
call   1080 <printINT32@plt>
mov    $0x4,%edi
call   1080 <printINT32@plt>
mov    $0x2,%edi
call   1080 <printINT32@plt>
mov    $0x4,%edi
call   1080 <printINT32@plt>
xor    %edi,%edi
call   1050 <printINT16@plt>
mov    $0x7,%edi
call   1050 <printINT16@plt>
mov    $0x27,%edi
call   1050 <printINT16@plt>
mov    $0x37,%edi
call   1050 <printINT16@plt>
mov    $0x27,%edi
call   1050 <printINT16@plt>
mov    $0x1fff,%edi
call   1050 <printINT16@plt>
mov    $0xff,%edi
call   1050 <printINT16@plt>
mov    $0x2,%edi
call   1080 <printINT32@plt>
mov    $0x40000,%edi
call   1080 <printINT32@plt>
mov    $0x10,%edi
call   1050 <printINT16@plt>
mov    $0x1f,%edi
call   1050 <printINT16@plt>
mov    $0x1,%edi
call   1080 <printINT32@plt>
mov    $0x1,%edi
call   1080 <printINT32@plt>
xor    %edi,%edi
call   1080 <printINT32@plt>
xor    %edi,%edi
call   1080 <printINT32@plt>
mov    $0x7,%edi
call   1080 <printINT32@plt>
mov    $0x1c00000,%edi
call   1080 <printINT32@plt>
xor    %edi,%edi
call   1080 <printINT32@plt>
mov    $0x1,%edi
call   1080 <printINT32@plt>
mov    $0x400000,%edi
call   1080 <printINT32@plt>
mov    $0x400000,%edi
call   1080 <printINT32@plt>
mov    $0xc00000,%edi
call   1080 <printINT32@plt>
mov    $0x1c00000,%edi
call   1080 <printINT32@plt>
mov    $0x1fff,%edi
call   1080 <printINT32@plt>
lea    0xc0d(%rip),%rdi
mov    $0x1fff,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1800000,%edi
call   1080 <printINT32@plt>
mov    $0x780000,%edi
call   1080 <printINT32@plt>
mov    $0x83,%edi
call   1080 <printINT32@plt>
mov    $0x283,%edi
call   1080 <printINT32@plt>
mov    $0x80,%edi
call   1080 <printINT32@plt>
mov    $0x1000,%edi
call   1080 <printINT32@plt>
mov    $0x1000,%edi
call   1030 <BITPOS@plt>
lea    0xbc1(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x660000e3,%edi
call   1080 <printINT32@plt>
mov    $0xf42400,%edi
call   1080 <printINT32@plt>
mov    $0x2faf080,%edi
call   1080 <printINT32@plt>
lea    0xb97(%rip),%rdi
mov    $0x5f5e100,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1,%edi
call   1080 <printINT32@plt>
mov    $0x2,%edi
call   1080 <printINT32@plt>
mov    $0x4,%edi
call   1080 <printINT32@plt>
mov    $0x14,%edi
call   1080 <printINT32@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [15 x i8] c"Have One at 0\0A\00"
@.str.1 = [15 x i8] c"Have One at 1\0A\00"
@.str.2 = [8 x i8] c"%d, %x\0A\00"
@.str.3 = [6 x i8] c"%.2f\0A\00"
@.str.4 = [7 x i8] c"%d %d\0A\00"
@.str.5 = [4 x i8] c"%x\0A\00"
@.str.6 = [4 x i8] c"%d\0A\00"
@.str.7 = [6 x i8] c"0x%x\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i16
%7 = alloca i8
%8 = alloca i16
%9 = alloca i16
%10 = alloca float
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i16 0, i16* %6
%16 = load i16, i16* %6
%17 = sext i16 %16 to i32
%18 = call i32 @printINT16(i32 %17)
%19 = load i16, i16* %6
%20 = sext i16 %19 to i32
%21 = and i32 %20, 1
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %2
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
br label %25
25: ; preds = %23, %2
%26 = load i16, i16* %6
%27 = sext i16 %26 to i32
%28 = or i32 %27, 1
%29 = trunc i32 %28 to i16
store i16 %29, i16* %6
%30 = load i16, i16* %6
%31 = sext i16 %30 to i32
%32 = call i32 @printINT16(i32 %31)
%33 = load i16, i16* %6
%34 = sext i16 %33 to i32
%35 = and i32 %34, 1
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %25
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
br label %39
39: ; preds = %37, %25
%40 = load i16, i16* %6
%41 = sext i16 %40 to i32
%42 = or i32 %41, 2
%43 = trunc i32 %42 to i16
store i16 %43, i16* %6
%44 = load i16, i16* %6
%45 = sext i16 %44 to i32
%46 = call i32 @printINT16(i32 %45)
%47 = load i16, i16* %6
%48 = sext i16 %47 to i32
%49 = and i32 %48, 2
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %39
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %53
53: ; preds = %51, %39
%54 = load i16, i16* %6
%55 = call i32 @bitINT16(i16 signext %54, i32 1)
%56 = icmp eq i32 %55, 1
br i1 %56, label %57, label %59
57: ; preds = %53
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %59
59: ; preds = %57, %53
%60 = load i16, i16* %6
%61 = sext i16 %60 to i32
%62 = and i32 %61, -3
%63 = trunc i32 %62 to i16
store i16 %63, i16* %6
%64 = load i16, i16* %6
%65 = sext i16 %64 to i32
%66 = call i32 @printINT16(i32 %65)
%67 = load i16, i16* %6
%68 = sext i16 %67 to i32
%69 = and i32 %68, 2
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %59
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %73
73: ; preds = %71, %59
%74 = call i32 @printINT16(i32 2)
%75 = load i16, i16* %6
%76 = call i32 @bitINT16(i16 signext %75, i32 1)
%77 = icmp eq i32 %76, 1
br i1 %77, label %78, label %80
78: ; preds = %73
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %80
80: ; preds = %78, %73
%81 = call i32 @printINT16(i32 104)
%82 = call i32 @printINT16(i32 175)
%83 = call i32 @printINT16(i32 5890)
%84 = call i32 @printINT16(i32 511)
%85 = call i32 @printINT16(i32 58594)
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 58594, i32 58594)
%87 = call i32 @printINT16(i32 8)
%88 = call i32 @printINT16(i32 35)
store i8 0, i8* %7
%89 = load i8, i8* %7
%90 = sext i8 %89 to i32
%91 = call i32 @printINT16(i32 %90)
%92 = load i8, i8* %7
%93 = sext i8 %92 to i32
%94 = or i32 %93, 24
%95 = trunc i32 %94 to i8
store i8 %95, i8* %7
%96 = load i8, i8* %7
%97 = sext i8 %96 to i32
%98 = call i32 @printINT16(i32 %97)
%99 = load i8, i8* %7
%100 = sext i8 %99 to i32
%101 = shl i32 %100, 3
%102 = trunc i32 %101 to i8
store i8 %102, i8* %7
%103 = load i8, i8* %7
%104 = sext i8 %103 to i32
%105 = call i32 @printINT16(i32 %104)
%106 = load i8, i8* %7
%107 = sext i8 %106 to i16
store i16 %107, i16* %8
%108 = load i16, i16* %8
%109 = zext i16 %108 to i32
%110 = call i32 @printINT16(i32 %109)
%111 = load i16, i16* %8
%112 = zext i16 %111 to i32
%113 = shl i32 %112, 8
%114 = trunc i32 %113 to i16
store i16 %114, i16* %8
%115 = load i16, i16* %8
%116 = zext i16 %115 to i32
%117 = call i32 @printINT16(i32 %116)
store i16 -16277, i16* %9
%118 = load i16, i16* %9
%119 = zext i16 %118 to i32
%120 = call i32 @printINT16(i32 %119)
%121 = load i16, i16* %9
%122 = zext i16 %121 to i32
%123 = shl i32 %122, 3
%124 = trunc i32 %123 to i16
store i16 %124, i16* %9
%125 = load i16, i16* %9
%126 = zext i16 %125 to i32
%127 = call i32 @printINT16(i32 %126)
%128 = load i16, i16* %9
%129 = zext i16 %128 to i32
%130 = ashr i32 %129, 1
%131 = trunc i32 %130 to i16
store i16 %131, i16* %9
%132 = load i16, i16* %9
%133 = zext i16 %132 to i32
%134 = call i32 @printINT16(i32 %133)
%135 = load i16, i16* %9
%136 = zext i16 %135 to i32
%137 = sitofp i32 %136 to double
%138 = fmul double %137, 3.300000e+03
%139 = fdiv double %138, 1.024000e+03
%140 = fptrunc double %139 to float
store float %140, float* %10
%141 = load float, float* %10
%142 = fpext float %141 to double
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), double %142)
%144 = load float, float* %10
%145 = fpext float %144 to double
%146 = fsub double %145, 1.000000e+02
%147 = fdiv double %146, 1.000000e+01
%148 = fsub double %147, 4.000000e+01
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), double %148)
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 1155596288, i32 1155598336)
%151 = call i32 @printINT32(i32 1155596288)
%152 = call i32 @printINT32(i32 1155598336)
store i32 1, i32* %11
%153 = load i32, i32* %11
%154 = call i32 @printINT32(i32 %153)
%155 = load i32, i32* %11
%156 = add nsw i32 %155, 1
%157 = call i32 @printINT32(i32 %156)
%158 = load i32, i32* %11
%159 = shl i32 %158, 2
%160 = call i32 @printINT32(i32 %159)
%161 = call i32 @printINT32(i32 2)
%162 = call i32 @printINT32(i32 4)
%163 = call i32 @printINT16(i32 0)
%164 = call i32 @printINT16(i32 7)
%165 = call i32 @printINT16(i32 39)
%166 = call i32 @printINT16(i32 55)
%167 = call i32 @printINT16(i32 39)
%168 = call i32 @printINT16(i32 8191)
%169 = call i32 @printINT16(i32 255)
%170 = call i32 @printINT32(i32 2)
%171 = call i32 @printINT32(i32 262144)
%172 = call i32 @printINT16(i32 16)
%173 = call i32 @printINT16(i32 31)
store i32 1, i32* %12
%174 = load i32, i32* %12
%175 = call i32 @printINT32(i32 %174)
%176 = load i32, i32* %12
%177 = ashr i32 %176, 0
%178 = call i32 @printINT32(i32 %177)
%179 = load i32, i32* %12
%180 = ashr i32 %179, 1
%181 = call i32 @printINT32(i32 %180)
%182 = load i32, i32* %12
%183 = ashr i32 %182, 22
%184 = call i32 @printINT32(i32 %183)
store i32 29360128, i32* %13
%185 = call i32 @printINT32(i32 7)
%186 = load i32, i32* %13
%187 = call i32 @printINT32(i32 %186)
%188 = load i32, i32* %13
%189 = load i32, i32* %13
%190 = xor i32 %188, %189
%191 = call i32 @printINT32(i32 %190)
store i32 0, i32* %14
store i32 1, i32* %13
%192 = load i32, i32* %13
%193 = load i32, i32* %14
%194 = and i32 %193, 31
%195 = shl i32 %192, %194
store i32 %195, i32* %13
%196 = load i32, i32* %13
%197 = call i32 @printINT32(i32 %196)
%198 = load i32, i32* %13
%199 = shl i32 %198, 22
store i32 %199, i32* %13
%200 = load i32, i32* %13
%201 = call i32 @printINT32(i32 %200)
store i32 0, i32* %15
%202 = load i32, i32* %15
%203 = load i32, i32* %13
%204 = or i32 %202, %203
store i32 %204, i32* %15
%205 = load i32, i32* %15
%206 = call i32 @printINT32(i32 %205)
%207 = load i32, i32* %14
%208 = add nsw i32 %207, 1
store i32 %208, i32* %14
store i32 1, i32* %13
%209 = load i32, i32* %13
%210 = load i32, i32* %14
%211 = and i32 %210, 31
%212 = shl i32 %209, %211
store i32 %212, i32* %13
%213 = load i32, i32* %13
%214 = shl i32 %213, 22
store i32 %214, i32* %13
%215 = load i32, i32* %15
%216 = load i32, i32* %13
%217 = or i32 %215, %216
store i32 %217, i32* %15
%218 = load i32, i32* %15
%219 = call i32 @printINT32(i32 %218)
%220 = load i32, i32* %14
%221 = add nsw i32 %220, 1
store i32 %221, i32* %14
store i32 1, i32* %13
%222 = load i32, i32* %13
%223 = load i32, i32* %14
%224 = and i32 %223, 31
%225 = shl i32 %222, %224
store i32 %225, i32* %13
%226 = load i32, i32* %13
%227 = shl i32 %226, 22
store i32 %227, i32* %13
%228 = load i32, i32* %15
%229 = load i32, i32* %13
%230 = or i32 %228, %229
store i32 %230, i32* %15
%231 = load i32, i32* %15
%232 = call i32 @printINT32(i32 %231)
%233 = call i32 @printINT32(i32 8191)
%234 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 8191)
%235 = call i32 @printINT32(i32 25165824)
%236 = call i32 @printINT32(i32 7864320)
%237 = call i32 @printINT32(i32 131)
%238 = call i32 @printINT32(i32 643)
%239 = call i32 @printINT32(i32 128)
%240 = call i32 @printINT32(i32 4096)
%241 = call i32 @BITPOS(i32 4096)
%242 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %241)
%243 = call i32 @printINT32(i32 1711276259)
%244 = call i32 @printINT32(i32 16000000)
%245 = call i32 @printINT32(i32 50000000)
%246 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 100000000)
%247 = call i32 @printINT32(i32 1)
%248 = call i32 @printINT32(i32 2)
%249 = call i32 @printINT32(i32 4)
%250 = call i32 @printINT32(i32 20)
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [8 x i8] c"%d, %x\0A\00"
@.str.3 = [6 x i8] c"%.2f\0A\00"
@.str.4 = [7 x i8] c"%d %d\0A\00"
@.str.5 = [4 x i8] c"%x\0A\00"
@.str.6 = [4 x i8] c"%d\0A\00"
@.str.7 = [6 x i8] c"0x%x\0A\00"
@str = [14 x i8] c"Have One at 0\00"
@str.10 = [14 x i8] c"Have One at 1\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printINT16(i32 0)
%4 = tail call i32 @printINT16(i32 1)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @printINT16(i32 3)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.10, i64 0, i64 0))
%8 = tail call i32 @bitINT16(i16 signext 3, i32 1)
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.10, i64 0, i64 0))
br label %12
12: ; preds = %10, %2
%13 = tail call i32 @printINT16(i32 1)
%14 = tail call i32 @printINT16(i32 2)
%15 = tail call i32 @bitINT16(i16 signext 1, i32 1)
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %19
17: ; preds = %12
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.10, i64 0, i64 0))
br label %19
19: ; preds = %17, %12
%20 = tail call i32 @printINT16(i32 104)
%21 = tail call i32 @printINT16(i32 175)
%22 = tail call i32 @printINT16(i32 5890)
%23 = tail call i32 @printINT16(i32 511)
%24 = tail call i32 @printINT16(i32 58594)
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 58594, i32 58594)
%26 = tail call i32 @printINT16(i32 8)
%27 = tail call i32 @printINT16(i32 35)
%28 = tail call i32 @printINT16(i32 0)
%29 = tail call i32 @printINT16(i32 24)
%30 = tail call i32 @printINT16(i32 -64)
%31 = tail call i32 @printINT16(i32 65472)
%32 = tail call i32 @printINT16(i32 49152)
%33 = tail call i32 @printINT16(i32 49259)
%34 = tail call i32 @printINT16(i32 856)
%35 = tail call i32 @printINT16(i32 428)
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), double 0x40958D3000000000)
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), double 0x4055FB8000000000)
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 1155596288, i32 1155598336)
%39 = tail call i32 @printINT32(i32 1155596288)
%40 = tail call i32 @printINT32(i32 1155598336)
%41 = tail call i32 @printINT32(i32 1)
%42 = tail call i32 @printINT32(i32 2)
%43 = tail call i32 @printINT32(i32 4)
%44 = tail call i32 @printINT32(i32 2)
%45 = tail call i32 @printINT32(i32 4)
%46 = tail call i32 @printINT16(i32 0)
%47 = tail call i32 @printINT16(i32 7)
%48 = tail call i32 @printINT16(i32 39)
%49 = tail call i32 @printINT16(i32 55)
%50 = tail call i32 @printINT16(i32 39)
%51 = tail call i32 @printINT16(i32 8191)
%52 = tail call i32 @printINT16(i32 255)
%53 = tail call i32 @printINT32(i32 2)
%54 = tail call i32 @printINT32(i32 262144)
%55 = tail call i32 @printINT16(i32 16)
%56 = tail call i32 @printINT16(i32 31)
%57 = tail call i32 @printINT32(i32 1)
%58 = tail call i32 @printINT32(i32 1)
%59 = tail call i32 @printINT32(i32 0)
%60 = tail call i32 @printINT32(i32 0)
%61 = tail call i32 @printINT32(i32 7)
%62 = tail call i32 @printINT32(i32 29360128)
%63 = tail call i32 @printINT32(i32 0)
%64 = tail call i32 @printINT32(i32 1)
%65 = tail call i32 @printINT32(i32 4194304)
%66 = tail call i32 @printINT32(i32 4194304)
%67 = tail call i32 @printINT32(i32 12582912)
%68 = tail call i32 @printINT32(i32 29360128)
%69 = tail call i32 @printINT32(i32 8191)
%70 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 8191)
%71 = tail call i32 @printINT32(i32 25165824)
%72 = tail call i32 @printINT32(i32 7864320)
%73 = tail call i32 @printINT32(i32 131)
%74 = tail call i32 @printINT32(i32 643)
%75 = tail call i32 @printINT32(i32 128)
%76 = tail call i32 @printINT32(i32 4096)
%77 = tail call i32 @BITPOS(i32 4096)
%78 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %77)
%79 = tail call i32 @printINT32(i32 1711276259)
%80 = tail call i32 @printINT32(i32 16000000)
%81 = tail call i32 @printINT32(i32 50000000)
%82 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 100000000)
%83 = tail call i32 @printINT32(i32 1)
%84 = tail call i32 @printINT32(i32 2)
%85 = tail call i32 @printINT32(i32 4)
%86 = tail call i32 @printINT32(i32 20)
ret i32 0
}