#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 bit_get(unsigned char *, int);
int /*<<< orphan*/ bit_rot_left(unsigned char *, int, int);
int /*<<< orphan*/ bit_set(unsigned char *, int, int);
int /*<<< orphan*/ bit_xor(unsigned char *, unsigned char *, unsigned char *,
                           int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stdout;
int main(int argc, char **argv) {
  unsigned char bits1[8], bits2[8], bits3[8];
  int i;
  for (i = 0; i < 8; i++) {
    bits1[i] = 0x00;
    bits2[i] = 0x00;
    bits3[i] = 0x00;
  }
  fprintf(stdout, "Initially\n");
  fprintf(stdout, "-> bits1: %02x %02x %02x %02x %02x %02x %02x %02x\n",
          bits1[0], bits1[1], bits1[2], bits1[3], bits1[4], bits1[5], bits1[6],
          bits1[7]);
  fprintf(stdout, "-> bits2: %02x %02x %02x %02x %02x %02x %02x %02x\n",
          bits2[0], bits2[1], bits2[2], bits2[3], bits2[4], bits2[5], bits2[6],
          bits2[7]);
  bit_set(bits1, 15, 1);
  bit_set(bits1, 16, 1);
  bit_set(bits1, 32, 1);
  bit_set(bits1, 63, 1);
  bit_set(bits2, 0, 1);
  bit_set(bits2, 15, 1);
  fprintf(
      stdout,
      "After setting bits 15, 16, 32, 63 of bits1 and bits 00, 15 of bits2\n");
  fprintf(stdout, "-> bits1: %02x %02x %02x %02x %02x %02x %02x %02x\n",
          bits1[0], bits1[1], bits1[2], bits1[3], bits1[4], bits1[5], bits1[6],
          bits1[7]);
  fprintf(stdout, "-> bits2: %02x %02x %02x %02x %02x %02x %02x %02x\n",
          bits2[0], bits2[1], bits2[2], bits2[3], bits2[4], bits2[5], bits2[6],
          bits2[7]);
  fprintf(stdout, "Bit 63 of bits1 is %d\n", bit_get(bits1, 63));
  fprintf(stdout, "Bit 62 of bits1 is %d\n", bit_get(bits1, 62));
  fprintf(stdout, "Bit 00 of bits2 is %d\n", bit_get(bits2, 0));
  fprintf(stdout, "Bit 01 of bits2 is %d\n", bit_get(bits2, 1));
  bit_xor(bits1, bits2, bits3, 32);
  fprintf(stdout, "bits3 is bits1 XOR bits2 (32 bits)\n");
  fprintf(stdout, "-> bits3: %02x %02x %02x %02x %02x %02x %02x %02x\n",
          bits3[0], bits3[1], bits3[2], bits3[3], bits3[4], bits3[5], bits3[6],
          bits3[7]);
  bit_xor(bits1, bits2, bits3, 64);
  fprintf(stdout, "bits3 is bits1 XOR bits2 (64 bits)\n");
  fprintf(stdout, "-> bits3: %02x %02x %02x %02x %02x %02x %02x %02x\n",
          bits3[0], bits3[1], bits3[2], bits3[3], bits3[4], bits3[5], bits3[6],
          bits3[7]);
  bit_rot_left(bits1, 64, 1);
  fprintf(stdout, "After rotating bits1 left x 1 (64 bits)\n");
  fprintf(stdout, "-> bits1: %02x %02x %02x %02x %02x %02x %02x %02x\n",
          bits1[0], bits1[1], bits1[2], bits1[3], bits1[4], bits1[5], bits1[6],
          bits1[7]);
  bit_rot_left(bits2, 64, 1);
  fprintf(stdout, "After rotating bits2 left x 1 (64 bits)\n");
  fprintf(stdout, "-> bits2: %02x %02x %02x %02x %02x %02x %02x %02x\n",
          bits2[0], bits2[1], bits2[2], bits2[3], bits2[4], bits2[5], bits2[6],
          bits2[7]);
  bit_rot_left(bits2, 16, 7);
  fprintf(stdout, "After rotating bits2 left x 7 (16 bits)\n");
  fprintf(stdout, "-> bits2: %02x %02x %02x %02x %02x %02x %02x %02x\n",
          bits2[0], bits2[1], bits2[2], bits2[3], bits2[4], bits2[5], bits2[6],
          bits2[7]);
  bit_rot_left(bits2, 8, 2);
  fprintf(stdout, "After rotating bits2 left x 2 (8 bits)\n");
  fprintf(stdout, "-> bits2: %02x %02x %02x %02x %02x %02x %02x %02x\n",
          bits2[0], bits2[1], bits2[2], bits2[3], bits2[4], bits2[5], bits2[6],
          bits2[7]);
  for (i = 0; i < 8; i++) {
    bits2[i] = 0x00;
  }
  bit_set(bits2, 0, 1);
  bit_set(bits2, 3, 1);
  bit_set(bits2, 8, 1);
  bit_set(bits2, 27, 1);
  fprintf(stdout, "After clearing and setting bits 0, 3, 8, 27 of bits2\n");
  fprintf(stdout, "-> bits2: %02x %02x %02x %02x %02x %02x %02x %02x\n",
          bits2[0], bits2[1], bits2[2], bits2[3], bits2[4], bits2[5], bits2[6],
          bits2[7]);
  bit_rot_left(bits2, 11, 6);
  fprintf(stdout, "After rotating bits2 left x 6 (11 bits)\n");
  fprintf(stdout, "-> bits2: %02x %02x %02x %02x %02x %02x %02x %02x\n",
          bits2[0], bits2[1], bits2[2], bits2[3], bits2[4], bits2[5], bits2[6],
          bits2[7]);
  for (i = 0; i < 8; i++) {
    bits2[i] = 0x00;
  }
  bit_set(bits2, 0, 1);
  bit_set(bits2, 3, 1);
  bit_set(bits2, 8, 1);
  bit_set(bits2, 27, 1);
  fprintf(stdout, "After clearing and setting bits 0, 3, 8, 27 of bits2\n");
  fprintf(stdout, "-> bits2: %02x %02x %02x %02x %02x %02x %02x %02x\n",
          bits2[0], bits2[1], bits2[2], bits2[3], bits2[4], bits2[5], bits2[6],
          bits2[7]);
  bit_rot_left(bits2, 28, 4);
  fprintf(stdout, "After rotating bits2 left x 4 (28 bits)\n");
  fprintf(stdout, "-> bits2: %02x %02x %02x %02x %02x %02x %02x %02x\n",
          bits2[0], bits2[1], bits2[2], bits2[3], bits2[4], bits2[5], bits2[6],
          bits2[7]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x68,%rsp
movl   $0x0,-0xc(%rbp)
mov    %edi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x8,-0x34(%rbp)
jge    11a1 <main+0x51>
movslq -0x34(%rbp),%rax
movb   $0x0,-0x20(%rbp,%rax,1)
movslq -0x34(%rbp),%rax
movb   $0x0,-0x28(%rbp,%rax,1)
movslq -0x34(%rbp),%rax
movb   $0x0,-0x30(%rbp,%rax,1)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    116e <main+0x1e>
mov    0x2e38(%rip),%rax
mov    (%rax),%edi
lea    0xe4f(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2e21(%rip),%rax
mov    (%rax),%edi
movzbl -0x20(%rbp),%edx
movzbl -0x1f(%rbp),%ecx
movzbl -0x1e(%rbp),%r8d
movzbl -0x1d(%rbp),%r9d
movzbl -0x1c(%rbp),%ebx
movzbl -0x1b(%rbp),%r11d
movzbl -0x1a(%rbp),%r10d
movzbl -0x19(%rbp),%eax
lea    0xe1f(%rip),%rsi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2dd5(%rip),%rax
mov    (%rax),%edi
movzbl -0x28(%rbp),%edx
movzbl -0x27(%rbp),%ecx
movzbl -0x26(%rbp),%r8d
movzbl -0x25(%rbp),%r9d
movzbl -0x24(%rbp),%ebx
movzbl -0x23(%rbp),%r11d
movzbl -0x22(%rbp),%r10d
movzbl -0x21(%rbp),%eax
lea    0xe06(%rip),%rsi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
lea    -0x20(%rbp),%rdi
mov    $0xf,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
lea    -0x20(%rbp),%rdi
mov    $0x10,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
lea    -0x20(%rbp),%rdi
mov    $0x20,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
lea    -0x20(%rbp),%rdi
mov    $0x3f,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
lea    -0x28(%rbp),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
lea    -0x28(%rbp),%rdi
mov    $0xf,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
mov    0x2d1a(%rip),%rax
mov    (%rax),%edi
lea    0xda2(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2d03(%rip),%rax
mov    (%rax),%edi
movzbl -0x20(%rbp),%edx
movzbl -0x1f(%rbp),%ecx
movzbl -0x1e(%rbp),%r8d
movzbl -0x1d(%rbp),%r9d
movzbl -0x1c(%rbp),%ebx
movzbl -0x1b(%rbp),%r11d
movzbl -0x1a(%rbp),%r10d
movzbl -0x19(%rbp),%eax
lea    0xd01(%rip),%rsi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2cb7(%rip),%rax
mov    (%rax),%edi
movzbl -0x28(%rbp),%edx
movzbl -0x27(%rbp),%ecx
movzbl -0x26(%rbp),%r8d
movzbl -0x25(%rbp),%r9d
movzbl -0x24(%rbp),%ebx
movzbl -0x23(%rbp),%r11d
movzbl -0x22(%rbp),%r10d
movzbl -0x21(%rbp),%eax
lea    0xce8(%rip),%rsi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2c6b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
lea    -0x20(%rbp),%rdi
mov    $0x3f,%esi
call   1030 <bit_get@plt>
mov    -0x44(%rbp),%edi
mov    %eax,%edx
lea    0xd22(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2c3e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x40(%rbp)
lea    -0x20(%rbp),%rdi
mov    $0x3e,%esi
call   1030 <bit_get@plt>
mov    -0x40(%rbp),%edi
mov    %eax,%edx
lea    0xd0c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2c11(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
lea    -0x28(%rbp),%rdi
xor    %esi,%esi
call   1030 <bit_get@plt>
mov    -0x3c(%rbp),%edi
mov    %eax,%edx
lea    0xcf9(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2be7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
lea    -0x28(%rbp),%rdi
mov    $0x1,%esi
call   1030 <bit_get@plt>
mov    -0x38(%rbp),%edi
mov    %eax,%edx
lea    0xce3(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
lea    -0x20(%rbp),%rdi
lea    -0x28(%rbp),%rsi
lea    -0x30(%rbp),%rdx
mov    $0x20,%ecx
call   1070 <bit_xor@plt>
mov    0x2ba4(%rip),%rax
mov    (%rax),%edi
lea    0xccd(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2b8d(%rip),%rax
mov    (%rax),%edi
movzbl -0x30(%rbp),%edx
movzbl -0x2f(%rbp),%ecx
movzbl -0x2e(%rbp),%r8d
movzbl -0x2d(%rbp),%r9d
movzbl -0x2c(%rbp),%ebx
movzbl -0x2b(%rbp),%r11d
movzbl -0x2a(%rbp),%r10d
movzbl -0x29(%rbp),%eax
lea    0xcb6(%rip),%rsi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
lea    -0x20(%rbp),%rdi
lea    -0x28(%rbp),%rsi
lea    -0x30(%rbp),%rdx
mov    $0x40,%ecx
call   1070 <bit_xor@plt>
mov    0x2b2b(%rip),%rax
mov    (%rax),%edi
lea    0xcab(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2b14(%rip),%rax
mov    (%rax),%edi
movzbl -0x30(%rbp),%edx
movzbl -0x2f(%rbp),%ecx
movzbl -0x2e(%rbp),%r8d
movzbl -0x2d(%rbp),%r9d
movzbl -0x2c(%rbp),%ebx
movzbl -0x2b(%rbp),%r11d
movzbl -0x2a(%rbp),%r10d
movzbl -0x29(%rbp),%eax
lea    0xc3d(%rip),%rsi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
lea    -0x20(%rbp),%rdi
mov    $0x40,%esi
mov    $0x1,%edx
call   1040 <bit_rot_left@plt>
mov    0x2ab5(%rip),%rax
mov    (%rax),%edi
lea    0xc59(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2a9e(%rip),%rax
mov    (%rax),%edi
movzbl -0x20(%rbp),%edx
movzbl -0x1f(%rbp),%ecx
movzbl -0x1e(%rbp),%r8d
movzbl -0x1d(%rbp),%r9d
movzbl -0x1c(%rbp),%ebx
movzbl -0x1b(%rbp),%r11d
movzbl -0x1a(%rbp),%r10d
movzbl -0x19(%rbp),%eax
lea    0xa9c(%rip),%rsi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
lea    -0x28(%rbp),%rdi
mov    $0x40,%esi
mov    $0x1,%edx
call   1040 <bit_rot_left@plt>
mov    0x2a3f(%rip),%rax
mov    (%rax),%edi
lea    0xc0c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2a28(%rip),%rax
mov    (%rax),%edi
movzbl -0x28(%rbp),%edx
movzbl -0x27(%rbp),%ecx
movzbl -0x26(%rbp),%r8d
movzbl -0x25(%rbp),%r9d
movzbl -0x24(%rbp),%ebx
movzbl -0x23(%rbp),%r11d
movzbl -0x22(%rbp),%r10d
movzbl -0x21(%rbp),%eax
lea    0xa59(%rip),%rsi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
lea    -0x28(%rbp),%rdi
mov    $0x10,%esi
mov    $0x7,%edx
call   1040 <bit_rot_left@plt>
mov    0x29c9(%rip),%rax
mov    (%rax),%edi
lea    0xbbf(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x29b2(%rip),%rax
mov    (%rax),%edi
movzbl -0x28(%rbp),%edx
movzbl -0x27(%rbp),%ecx
movzbl -0x26(%rbp),%r8d
movzbl -0x25(%rbp),%r9d
movzbl -0x24(%rbp),%ebx
movzbl -0x23(%rbp),%r11d
movzbl -0x22(%rbp),%r10d
movzbl -0x21(%rbp),%eax
lea    0x9e3(%rip),%rsi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
lea    -0x28(%rbp),%rdi
mov    $0x8,%esi
mov    $0x2,%edx
call   1040 <bit_rot_left@plt>
mov    0x2953(%rip),%rax
mov    (%rax),%edi
lea    0xb72(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x293c(%rip),%rax
mov    (%rax),%edi
movzbl -0x28(%rbp),%edx
movzbl -0x27(%rbp),%ecx
movzbl -0x26(%rbp),%r8d
movzbl -0x25(%rbp),%r9d
movzbl -0x24(%rbp),%ebx
movzbl -0x23(%rbp),%r11d
movzbl -0x22(%rbp),%r10d
movzbl -0x21(%rbp),%eax
lea    0x96d(%rip),%rsi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x8,-0x34(%rbp)
jge    1711 <main+0x5c1>
movslq -0x34(%rbp),%rax
movb   $0x0,-0x28(%rbp,%rax,1)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    16f0 <main+0x5a0>
lea    -0x28(%rbp),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
lea    -0x28(%rbp),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
lea    -0x28(%rbp),%rdi
mov    $0x8,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
lea    -0x28(%rbp),%rdi
mov    $0x1b,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
mov    0x287f(%rip),%rax
mov    (%rax),%edi
lea    0xac6(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2868(%rip),%rax
mov    (%rax),%edi
movzbl -0x28(%rbp),%edx
movzbl -0x27(%rbp),%ecx
movzbl -0x26(%rbp),%r8d
movzbl -0x25(%rbp),%r9d
movzbl -0x24(%rbp),%ebx
movzbl -0x23(%rbp),%r11d
movzbl -0x22(%rbp),%r10d
movzbl -0x21(%rbp),%eax
lea    0x899(%rip),%rsi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
lea    -0x28(%rbp),%rdi
mov    $0xb,%esi
mov    $0x6,%edx
call   1040 <bit_rot_left@plt>
mov    0x2809(%rip),%rax
mov    (%rax),%edi
lea    0xa86(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x27f2(%rip),%rax
mov    (%rax),%edi
movzbl -0x28(%rbp),%edx
movzbl -0x27(%rbp),%ecx
movzbl -0x26(%rbp),%r8d
movzbl -0x25(%rbp),%r9d
movzbl -0x24(%rbp),%ebx
movzbl -0x23(%rbp),%r11d
movzbl -0x22(%rbp),%r10d
movzbl -0x21(%rbp),%eax
lea    0x823(%rip),%rsi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x8,-0x34(%rbp)
jge    185b <main+0x70b>
movslq -0x34(%rbp),%rax
movb   $0x0,-0x28(%rbp,%rax,1)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    183a <main+0x6ea>
lea    -0x28(%rbp),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
lea    -0x28(%rbp),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
lea    -0x28(%rbp),%rdi
mov    $0x8,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
lea    -0x28(%rbp),%rdi
mov    $0x1b,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
mov    0x2735(%rip),%rax
mov    (%rax),%edi
lea    0x97c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x271e(%rip),%rax
mov    (%rax),%edi
movzbl -0x28(%rbp),%edx
movzbl -0x27(%rbp),%ecx
movzbl -0x26(%rbp),%r8d
movzbl -0x25(%rbp),%r9d
movzbl -0x24(%rbp),%ebx
movzbl -0x23(%rbp),%r11d
movzbl -0x22(%rbp),%r10d
movzbl -0x21(%rbp),%eax
lea    0x74f(%rip),%rsi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
lea    -0x28(%rbp),%rdi
mov    $0x1c,%esi
mov    $0x4,%edx
call   1040 <bit_rot_left@plt>
mov    0x26bf(%rip),%rax
mov    (%rax),%edi
lea    0x965(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x26a8(%rip),%rax
mov    (%rax),%edi
movzbl -0x28(%rbp),%edx
movzbl -0x27(%rbp),%ecx
movzbl -0x26(%rbp),%r8d
movzbl -0x25(%rbp),%r9d
movzbl -0x24(%rbp),%ebx
movzbl -0x23(%rbp),%r11d
movzbl -0x22(%rbp),%r10d
movzbl -0x21(%rbp),%eax
lea    0x6d9(%rip),%rsi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
movq   $0x0,0x10(%rsp)
movq   $0x0,(%rsp)
movq   $0x0,0x8(%rsp)
mov    0x2e61(%rip),%r15
mov    (%r15),%edi
lea    0xe77(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r15),%edi
lea    0xe71(%rip),%r14
mov    %r14,%rsi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
push   $0x0
push   $0x0
push   $0x0
push   $0x0
call   1050 <fprintf@plt>
add    $0x20,%rsp
mov    (%r15),%edi
lea    0xe7a(%rip),%r12
mov    %r12,%rsi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
push   $0x0
push   $0x0
push   $0x0
push   $0x0
call   1050 <fprintf@plt>
add    $0x20,%rsp
lea    0x10(%rsp),%r13
mov    %r13,%rdi
mov    $0xf,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
mov    %r13,%rdi
mov    $0x10,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
mov    %r13,%rdi
mov    $0x20,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
mov    %r13,%rdi
mov    $0x3f,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
mov    %rbx,%rdi
mov    $0xf,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
mov    (%r15),%edi
lea    0xe12(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r15),%edi
movzbl 0x10(%rsp),%edx
movzbl 0x11(%rsp),%ecx
movzbl 0x12(%rsp),%r8d
movzbl 0x13(%rsp),%r9d
movzbl 0x14(%rsp),%r10d
movzbl 0x15(%rsp),%r11d
movzbl 0x16(%rsp),%ebp
movzbl 0x17(%rsp),%ebx
mov    %r14,%rsi
xor    %eax,%eax
push   %rbx
push   %rbp
push   %r11
push   %r10
call   1050 <fprintf@plt>
add    $0x20,%rsp
mov    (%r15),%edi
movzbl (%rsp),%edx
movzbl 0x1(%rsp),%ecx
movzbl 0x2(%rsp),%r8d
movzbl 0x3(%rsp),%r9d
movzbl 0x4(%rsp),%r10d
movzbl 0x5(%rsp),%r11d
movzbl 0x6(%rsp),%ebp
movzbl 0x7(%rsp),%ebx
mov    %r12,%rsi
xor    %eax,%eax
push   %rbx
push   %rbp
push   %r11
push   %r10
call   1050 <fprintf@plt>
add    $0x20,%rsp
mov    (%r15),%ebx
mov    %r13,%rdi
mov    $0x3f,%esi
call   1030 <bit_get@plt>
lea    0xdb4(%rip),%rsi
mov    %ebx,%edi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r15),%ebx
mov    %r13,%rdi
mov    $0x3e,%esi
call   1030 <bit_get@plt>
lea    0xda9(%rip),%rsi
mov    %ebx,%edi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r15),%ebx
mov    %rsp,%r14
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <bit_get@plt>
lea    0xd9e(%rip),%rsi
mov    %ebx,%edi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r15),%ebx
mov    %r14,%rdi
mov    $0x1,%esi
call   1030 <bit_get@plt>
lea    0xd93(%rip),%rsi
mov    %ebx,%edi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
lea    0x8(%rsp),%rdx
mov    %r13,%rdi
mov    %r14,%rsi
mov    $0x20,%ecx
call   1070 <bit_xor@plt>
mov    (%r15),%edi
lea    0xd80(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r15),%edi
movzbl 0x8(%rsp),%edx
movzbl 0x9(%rsp),%ecx
movzbl 0xa(%rsp),%r8d
movzbl 0xb(%rsp),%r9d
movzbl 0xc(%rsp),%r10d
movzbl 0xd(%rsp),%r11d
movzbl 0xe(%rsp),%ebx
movzbl 0xf(%rsp),%ebp
lea    0xd67(%rip),%r12
mov    %r12,%rsi
xor    %eax,%eax
push   %rbp
push   %rbx
push   %r11
push   %r10
call   1050 <fprintf@plt>
add    $0x20,%rsp
mov    %r13,%rdi
mov    %r14,%rsi
lea    0x8(%rsp),%rdx
mov    $0x40,%ecx
call   1070 <bit_xor@plt>
mov    (%r15),%edi
lea    0xd67(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r15),%edi
movzbl 0x8(%rsp),%edx
movzbl 0x9(%rsp),%ecx
movzbl 0xa(%rsp),%r8d
movzbl 0xb(%rsp),%r9d
movzbl 0xc(%rsp),%r10d
movzbl 0xd(%rsp),%r11d
movzbl 0xe(%rsp),%ebp
movzbl 0xf(%rsp),%ebx
mov    %r12,%rsi
xor    %eax,%eax
push   %rbx
push   %rbp
push   %r11
push   %r10
call   1050 <fprintf@plt>
add    $0x20,%rsp
mov    %r13,%rdi
mov    $0x40,%esi
mov    $0x1,%edx
call   1040 <bit_rot_left@plt>
mov    (%r15),%edi
lea    0xd25(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r15),%edi
movzbl 0x10(%rsp),%edx
movzbl 0x11(%rsp),%ecx
movzbl 0x12(%rsp),%r8d
movzbl 0x13(%rsp),%r9d
movzbl 0x14(%rsp),%r10d
movzbl 0x15(%rsp),%r11d
movzbl 0x16(%rsp),%ebp
movzbl 0x17(%rsp),%ebx
lea    0xb66(%rip),%rsi
xor    %eax,%eax
push   %rbx
push   %rbp
push   %r11
push   %r10
call   1050 <fprintf@plt>
add    $0x20,%rsp
mov    %r14,%rdi
mov    $0x40,%esi
mov    $0x1,%edx
call   1040 <bit_rot_left@plt>
mov    (%r15),%edi
lea    0xce4(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r15),%edi
movzbl (%rsp),%edx
movzbl 0x1(%rsp),%ecx
movzbl 0x2(%rsp),%r8d
movzbl 0x3(%rsp),%r9d
movzbl 0x4(%rsp),%r10d
movzbl 0x5(%rsp),%r11d
movzbl 0x6(%rsp),%ebp
movzbl 0x7(%rsp),%ebx
lea    0xb30(%rip),%r12
mov    %r12,%rsi
xor    %eax,%eax
push   %rbx
push   %rbp
push   %r11
push   %r10
call   1050 <fprintf@plt>
add    $0x20,%rsp
mov    %r14,%rdi
mov    $0x10,%esi
mov    $0x7,%edx
call   1040 <bit_rot_left@plt>
mov    (%r15),%edi
lea    0xca1(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r15),%edi
movzbl (%rsp),%edx
movzbl 0x1(%rsp),%ecx
movzbl 0x2(%rsp),%r8d
movzbl 0x3(%rsp),%r9d
movzbl 0x4(%rsp),%r10d
movzbl 0x5(%rsp),%r11d
movzbl 0x6(%rsp),%ebp
movzbl 0x7(%rsp),%ebx
mov    %r12,%rsi
xor    %eax,%eax
push   %rbx
push   %rbp
push   %r11
push   %r10
call   1050 <fprintf@plt>
add    $0x20,%rsp
mov    %r14,%rdi
mov    $0x8,%esi
mov    $0x2,%edx
call   1040 <bit_rot_left@plt>
mov    (%r15),%edi
lea    0xc65(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r15),%edi
movzbl (%rsp),%edx
movzbl 0x1(%rsp),%ecx
movzbl 0x2(%rsp),%r8d
movzbl 0x3(%rsp),%r9d
movzbl 0x4(%rsp),%r10d
movzbl 0x5(%rsp),%r11d
movzbl 0x6(%rsp),%ebp
movzbl 0x7(%rsp),%ebx
mov    %r12,%rsi
xor    %eax,%eax
push   %rbx
push   %rbp
push   %r11
push   %r10
call   1050 <fprintf@plt>
add    $0x20,%rsp
movq   $0x0,(%rsp)
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
mov    %r14,%rdi
mov    $0x3,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
mov    %r14,%rdi
mov    $0x8,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
mov    %r14,%rdi
mov    %r14,%r13
mov    $0x1b,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
mov    (%r15),%edi
lea    0xbea(%rip),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r15),%edi
movzbl (%rsp),%edx
movzbl 0x1(%rsp),%ecx
movzbl 0x2(%rsp),%r8d
movzbl 0x3(%rsp),%r9d
movzbl 0x4(%rsp),%r10d
movzbl 0x5(%rsp),%r11d
movzbl 0x6(%rsp),%ebp
movzbl 0x7(%rsp),%ebx
mov    %r12,%rsi
xor    %eax,%eax
push   %rbx
push   %rbp
push   %r11
push   %r10
call   1050 <fprintf@plt>
add    $0x20,%rsp
mov    %r13,%rdi
mov    $0xb,%esi
mov    $0x6,%edx
call   1040 <bit_rot_left@plt>
mov    (%r15),%edi
lea    0xbb8(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r15),%edi
movzbl (%rsp),%edx
movzbl 0x1(%rsp),%ecx
movzbl 0x2(%rsp),%r8d
movzbl 0x3(%rsp),%r9d
movzbl 0x4(%rsp),%r10d
movzbl 0x5(%rsp),%r11d
movzbl 0x6(%rsp),%ebp
movzbl 0x7(%rsp),%ebx
mov    %r12,%rsi
xor    %eax,%eax
push   %rbx
push   %rbp
push   %r11
push   %r10
call   1050 <fprintf@plt>
add    $0x20,%rsp
movq   $0x0,(%rsp)
mov    %r13,%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
mov    %r13,%rdi
mov    $0x3,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
mov    %r13,%rdi
mov    $0x8,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
mov    %r13,%rdi
mov    $0x1b,%esi
mov    $0x1,%edx
call   1060 <bit_set@plt>
mov    (%r15),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r15),%edi
movzbl (%rsp),%edx
movzbl 0x1(%rsp),%ecx
movzbl 0x2(%rsp),%r8d
movzbl 0x3(%rsp),%r9d
movzbl 0x4(%rsp),%r10d
movzbl 0x5(%rsp),%r11d
movzbl 0x6(%rsp),%ebp
movzbl 0x7(%rsp),%ebx
mov    %r12,%rsi
xor    %eax,%eax
push   %rbx
push   %rbp
push   %r11
push   %r10
call   1050 <fprintf@plt>
add    $0x20,%rsp
mov    %r13,%rdi
mov    $0x1c,%esi
mov    $0x4,%edx
call   1040 <bit_rot_left@plt>
mov    (%r15),%edi
lea    0xae0(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r15),%edi
movzbl (%rsp),%edx
movzbl 0x1(%rsp),%ecx
movzbl 0x2(%rsp),%r8d
movzbl 0x3(%rsp),%r9d
movzbl 0x4(%rsp),%r10d
movzbl 0x5(%rsp),%r11d
movzbl 0x6(%rsp),%ebp
movzbl 0x7(%rsp),%ebx
mov    %r12,%rsi
xor    %eax,%eax
push   %rbx
push   %rbp
push   %r11
push   %r10
call   1050 <fprintf@plt>
add    $0x20,%rsp
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [11 x i8] c"Initially\0A\00"
@.str.1 = [51 x i8] c"-> bits1: %02x %02x %02x %02x %02x %02x %02x %02x\0A\00"
@.str.2 = [51 x i8] c"-> bits2: %02x %02x %02x %02x %02x %02x %02x %02x\0A\00"
@.str.3 = [69 x i8] c"After setting bits 15, 16, 32, 63 of bits1 and bits 00, 15 of bits2\0A\00"
@.str.4 = [23 x i8] c"Bit 63 of bits1 is %d\0A\00"
@.str.5 = [23 x i8] c"Bit 62 of bits1 is %d\0A\00"
@.str.6 = [23 x i8] c"Bit 00 of bits2 is %d\0A\00"
@.str.7 = [23 x i8] c"Bit 01 of bits2 is %d\0A\00"
@.str.8 = [36 x i8] c"bits3 is bits1 XOR bits2 (32 bits)\0A\00"
@.str.9 = [51 x i8] c"-> bits3: %02x %02x %02x %02x %02x %02x %02x %02x\0A\00"
@.str.10 = [36 x i8] c"bits3 is bits1 XOR bits2 (64 bits)\0A\00"
@.str.11 = [41 x i8] c"After rotating bits1 left x 1 (64 bits)\0A\00"
@.str.12 = [41 x i8] c"After rotating bits2 left x 1 (64 bits)\0A\00"
@.str.13 = [41 x i8] c"After rotating bits2 left x 7 (16 bits)\0A\00"
@.str.14 = [40 x i8] c"After rotating bits2 left x 2 (8 bits)\0A\00"
@.str.15 = [54 x i8] c"After clearing and setting bits 0, 3, 8, 27 of bits2\0A\00"
@.str.16 = [41 x i8] c"After rotating bits2 left x 6 (11 bits)\0A\00"
@.str.17 = [41 x i8] c"After rotating bits2 left x 4 (28 bits)\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [8 x i8]
%7 = alloca [8 x i8]
%8 = alloca [8 x i8]
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %9
br label %10
10: ; preds = %23, %2
%11 = load i32, i32* %9
%12 = icmp slt i32 %11, 8
br i1 %12, label %13, label %26
13: ; preds = %10
%14 = load i32, i32* %9
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 %15
store i8 0, i8* %16
%17 = load i32, i32* %9
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 %18
store i8 0, i8* %19
%20 = load i32, i32* %9
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 %21
store i8 0, i8* %22
br label %23
23: ; preds = %13
%24 = load i32, i32* %9
%25 = add nsw i32 %24, 1
store i32 %25, i32* %9
br label %10
26: ; preds = %10
%27 = load i32, i32* @stdout
%28 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%29 = load i32, i32* @stdout
%30 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%31 = load i8, i8* %30
%32 = zext i8 %31 to i32
%33 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 1
%34 = load i8, i8* %33
%35 = zext i8 %34 to i32
%36 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 2
%37 = load i8, i8* %36
%38 = zext i8 %37 to i32
%39 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 3
%40 = load i8, i8* %39
%41 = zext i8 %40 to i32
%42 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 4
%43 = load i8, i8* %42
%44 = zext i8 %43 to i32
%45 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 5
%46 = load i8, i8* %45
%47 = zext i8 %46 to i32
%48 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 6
%49 = load i8, i8* %48
%50 = zext i8 %49 to i32
%51 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 7
%52 = load i8, i8* %51
%53 = zext i8 %52 to i32
%54 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i32 %32, i32 %35, i32 %38, i32 %41, i32 %44, i32 %47, i32 %50, i32 %53)
%55 = load i32, i32* @stdout
%56 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%57 = load i8, i8* %56
%58 = zext i8 %57 to i32
%59 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 1
%60 = load i8, i8* %59
%61 = zext i8 %60 to i32
%62 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 2
%63 = load i8, i8* %62
%64 = zext i8 %63 to i32
%65 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 3
%66 = load i8, i8* %65
%67 = zext i8 %66 to i32
%68 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 4
%69 = load i8, i8* %68
%70 = zext i8 %69 to i32
%71 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 5
%72 = load i8, i8* %71
%73 = zext i8 %72 to i32
%74 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 6
%75 = load i8, i8* %74
%76 = zext i8 %75 to i32
%77 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 7
%78 = load i8, i8* %77
%79 = zext i8 %78 to i32
%80 = call i32 (i32, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %58, i32 %61, i32 %64, i32 %67, i32 %70, i32 %73, i32 %76, i32 %79)
%81 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%82 = call i32 @bit_set(i8* %81, i32 15, i32 1)
%83 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%84 = call i32 @bit_set(i8* %83, i32 16, i32 1)
%85 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%86 = call i32 @bit_set(i8* %85, i32 32, i32 1)
%87 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%88 = call i32 @bit_set(i8* %87, i32 63, i32 1)
%89 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%90 = call i32 @bit_set(i8* %89, i32 0, i32 1)
%91 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%92 = call i32 @bit_set(i8* %91, i32 15, i32 1)
%93 = load i32, i32* @stdout
%94 = call i32 (i32, i8*, ...) @fprintf(i32 %93, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%95 = load i32, i32* @stdout
%96 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%97 = load i8, i8* %96
%98 = zext i8 %97 to i32
%99 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 1
%100 = load i8, i8* %99
%101 = zext i8 %100 to i32
%102 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 2
%103 = load i8, i8* %102
%104 = zext i8 %103 to i32
%105 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 3
%106 = load i8, i8* %105
%107 = zext i8 %106 to i32
%108 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 4
%109 = load i8, i8* %108
%110 = zext i8 %109 to i32
%111 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 5
%112 = load i8, i8* %111
%113 = zext i8 %112 to i32
%114 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 6
%115 = load i8, i8* %114
%116 = zext i8 %115 to i32
%117 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 7
%118 = load i8, i8* %117
%119 = zext i8 %118 to i32
%120 = call i32 (i32, i8*, ...) @fprintf(i32 %95, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i32 %98, i32 %101, i32 %104, i32 %107, i32 %110, i32 %113, i32 %116, i32 %119)
%121 = load i32, i32* @stdout
%122 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%123 = load i8, i8* %122
%124 = zext i8 %123 to i32
%125 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 1
%126 = load i8, i8* %125
%127 = zext i8 %126 to i32
%128 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 2
%129 = load i8, i8* %128
%130 = zext i8 %129 to i32
%131 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 3
%132 = load i8, i8* %131
%133 = zext i8 %132 to i32
%134 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 4
%135 = load i8, i8* %134
%136 = zext i8 %135 to i32
%137 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 5
%138 = load i8, i8* %137
%139 = zext i8 %138 to i32
%140 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 6
%141 = load i8, i8* %140
%142 = zext i8 %141 to i32
%143 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 7
%144 = load i8, i8* %143
%145 = zext i8 %144 to i32
%146 = call i32 (i32, i8*, ...) @fprintf(i32 %121, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %124, i32 %127, i32 %130, i32 %133, i32 %136, i32 %139, i32 %142, i32 %145)
%147 = load i32, i32* @stdout
%148 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%149 = call i32 @bit_get(i8* %148, i32 63)
%150 = call i32 (i32, i8*, ...) @fprintf(i32 %147, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 %149)
%151 = load i32, i32* @stdout
%152 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%153 = call i32 @bit_get(i8* %152, i32 62)
%154 = call i32 (i32, i8*, ...) @fprintf(i32 %151, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %153)
%155 = load i32, i32* @stdout
%156 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%157 = call i32 @bit_get(i8* %156, i32 0)
%158 = call i32 (i32, i8*, ...) @fprintf(i32 %155, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i32 %157)
%159 = load i32, i32* @stdout
%160 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%161 = call i32 @bit_get(i8* %160, i32 1)
%162 = call i32 (i32, i8*, ...) @fprintf(i32 %159, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 %161)
%163 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%164 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%165 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 0
%166 = call i32 @bit_xor(i8* %163, i8* %164, i8* %165, i32 32)
%167 = load i32, i32* @stdout
%168 = call i32 (i32, i8*, ...) @fprintf(i32 %167, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%169 = load i32, i32* @stdout
%170 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 0
%171 = load i8, i8* %170
%172 = zext i8 %171 to i32
%173 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 1
%174 = load i8, i8* %173
%175 = zext i8 %174 to i32
%176 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 2
%177 = load i8, i8* %176
%178 = zext i8 %177 to i32
%179 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 3
%180 = load i8, i8* %179
%181 = zext i8 %180 to i32
%182 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 4
%183 = load i8, i8* %182
%184 = zext i8 %183 to i32
%185 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 5
%186 = load i8, i8* %185
%187 = zext i8 %186 to i32
%188 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 6
%189 = load i8, i8* %188
%190 = zext i8 %189 to i32
%191 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 7
%192 = load i8, i8* %191
%193 = zext i8 %192 to i32
%194 = call i32 (i32, i8*, ...) @fprintf(i32 %169, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0), i32 %172, i32 %175, i32 %178, i32 %181, i32 %184, i32 %187, i32 %190, i32 %193)
%195 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%196 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%197 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 0
%198 = call i32 @bit_xor(i8* %195, i8* %196, i8* %197, i32 64)
%199 = load i32, i32* @stdout
%200 = call i32 (i32, i8*, ...) @fprintf(i32 %199, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0))
%201 = load i32, i32* @stdout
%202 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 0
%203 = load i8, i8* %202
%204 = zext i8 %203 to i32
%205 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 1
%206 = load i8, i8* %205
%207 = zext i8 %206 to i32
%208 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 2
%209 = load i8, i8* %208
%210 = zext i8 %209 to i32
%211 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 3
%212 = load i8, i8* %211
%213 = zext i8 %212 to i32
%214 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 4
%215 = load i8, i8* %214
%216 = zext i8 %215 to i32
%217 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 5
%218 = load i8, i8* %217
%219 = zext i8 %218 to i32
%220 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 6
%221 = load i8, i8* %220
%222 = zext i8 %221 to i32
%223 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 7
%224 = load i8, i8* %223
%225 = zext i8 %224 to i32
%226 = call i32 (i32, i8*, ...) @fprintf(i32 %201, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0), i32 %204, i32 %207, i32 %210, i32 %213, i32 %216, i32 %219, i32 %222, i32 %225)
%227 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%228 = call i32 @bit_rot_left(i8* %227, i32 64, i32 1)
%229 = load i32, i32* @stdout
%230 = call i32 (i32, i8*, ...) @fprintf(i32 %229, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.11, i64 0, i64 0))
%231 = load i32, i32* @stdout
%232 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%233 = load i8, i8* %232
%234 = zext i8 %233 to i32
%235 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 1
%236 = load i8, i8* %235
%237 = zext i8 %236 to i32
%238 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 2
%239 = load i8, i8* %238
%240 = zext i8 %239 to i32
%241 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 3
%242 = load i8, i8* %241
%243 = zext i8 %242 to i32
%244 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 4
%245 = load i8, i8* %244
%246 = zext i8 %245 to i32
%247 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 5
%248 = load i8, i8* %247
%249 = zext i8 %248 to i32
%250 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 6
%251 = load i8, i8* %250
%252 = zext i8 %251 to i32
%253 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 7
%254 = load i8, i8* %253
%255 = zext i8 %254 to i32
%256 = call i32 (i32, i8*, ...) @fprintf(i32 %231, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i32 %234, i32 %237, i32 %240, i32 %243, i32 %246, i32 %249, i32 %252, i32 %255)
%257 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%258 = call i32 @bit_rot_left(i8* %257, i32 64, i32 1)
%259 = load i32, i32* @stdout
%260 = call i32 (i32, i8*, ...) @fprintf(i32 %259, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0))
%261 = load i32, i32* @stdout
%262 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%263 = load i8, i8* %262
%264 = zext i8 %263 to i32
%265 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 1
%266 = load i8, i8* %265
%267 = zext i8 %266 to i32
%268 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 2
%269 = load i8, i8* %268
%270 = zext i8 %269 to i32
%271 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 3
%272 = load i8, i8* %271
%273 = zext i8 %272 to i32
%274 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 4
%275 = load i8, i8* %274
%276 = zext i8 %275 to i32
%277 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 5
%278 = load i8, i8* %277
%279 = zext i8 %278 to i32
%280 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 6
%281 = load i8, i8* %280
%282 = zext i8 %281 to i32
%283 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 7
%284 = load i8, i8* %283
%285 = zext i8 %284 to i32
%286 = call i32 (i32, i8*, ...) @fprintf(i32 %261, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %264, i32 %267, i32 %270, i32 %273, i32 %276, i32 %279, i32 %282, i32 %285)
%287 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%288 = call i32 @bit_rot_left(i8* %287, i32 16, i32 7)
%289 = load i32, i32* @stdout
%290 = call i32 (i32, i8*, ...) @fprintf(i32 %289, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.13, i64 0, i64 0))
%291 = load i32, i32* @stdout
%292 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%293 = load i8, i8* %292
%294 = zext i8 %293 to i32
%295 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 1
%296 = load i8, i8* %295
%297 = zext i8 %296 to i32
%298 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 2
%299 = load i8, i8* %298
%300 = zext i8 %299 to i32
%301 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 3
%302 = load i8, i8* %301
%303 = zext i8 %302 to i32
%304 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 4
%305 = load i8, i8* %304
%306 = zext i8 %305 to i32
%307 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 5
%308 = load i8, i8* %307
%309 = zext i8 %308 to i32
%310 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 6
%311 = load i8, i8* %310
%312 = zext i8 %311 to i32
%313 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 7
%314 = load i8, i8* %313
%315 = zext i8 %314 to i32
%316 = call i32 (i32, i8*, ...) @fprintf(i32 %291, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %294, i32 %297, i32 %300, i32 %303, i32 %306, i32 %309, i32 %312, i32 %315)
%317 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%318 = call i32 @bit_rot_left(i8* %317, i32 8, i32 2)
%319 = load i32, i32* @stdout
%320 = call i32 (i32, i8*, ...) @fprintf(i32 %319, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.14, i64 0, i64 0))
%321 = load i32, i32* @stdout
%322 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%323 = load i8, i8* %322
%324 = zext i8 %323 to i32
%325 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 1
%326 = load i8, i8* %325
%327 = zext i8 %326 to i32
%328 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 2
%329 = load i8, i8* %328
%330 = zext i8 %329 to i32
%331 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 3
%332 = load i8, i8* %331
%333 = zext i8 %332 to i32
%334 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 4
%335 = load i8, i8* %334
%336 = zext i8 %335 to i32
%337 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 5
%338 = load i8, i8* %337
%339 = zext i8 %338 to i32
%340 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 6
%341 = load i8, i8* %340
%342 = zext i8 %341 to i32
%343 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 7
%344 = load i8, i8* %343
%345 = zext i8 %344 to i32
%346 = call i32 (i32, i8*, ...) @fprintf(i32 %321, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %324, i32 %327, i32 %330, i32 %333, i32 %336, i32 %339, i32 %342, i32 %345)
store i32 0, i32* %9
br label %347
347: ; preds = %354, %26
%348 = load i32, i32* %9
%349 = icmp slt i32 %348, 8
br i1 %349, label %350, label %357
350: ; preds = %347
%351 = load i32, i32* %9
%352 = sext i32 %351 to i64
%353 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 %352
store i8 0, i8* %353
br label %354
354: ; preds = %350
%355 = load i32, i32* %9
%356 = add nsw i32 %355, 1
store i32 %356, i32* %9
br label %347
357: ; preds = %347
%358 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%359 = call i32 @bit_set(i8* %358, i32 0, i32 1)
%360 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%361 = call i32 @bit_set(i8* %360, i32 3, i32 1)
%362 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%363 = call i32 @bit_set(i8* %362, i32 8, i32 1)
%364 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%365 = call i32 @bit_set(i8* %364, i32 27, i32 1)
%366 = load i32, i32* @stdout
%367 = call i32 (i32, i8*, ...) @fprintf(i32 %366, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.15, i64 0, i64 0))
%368 = load i32, i32* @stdout
%369 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%370 = load i8, i8* %369
%371 = zext i8 %370 to i32
%372 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 1
%373 = load i8, i8* %372
%374 = zext i8 %373 to i32
%375 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 2
%376 = load i8, i8* %375
%377 = zext i8 %376 to i32
%378 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 3
%379 = load i8, i8* %378
%380 = zext i8 %379 to i32
%381 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 4
%382 = load i8, i8* %381
%383 = zext i8 %382 to i32
%384 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 5
%385 = load i8, i8* %384
%386 = zext i8 %385 to i32
%387 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 6
%388 = load i8, i8* %387
%389 = zext i8 %388 to i32
%390 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 7
%391 = load i8, i8* %390
%392 = zext i8 %391 to i32
%393 = call i32 (i32, i8*, ...) @fprintf(i32 %368, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %371, i32 %374, i32 %377, i32 %380, i32 %383, i32 %386, i32 %389, i32 %392)
%394 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%395 = call i32 @bit_rot_left(i8* %394, i32 11, i32 6)
%396 = load i32, i32* @stdout
%397 = call i32 (i32, i8*, ...) @fprintf(i32 %396, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.16, i64 0, i64 0))
%398 = load i32, i32* @stdout
%399 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%400 = load i8, i8* %399
%401 = zext i8 %400 to i32
%402 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 1
%403 = load i8, i8* %402
%404 = zext i8 %403 to i32
%405 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 2
%406 = load i8, i8* %405
%407 = zext i8 %406 to i32
%408 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 3
%409 = load i8, i8* %408
%410 = zext i8 %409 to i32
%411 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 4
%412 = load i8, i8* %411
%413 = zext i8 %412 to i32
%414 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 5
%415 = load i8, i8* %414
%416 = zext i8 %415 to i32
%417 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 6
%418 = load i8, i8* %417
%419 = zext i8 %418 to i32
%420 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 7
%421 = load i8, i8* %420
%422 = zext i8 %421 to i32
%423 = call i32 (i32, i8*, ...) @fprintf(i32 %398, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %401, i32 %404, i32 %407, i32 %410, i32 %413, i32 %416, i32 %419, i32 %422)
store i32 0, i32* %9
br label %424
424: ; preds = %431, %357
%425 = load i32, i32* %9
%426 = icmp slt i32 %425, 8
br i1 %426, label %427, label %434
427: ; preds = %424
%428 = load i32, i32* %9
%429 = sext i32 %428 to i64
%430 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 %429
store i8 0, i8* %430
br label %431
431: ; preds = %427
%432 = load i32, i32* %9
%433 = add nsw i32 %432, 1
store i32 %433, i32* %9
br label %424
434: ; preds = %424
%435 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%436 = call i32 @bit_set(i8* %435, i32 0, i32 1)
%437 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%438 = call i32 @bit_set(i8* %437, i32 3, i32 1)
%439 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%440 = call i32 @bit_set(i8* %439, i32 8, i32 1)
%441 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%442 = call i32 @bit_set(i8* %441, i32 27, i32 1)
%443 = load i32, i32* @stdout
%444 = call i32 (i32, i8*, ...) @fprintf(i32 %443, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.15, i64 0, i64 0))
%445 = load i32, i32* @stdout
%446 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%447 = load i8, i8* %446
%448 = zext i8 %447 to i32
%449 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 1
%450 = load i8, i8* %449
%451 = zext i8 %450 to i32
%452 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 2
%453 = load i8, i8* %452
%454 = zext i8 %453 to i32
%455 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 3
%456 = load i8, i8* %455
%457 = zext i8 %456 to i32
%458 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 4
%459 = load i8, i8* %458
%460 = zext i8 %459 to i32
%461 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 5
%462 = load i8, i8* %461
%463 = zext i8 %462 to i32
%464 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 6
%465 = load i8, i8* %464
%466 = zext i8 %465 to i32
%467 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 7
%468 = load i8, i8* %467
%469 = zext i8 %468 to i32
%470 = call i32 (i32, i8*, ...) @fprintf(i32 %445, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %448, i32 %451, i32 %454, i32 %457, i32 %460, i32 %463, i32 %466, i32 %469)
%471 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%472 = call i32 @bit_rot_left(i8* %471, i32 28, i32 4)
%473 = load i32, i32* @stdout
%474 = call i32 (i32, i8*, ...) @fprintf(i32 %473, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.17, i64 0, i64 0))
%475 = load i32, i32* @stdout
%476 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%477 = load i8, i8* %476
%478 = zext i8 %477 to i32
%479 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 1
%480 = load i8, i8* %479
%481 = zext i8 %480 to i32
%482 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 2
%483 = load i8, i8* %482
%484 = zext i8 %483 to i32
%485 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 3
%486 = load i8, i8* %485
%487 = zext i8 %486 to i32
%488 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 4
%489 = load i8, i8* %488
%490 = zext i8 %489 to i32
%491 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 5
%492 = load i8, i8* %491
%493 = zext i8 %492 to i32
%494 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 6
%495 = load i8, i8* %494
%496 = zext i8 %495 to i32
%497 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 7
%498 = load i8, i8* %497
%499 = zext i8 %498 to i32
%500 = call i32 (i32, i8*, ...) @fprintf(i32 %475, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %478, i32 %481, i32 %484, i32 %487, i32 %490, i32 %493, i32 %496, i32 %499)
ret i32 0
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [11 x i8] c"Initially\0A\00"
@.str.1 = [51 x i8] c"-> bits1: %02x %02x %02x %02x %02x %02x %02x %02x\0A\00"
@.str.2 = [51 x i8] c"-> bits2: %02x %02x %02x %02x %02x %02x %02x %02x\0A\00"
@.str.3 = [69 x i8] c"After setting bits 15, 16, 32, 63 of bits1 and bits 00, 15 of bits2\0A\00"
@.str.4 = [23 x i8] c"Bit 63 of bits1 is %d\0A\00"
@.str.5 = [23 x i8] c"Bit 62 of bits1 is %d\0A\00"
@.str.6 = [23 x i8] c"Bit 00 of bits2 is %d\0A\00"
@.str.7 = [23 x i8] c"Bit 01 of bits2 is %d\0A\00"
@.str.8 = [36 x i8] c"bits3 is bits1 XOR bits2 (32 bits)\0A\00"
@.str.9 = [51 x i8] c"-> bits3: %02x %02x %02x %02x %02x %02x %02x %02x\0A\00"
@.str.10 = [36 x i8] c"bits3 is bits1 XOR bits2 (64 bits)\0A\00"
@.str.11 = [41 x i8] c"After rotating bits1 left x 1 (64 bits)\0A\00"
@.str.12 = [41 x i8] c"After rotating bits2 left x 1 (64 bits)\0A\00"
@.str.13 = [41 x i8] c"After rotating bits2 left x 7 (16 bits)\0A\00"
@.str.14 = [40 x i8] c"After rotating bits2 left x 2 (8 bits)\0A\00"
@.str.15 = [54 x i8] c"After clearing and setting bits 0, 3, 8, 27 of bits2\0A\00"
@.str.16 = [41 x i8] c"After rotating bits2 left x 6 (11 bits)\0A\00"
@.str.17 = [41 x i8] c"After rotating bits2 left x 4 (28 bits)\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i64
%4 = bitcast i64* %3 to [8 x i8]*
%5 = alloca i64
%6 = bitcast i64* %5 to [8 x i8]*
%7 = alloca i64
%8 = bitcast i64* %7 to [8 x i8]*
%9 = bitcast i64* %3 to i8*
%10 = bitcast i64* %5 to i8*
%11 = bitcast i64* %7 to i8*
store i64 0, i64* %3
store i64 0, i64* %5
store i64 0, i64* %7
%12 = load i32, i32* @stdout
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%14 = load i32, i32* @stdout
%15 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 1
%16 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 2
%17 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 3
%18 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 4
%19 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 5
%20 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 6
%21 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 7
%22 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
%23 = load i32, i32* @stdout
%24 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 1
%25 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 2
%26 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 3
%27 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 4
%28 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 5
%29 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 6
%30 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 7
%31 = tail call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
%32 = call i32 @bit_set(i8* %9, i32 15, i32 1)
%33 = call i32 @bit_set(i8* %9, i32 16, i32 1)
%34 = call i32 @bit_set(i8* %9, i32 32, i32 1)
%35 = call i32 @bit_set(i8* %9, i32 63, i32 1)
%36 = call i32 @bit_set(i8* %10, i32 0, i32 1)
%37 = call i32 @bit_set(i8* %10, i32 15, i32 1)
%38 = load i32, i32* @stdout
%39 = call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%40 = load i32, i32* @stdout
%41 = load i8, i8* %9
%42 = zext i8 %41 to i32
%43 = load i8, i8* %15
%44 = zext i8 %43 to i32
%45 = load i8, i8* %16
%46 = zext i8 %45 to i32
%47 = load i8, i8* %17
%48 = zext i8 %47 to i32
%49 = load i8, i8* %18
%50 = zext i8 %49 to i32
%51 = load i8, i8* %19
%52 = zext i8 %51 to i32
%53 = load i8, i8* %20
%54 = zext i8 %53 to i32
%55 = load i8, i8* %21
%56 = zext i8 %55 to i32
%57 = call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i32 %42, i32 %44, i32 %46, i32 %48, i32 %50, i32 %52, i32 %54, i32 %56)
%58 = load i32, i32* @stdout
%59 = load i8, i8* %10
%60 = zext i8 %59 to i32
%61 = load i8, i8* %24
%62 = zext i8 %61 to i32
%63 = load i8, i8* %25
%64 = zext i8 %63 to i32
%65 = load i8, i8* %26
%66 = zext i8 %65 to i32
%67 = load i8, i8* %27
%68 = zext i8 %67 to i32
%69 = load i8, i8* %28
%70 = zext i8 %69 to i32
%71 = load i8, i8* %29
%72 = zext i8 %71 to i32
%73 = load i8, i8* %30
%74 = zext i8 %73 to i32
%75 = call i32 (i32, i8*, ...) @fprintf(i32 %58, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %60, i32 %62, i32 %64, i32 %66, i32 %68, i32 %70, i32 %72, i32 %74)
%76 = load i32, i32* @stdout
%77 = call i32 @bit_get(i8* %9, i32 63)
%78 = call i32 (i32, i8*, ...) @fprintf(i32 %76, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 %77)
%79 = load i32, i32* @stdout
%80 = call i32 @bit_get(i8* %9, i32 62)
%81 = call i32 (i32, i8*, ...) @fprintf(i32 %79, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %80)
%82 = load i32, i32* @stdout
%83 = call i32 @bit_get(i8* %10, i32 0)
%84 = call i32 (i32, i8*, ...) @fprintf(i32 %82, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i32 %83)
%85 = load i32, i32* @stdout
%86 = call i32 @bit_get(i8* %10, i32 1)
%87 = call i32 (i32, i8*, ...) @fprintf(i32 %85, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 %86)
%88 = call i32 @bit_xor(i8* %9, i8* %10, i8* %11, i32 32)
%89 = load i32, i32* @stdout
%90 = call i32 (i32, i8*, ...) @fprintf(i32 %89, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%91 = load i32, i32* @stdout
%92 = load i8, i8* %11
%93 = zext i8 %92 to i32
%94 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 1
%95 = load i8, i8* %94
%96 = zext i8 %95 to i32
%97 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 2
%98 = load i8, i8* %97
%99 = zext i8 %98 to i32
%100 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 3
%101 = load i8, i8* %100
%102 = zext i8 %101 to i32
%103 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 4
%104 = load i8, i8* %103
%105 = zext i8 %104 to i32
%106 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 5
%107 = load i8, i8* %106
%108 = zext i8 %107 to i32
%109 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 6
%110 = load i8, i8* %109
%111 = zext i8 %110 to i32
%112 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 7
%113 = load i8, i8* %112
%114 = zext i8 %113 to i32
%115 = call i32 (i32, i8*, ...) @fprintf(i32 %91, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0), i32 %93, i32 %96, i32 %99, i32 %102, i32 %105, i32 %108, i32 %111, i32 %114)
%116 = call i32 @bit_xor(i8* %9, i8* %10, i8* %11, i32 64)
%117 = load i32, i32* @stdout
%118 = call i32 (i32, i8*, ...) @fprintf(i32 %117, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0))
%119 = load i32, i32* @stdout
%120 = load i8, i8* %11
%121 = zext i8 %120 to i32
%122 = load i8, i8* %94
%123 = zext i8 %122 to i32
%124 = load i8, i8* %97
%125 = zext i8 %124 to i32
%126 = load i8, i8* %100
%127 = zext i8 %126 to i32
%128 = load i8, i8* %103
%129 = zext i8 %128 to i32
%130 = load i8, i8* %106
%131 = zext i8 %130 to i32
%132 = load i8, i8* %109
%133 = zext i8 %132 to i32
%134 = load i8, i8* %112
%135 = zext i8 %134 to i32
%136 = call i32 (i32, i8*, ...) @fprintf(i32 %119, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0), i32 %121, i32 %123, i32 %125, i32 %127, i32 %129, i32 %131, i32 %133, i32 %135)
%137 = call i32 @bit_rot_left(i8* %9, i32 64, i32 1)
%138 = load i32, i32* @stdout
%139 = call i32 (i32, i8*, ...) @fprintf(i32 %138, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.11, i64 0, i64 0))
%140 = load i32, i32* @stdout
%141 = load i8, i8* %9
%142 = zext i8 %141 to i32
%143 = load i8, i8* %15
%144 = zext i8 %143 to i32
%145 = load i8, i8* %16
%146 = zext i8 %145 to i32
%147 = load i8, i8* %17
%148 = zext i8 %147 to i32
%149 = load i8, i8* %18
%150 = zext i8 %149 to i32
%151 = load i8, i8* %19
%152 = zext i8 %151 to i32
%153 = load i8, i8* %20
%154 = zext i8 %153 to i32
%155 = load i8, i8* %21
%156 = zext i8 %155 to i32
%157 = call i32 (i32, i8*, ...) @fprintf(i32 %140, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i32 %142, i32 %144, i32 %146, i32 %148, i32 %150, i32 %152, i32 %154, i32 %156)
%158 = call i32 @bit_rot_left(i8* %10, i32 64, i32 1)
%159 = load i32, i32* @stdout
%160 = call i32 (i32, i8*, ...) @fprintf(i32 %159, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0))
%161 = load i32, i32* @stdout
%162 = load i8, i8* %10
%163 = zext i8 %162 to i32
%164 = load i8, i8* %24
%165 = zext i8 %164 to i32
%166 = load i8, i8* %25
%167 = zext i8 %166 to i32
%168 = load i8, i8* %26
%169 = zext i8 %168 to i32
%170 = load i8, i8* %27
%171 = zext i8 %170 to i32
%172 = load i8, i8* %28
%173 = zext i8 %172 to i32
%174 = load i8, i8* %29
%175 = zext i8 %174 to i32
%176 = load i8, i8* %30
%177 = zext i8 %176 to i32
%178 = call i32 (i32, i8*, ...) @fprintf(i32 %161, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %163, i32 %165, i32 %167, i32 %169, i32 %171, i32 %173, i32 %175, i32 %177)
%179 = call i32 @bit_rot_left(i8* %10, i32 16, i32 7)
%180 = load i32, i32* @stdout
%181 = call i32 (i32, i8*, ...) @fprintf(i32 %180, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.13, i64 0, i64 0))
%182 = load i32, i32* @stdout
%183 = load i8, i8* %10
%184 = zext i8 %183 to i32
%185 = load i8, i8* %24
%186 = zext i8 %185 to i32
%187 = load i8, i8* %25
%188 = zext i8 %187 to i32
%189 = load i8, i8* %26
%190 = zext i8 %189 to i32
%191 = load i8, i8* %27
%192 = zext i8 %191 to i32
%193 = load i8, i8* %28
%194 = zext i8 %193 to i32
%195 = load i8, i8* %29
%196 = zext i8 %195 to i32
%197 = load i8, i8* %30
%198 = zext i8 %197 to i32
%199 = call i32 (i32, i8*, ...) @fprintf(i32 %182, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %184, i32 %186, i32 %188, i32 %190, i32 %192, i32 %194, i32 %196, i32 %198)
%200 = call i32 @bit_rot_left(i8* %10, i32 8, i32 2)
%201 = load i32, i32* @stdout
%202 = call i32 (i32, i8*, ...) @fprintf(i32 %201, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.14, i64 0, i64 0))
%203 = load i32, i32* @stdout
%204 = load i8, i8* %10
%205 = zext i8 %204 to i32
%206 = load i8, i8* %24
%207 = zext i8 %206 to i32
%208 = load i8, i8* %25
%209 = zext i8 %208 to i32
%210 = load i8, i8* %26
%211 = zext i8 %210 to i32
%212 = load i8, i8* %27
%213 = zext i8 %212 to i32
%214 = load i8, i8* %28
%215 = zext i8 %214 to i32
%216 = load i8, i8* %29
%217 = zext i8 %216 to i32
%218 = load i8, i8* %30
%219 = zext i8 %218 to i32
%220 = call i32 (i32, i8*, ...) @fprintf(i32 %203, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %205, i32 %207, i32 %209, i32 %211, i32 %213, i32 %215, i32 %217, i32 %219)
store i64 0, i64* %5
%221 = call i32 @bit_set(i8* %10, i32 0, i32 1)
%222 = call i32 @bit_set(i8* %10, i32 3, i32 1)
%223 = call i32 @bit_set(i8* %10, i32 8, i32 1)
%224 = call i32 @bit_set(i8* %10, i32 27, i32 1)
%225 = load i32, i32* @stdout
%226 = call i32 (i32, i8*, ...) @fprintf(i32 %225, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.15, i64 0, i64 0))
%227 = load i32, i32* @stdout
%228 = load i8, i8* %10
%229 = zext i8 %228 to i32
%230 = load i8, i8* %24
%231 = zext i8 %230 to i32
%232 = load i8, i8* %25
%233 = zext i8 %232 to i32
%234 = load i8, i8* %26
%235 = zext i8 %234 to i32
%236 = load i8, i8* %27
%237 = zext i8 %236 to i32
%238 = load i8, i8* %28
%239 = zext i8 %238 to i32
%240 = load i8, i8* %29
%241 = zext i8 %240 to i32
%242 = load i8, i8* %30
%243 = zext i8 %242 to i32
%244 = call i32 (i32, i8*, ...) @fprintf(i32 %227, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %229, i32 %231, i32 %233, i32 %235, i32 %237, i32 %239, i32 %241, i32 %243)
%245 = call i32 @bit_rot_left(i8* %10, i32 11, i32 6)
%246 = load i32, i32* @stdout
%247 = call i32 (i32, i8*, ...) @fprintf(i32 %246, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.16, i64 0, i64 0))
%248 = load i32, i32* @stdout
%249 = load i8, i8* %10
%250 = zext i8 %249 to i32
%251 = load i8, i8* %24
%252 = zext i8 %251 to i32
%253 = load i8, i8* %25
%254 = zext i8 %253 to i32
%255 = load i8, i8* %26
%256 = zext i8 %255 to i32
%257 = load i8, i8* %27
%258 = zext i8 %257 to i32
%259 = load i8, i8* %28
%260 = zext i8 %259 to i32
%261 = load i8, i8* %29
%262 = zext i8 %261 to i32
%263 = load i8, i8* %30
%264 = zext i8 %263 to i32
%265 = call i32 (i32, i8*, ...) @fprintf(i32 %248, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %250, i32 %252, i32 %254, i32 %256, i32 %258, i32 %260, i32 %262, i32 %264)
store i64 0, i64* %5
%266 = call i32 @bit_set(i8* %10, i32 0, i32 1)
%267 = call i32 @bit_set(i8* %10, i32 3, i32 1)
%268 = call i32 @bit_set(i8* %10, i32 8, i32 1)
%269 = call i32 @bit_set(i8* %10, i32 27, i32 1)
%270 = load i32, i32* @stdout
%271 = call i32 (i32, i8*, ...) @fprintf(i32 %270, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.15, i64 0, i64 0))
%272 = load i32, i32* @stdout
%273 = load i8, i8* %10
%274 = zext i8 %273 to i32
%275 = load i8, i8* %24
%276 = zext i8 %275 to i32
%277 = load i8, i8* %25
%278 = zext i8 %277 to i32
%279 = load i8, i8* %26
%280 = zext i8 %279 to i32
%281 = load i8, i8* %27
%282 = zext i8 %281 to i32
%283 = load i8, i8* %28
%284 = zext i8 %283 to i32
%285 = load i8, i8* %29
%286 = zext i8 %285 to i32
%287 = load i8, i8* %30
%288 = zext i8 %287 to i32
%289 = call i32 (i32, i8*, ...) @fprintf(i32 %272, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %274, i32 %276, i32 %278, i32 %280, i32 %282, i32 %284, i32 %286, i32 %288)
%290 = call i32 @bit_rot_left(i8* %10, i32 28, i32 4)
%291 = load i32, i32* @stdout
%292 = call i32 (i32, i8*, ...) @fprintf(i32 %291, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.17, i64 0, i64 0))
%293 = load i32, i32* @stdout
%294 = load i8, i8* %10
%295 = zext i8 %294 to i32
%296 = load i8, i8* %24
%297 = zext i8 %296 to i32
%298 = load i8, i8* %25
%299 = zext i8 %298 to i32
%300 = load i8, i8* %26
%301 = zext i8 %300 to i32
%302 = load i8, i8* %27
%303 = zext i8 %302 to i32
%304 = load i8, i8* %28
%305 = zext i8 %304 to i32
%306 = load i8, i8* %29
%307 = zext i8 %306 to i32
%308 = load i8, i8* %30
%309 = zext i8 %308 to i32
%310 = call i32 (i32, i8*, ...) @fprintf(i32 %293, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %295, i32 %297, i32 %299, i32 %301, i32 %303, i32 %305, i32 %307, i32 %309)
ret i32 0
}