#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 int uint_fast8_t;
typedef scalar_t__ uint8_t;
typedef scalar_t__ uint64_t;
typedef scalar_t__ uint32_t;
typedef scalar_t__ uint16_t;

/* Variables and functions */
scalar_t__ UINT16_C(int);
scalar_t__ UINT32_C(int);
scalar_t__ UINT64_C(int);
scalar_t__ UINT8_C(int);
int /*<<< orphan*/ printf(char *);
scalar_t__ rol16(scalar_t__, int);
scalar_t__ rol32(scalar_t__, int);
scalar_t__ rol64(scalar_t__, int);
scalar_t__ rol8(scalar_t__, int);
scalar_t__ ror16(scalar_t__, int);
scalar_t__ ror32(scalar_t__, int);
scalar_t__ ror64(scalar_t__, int);
scalar_t__ ror8(scalar_t__, int);
int /*<<< orphan*/ u32_to_u8_be(scalar_t__, scalar_t__ *);
int /*<<< orphan*/ u32_to_u8_le(scalar_t__, scalar_t__ *);
int /*<<< orphan*/ u64_to_u8_be(scalar_t__, scalar_t__ *);
int /*<<< orphan*/ u64_to_u8_le(scalar_t__, scalar_t__ *);
scalar_t__ u8_to_u32_be(scalar_t__ *);
scalar_t__ u8_to_u32_le(scalar_t__ *);
scalar_t__ u8_to_u64_be(scalar_t__ *);
scalar_t__ u8_to_u64_le(scalar_t__ *);
int main(void) {
  {
    printf("rol8:  ");
    uint8_t value = UINT8_C(0x55);
    uint8_t expected = UINT8_C(0xAA);
    bool passed = true;
    for (uint_fast8_t i = 0; i < 16; i += 2) {
      passed = passed && (value == rol8(value, i));
      passed = passed && (expected == rol8(value, i + 1));
    }
    if (passed) {
      printf("test passed\n");
    } else {
      printf("test failed\n");
    }
  }
  {
    printf("ror8:  ");
    uint8_t expected = UINT8_C(0x55);
    uint8_t value = UINT8_C(0xAA);
    bool passed = true;
    for (uint_fast8_t i = 0; i < 16; i += 2) {
      passed = passed && (value == ror8(value, i));
      passed = passed && (expected == ror8(value, i + 1));
    }
    if (passed) {
      printf("test passed\n");
    } else {
      printf("test failed\n");
    }
  }
  {
    printf("rol16: ");
    uint16_t value = UINT16_C(0x5555);
    uint16_t expected = UINT16_C(0xAAAA);
    bool passed = true;
    for (uint_fast8_t i = 0; i < 32; i += 2) {
      passed = passed && (value == rol16(value, i));
      passed = passed && (expected == rol16(value, i + 1));
    }
    if (passed) {
      printf("test passed\n");
    } else {
      printf("test failed\n");
    }
  }
  {
    printf("ror16: ");
    uint16_t expected = UINT16_C(0x5555);
    uint16_t value = UINT16_C(0xAAAA);
    bool passed = true;
    for (uint_fast8_t i = 0; i < 32; i += 2) {
      passed = passed && (value == ror16(value, i));
      passed = passed && (expected == ror16(value, i + 1));
    }
    if (passed) {
      printf("test passed\n");
    } else {
      printf("test failed\n");
    }
  }
  {
    printf("rol32: ");
    uint32_t value = UINT32_C(0x55555555);
    uint32_t expected = UINT32_C(0xAAAAAAAA);
    bool passed = true;
    for (uint_fast8_t i = 0; i < 64; i += 2) {
      passed = passed && (value == rol32(value, i));
      passed = passed && (expected == rol32(value, i + 1));
    }
    if (passed) {
      printf("test passed\n");
    } else {
      printf("test failed\n");
    }
  }
  {
    printf("ror32: ");
    uint32_t expected = UINT32_C(0x55555555);
    uint32_t value = UINT32_C(0xAAAAAAAA);
    bool passed = true;
    for (uint_fast8_t i = 0; i < 64; i += 2) {
      passed = passed && (value == ror32(value, i));
      passed = passed && (expected == ror32(value, i + 1));
    }
    if (passed) {
      printf("test passed\n");
    } else {
      printf("test failed\n");
    }
  }
  {
    printf("rol64: ");
    uint64_t value = UINT64_C(0x5555555555555555);
    uint64_t expected = UINT64_C(0xAAAAAAAAAAAAAAAA);
    bool passed = true;
    for (uint_fast8_t i = 0; i < 128; i += 2) {
      passed = passed && (value == rol64(value, i));
      passed = passed && (expected == rol64(value, i + 1));
    }
    if (passed) {
      printf("test passed\n");
    } else {
      printf("test failed\n");
    }
  }
  {
    printf("ror64: ");
    uint64_t expected = UINT64_C(0x5555555555555555);
    uint64_t value = UINT64_C(0xAAAAAAAAAAAAAAAA);
    bool passed = true;
    for (uint_fast8_t i = 0; i < 128; i += 2) {
      passed = passed && (value == ror64(value, i));
      passed = passed && (expected == ror64(value, i + 1));
    }
    if (passed) {
      printf("test passed\n");
    } else {
      printf("test failed\n");
    }
  }
  {
    printf("u32_to_u8_le: ");
    uint32_t value = UINT32_C(0x78563412);
    uint8_t expected[4] = {0x12, 0x34, 0x56, 0x78};
    uint8_t value2[4];
    bool passed = true;
    u32_to_u8_le(value, value2);
    for (uint_fast8_t i = 0; i < 4; i++) {
      passed = passed && (expected[i] == value2[i]);
    }
    if (passed) {
      printf("test passed\n");
    } else {
      printf("test failed\n");
    }
  }
  {
    printf("u32_to_u8_be: ");
    uint32_t value = UINT32_C(0x12345678);
    uint8_t expected[4] = {0x12, 0x34, 0x56, 0x78};
    uint8_t value2[4];
    bool passed = true;
    u32_to_u8_be(value, value2);
    for (uint_fast8_t i = 0; i < 4; i++) {
      passed = passed && (expected[i] == value2[i]);
    }
    if (passed) {
      printf("test passed\n");
    } else {
      printf("test failed\n");
    }
  }
  {
    printf("u64_to_u8_le: ");
    uint64_t value = UINT64_C(0xF0DEBC9A78563412);
    uint8_t expected[8] = {0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC, 0xDE, 0xF0};
    uint8_t value2[8];
    bool passed = true;
    u64_to_u8_le(value, value2);
    for (uint_fast8_t i = 0; i < 8; i++) {
      passed = passed && (expected[i] == value2[i]);
    }
    if (passed) {
      printf("test passed\n");
    } else {
      printf("test failed\n");
    }
  }
  {
    printf("u64_to_u8_be: ");
    uint64_t value = UINT64_C(0x123456789ABCDEF0);
    uint8_t expected[8] = {0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC, 0xDE, 0xF0};
    uint8_t value2[8];
    bool passed = true;
    u64_to_u8_be(value, value2);
    for (uint_fast8_t i = 0; i < 8; i++) {
      passed = passed && (expected[i] == value2[i]);
    }
    if (passed) {
      printf("test passed\n");
    } else {
      printf("test failed\n");
    }
  }
  {
    printf("u8_to_u32_le: ");
    uint8_t value[4] = {0x12, 0x34, 0x56, 0x78};
    uint32_t expected = UINT32_C(0x78563412);
    if (expected == u8_to_u32_le(value)) {
      printf("test passed\n");
    } else {
      printf("test failed\n");
    }
  }
  {
    printf("u8_to_u32_be: ");
    uint8_t value[4] = {0x12, 0x34, 0x56, 0x78};
    uint32_t expected = UINT32_C(0x12345678);
    if (expected == u8_to_u32_be(value)) {
      printf("test passed\n");
    } else {
      printf("test failed\n");
    }
  }
  {
    printf("u8_to_u64_le: ");
    uint8_t value[8] = {0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC, 0xDE, 0xF0};
    uint64_t expected = UINT64_C(0xF0DEBC9A78563412);
    if (expected == u8_to_u64_le(value)) {
      printf("test passed\n");
    } else {
      printf("test failed\n");
    }
  }
  {
    printf("u8_to_u64_be: ");
    uint8_t value[8] = {0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC, 0xDE, 0xF0};
    uint64_t expected = UINT64_C(0x123456789ABCDEF0);
    if (expected == u8_to_u64_be(value)) {
      printf("test passed\n");
    } else {
      printf("test failed\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x4b0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0x1d87(%rip),%rdi
call   1090 <printf@plt>
mov    $0x55,%edi
call   10c0 <UINT8_C@plt>
mov    %rax,-0x10(%rbp)
mov    $0xaa,%edi
call   10c0 <UINT8_C@plt>
mov    %rax,-0x18(%rbp)
movl   $0x1,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
cmpl   $0x10,-0x20(%rbp)
jge    135d <main+0xfd>
xor    %eax,%eax
cmpl   $0x0,-0x1c(%rbp)
mov    %al,-0x389(%rbp)
je     12f1 <main+0x91>
mov    -0x10(%rbp),%rax
mov    %rax,-0x398(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
call   1160 <rol8@plt>
mov    %rax,%rcx
mov    -0x398(%rbp),%rax
cmp    %rcx,%rax
sete   %al
mov    %al,-0x389(%rbp)
mov    -0x389(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x1c(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x1c(%rbp)
mov    %al,-0x399(%rbp)
je     1341 <main+0xe1>
mov    -0x18(%rbp),%rax
mov    %rax,-0x3a8(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
add    $0x1,%esi
call   1160 <rol8@plt>
mov    %rax,%rcx
mov    -0x3a8(%rbp),%rax
cmp    %rcx,%rax
sete   %al
mov    %al,-0x399(%rbp)
mov    -0x399(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x20(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x20(%rbp)
jmp    12a8 <main+0x48>
cmpl   $0x0,-0x1c(%rbp)
je     1378 <main+0x118>
lea    0x1c9a(%rip),%rdi
call   1090 <printf@plt>
jmp    1384 <main+0x124>
lea    0x1c96(%rip),%rdi
call   1090 <printf@plt>
lea    0x1c97(%rip),%rdi
call   1090 <printf@plt>
mov    $0x55,%edi
call   10c0 <UINT8_C@plt>
mov    %rax,-0x28(%rbp)
mov    $0xaa,%edi
call   10c0 <UINT8_C@plt>
mov    %rax,-0x30(%rbp)
movl   $0x1,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
cmpl   $0x10,-0x38(%rbp)
jge    146f <main+0x20f>
xor    %eax,%eax
cmpl   $0x0,-0x34(%rbp)
mov    %al,-0x3a9(%rbp)
je     1403 <main+0x1a3>
mov    -0x30(%rbp),%rax
mov    %rax,-0x3b8(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%esi
call   1120 <ror8@plt>
mov    %rax,%rcx
mov    -0x3b8(%rbp),%rax
cmp    %rcx,%rax
sete   %al
mov    %al,-0x3a9(%rbp)
mov    -0x3a9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x34(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x34(%rbp)
mov    %al,-0x3b9(%rbp)
je     1453 <main+0x1f3>
mov    -0x28(%rbp),%rax
mov    %rax,-0x3c8(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%esi
add    $0x1,%esi
call   1120 <ror8@plt>
mov    %rax,%rcx
mov    -0x3c8(%rbp),%rax
cmp    %rcx,%rax
sete   %al
mov    %al,-0x3b9(%rbp)
mov    -0x3b9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x34(%rbp)
mov    -0x38(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x38(%rbp)
jmp    13ba <main+0x15a>
cmpl   $0x0,-0x34(%rbp)
je     148a <main+0x22a>
lea    0x1b88(%rip),%rdi
call   1090 <printf@plt>
jmp    1496 <main+0x236>
lea    0x1b84(%rip),%rdi
call   1090 <printf@plt>
lea    0x1b8d(%rip),%rdi
call   1090 <printf@plt>
mov    $0x5555,%edi
call   1170 <UINT16_C@plt>
mov    %rax,-0x40(%rbp)
mov    $0xaaaa,%edi
call   1170 <UINT16_C@plt>
mov    %rax,-0x48(%rbp)
movl   $0x1,-0x4c(%rbp)
movl   $0x0,-0x50(%rbp)
cmpl   $0x20,-0x50(%rbp)
jge    1581 <main+0x321>
xor    %eax,%eax
cmpl   $0x0,-0x4c(%rbp)
mov    %al,-0x3c9(%rbp)
je     1515 <main+0x2b5>
mov    -0x40(%rbp),%rax
mov    %rax,-0x3d8(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x50(%rbp),%esi
call   10e0 <rol16@plt>
mov    %rax,%rcx
mov    -0x3d8(%rbp),%rax
cmp    %rcx,%rax
sete   %al
mov    %al,-0x3c9(%rbp)
mov    -0x3c9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4c(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x4c(%rbp)
mov    %al,-0x3d9(%rbp)
je     1565 <main+0x305>
mov    -0x48(%rbp),%rax
mov    %rax,-0x3e8(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x50(%rbp),%esi
add    $0x1,%esi
call   10e0 <rol16@plt>
mov    %rax,%rcx
mov    -0x3e8(%rbp),%rax
cmp    %rcx,%rax
sete   %al
mov    %al,-0x3d9(%rbp)
mov    -0x3d9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x50(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x50(%rbp)
jmp    14cc <main+0x26c>
cmpl   $0x0,-0x4c(%rbp)
je     159c <main+0x33c>
lea    0x1a76(%rip),%rdi
call   1090 <printf@plt>
jmp    15a8 <main+0x348>
lea    0x1a72(%rip),%rdi
call   1090 <printf@plt>
lea    0x1a83(%rip),%rdi
call   1090 <printf@plt>
mov    $0x5555,%edi
call   1170 <UINT16_C@plt>
mov    %rax,-0x58(%rbp)
mov    $0xaaaa,%edi
call   1170 <UINT16_C@plt>
mov    %rax,-0x60(%rbp)
movl   $0x1,-0x64(%rbp)
movl   $0x0,-0x68(%rbp)
cmpl   $0x20,-0x68(%rbp)
jge    1693 <main+0x433>
xor    %eax,%eax
cmpl   $0x0,-0x64(%rbp)
mov    %al,-0x3e9(%rbp)
je     1627 <main+0x3c7>
mov    -0x60(%rbp),%rax
mov    %rax,-0x3f8(%rbp)
mov    -0x60(%rbp),%rdi
mov    -0x68(%rbp),%esi
call   1060 <ror16@plt>
mov    %rax,%rcx
mov    -0x3f8(%rbp),%rax
cmp    %rcx,%rax
sete   %al
mov    %al,-0x3e9(%rbp)
mov    -0x3e9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x64(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x64(%rbp)
mov    %al,-0x3f9(%rbp)
je     1677 <main+0x417>
mov    -0x58(%rbp),%rax
mov    %rax,-0x408(%rbp)
mov    -0x60(%rbp),%rdi
mov    -0x68(%rbp),%esi
add    $0x1,%esi
call   1060 <ror16@plt>
mov    %rax,%rcx
mov    -0x408(%rbp),%rax
cmp    %rcx,%rax
sete   %al
mov    %al,-0x3f9(%rbp)
mov    -0x3f9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x64(%rbp)
mov    -0x68(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x68(%rbp)
jmp    15de <main+0x37e>
cmpl   $0x0,-0x64(%rbp)
je     16ae <main+0x44e>
lea    0x1964(%rip),%rdi
call   1090 <printf@plt>
jmp    16ba <main+0x45a>
lea    0x1960(%rip),%rdi
call   1090 <printf@plt>
lea    0x1979(%rip),%rdi
call   1090 <printf@plt>
mov    $0x55555555,%edi
call   1130 <UINT32_C@plt>
mov    %rax,-0x70(%rbp)
mov    $0xaaaaaaaa,%edi
call   1130 <UINT32_C@plt>
mov    %rax,-0x78(%rbp)
movl   $0x1,-0x7c(%rbp)
movl   $0x0,-0x80(%rbp)
cmpl   $0x40,-0x80(%rbp)
jge    17a5 <main+0x545>
xor    %eax,%eax
cmpl   $0x0,-0x7c(%rbp)
mov    %al,-0x409(%rbp)
je     1739 <main+0x4d9>
mov    -0x70(%rbp),%rax
mov    %rax,-0x418(%rbp)
mov    -0x70(%rbp),%rdi
mov    -0x80(%rbp),%esi
call   1080 <rol32@plt>
mov    %rax,%rcx
mov    -0x418(%rbp),%rax
cmp    %rcx,%rax
sete   %al
mov    %al,-0x409(%rbp)
mov    -0x409(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x7c(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x7c(%rbp)
mov    %al,-0x419(%rbp)
je     1789 <main+0x529>
mov    -0x78(%rbp),%rax
mov    %rax,-0x428(%rbp)
mov    -0x70(%rbp),%rdi
mov    -0x80(%rbp),%esi
add    $0x1,%esi
call   1080 <rol32@plt>
mov    %rax,%rcx
mov    -0x428(%rbp),%rax
cmp    %rcx,%rax
sete   %al
mov    %al,-0x419(%rbp)
mov    -0x419(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x7c(%rbp)
mov    -0x80(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x80(%rbp)
jmp    16f0 <main+0x490>
cmpl   $0x0,-0x7c(%rbp)
je     17c0 <main+0x560>
lea    0x1852(%rip),%rdi
call   1090 <printf@plt>
jmp    17cc <main+0x56c>
lea    0x184e(%rip),%rdi
call   1090 <printf@plt>
lea    0x186f(%rip),%rdi
call   1090 <printf@plt>
mov    $0x55555555,%edi
call   1130 <UINT32_C@plt>
mov    %rax,-0x88(%rbp)
mov    $0xaaaaaaaa,%edi
call   1130 <UINT32_C@plt>
mov    %rax,-0x90(%rbp)
movl   $0x1,-0x94(%rbp)
movl   $0x0,-0x98(%rbp)
cmpl   $0x40,-0x98(%rbp)
jge    18ea <main+0x68a>
xor    %eax,%eax
cmpl   $0x0,-0x94(%rbp)
mov    %al,-0x429(%rbp)
je     1866 <main+0x606>
mov    -0x90(%rbp),%rax
mov    %rax,-0x438(%rbp)
mov    -0x90(%rbp),%rdi
mov    -0x98(%rbp),%esi
call   10b0 <ror32@plt>
mov    %rax,%rcx
mov    -0x438(%rbp),%rax
cmp    %rcx,%rax
sete   %al
mov    %al,-0x429(%rbp)
mov    -0x429(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x94(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x94(%rbp)
mov    %al,-0x439(%rbp)
je     18c5 <main+0x665>
mov    -0x88(%rbp),%rax
mov    %rax,-0x448(%rbp)
mov    -0x90(%rbp),%rdi
mov    -0x98(%rbp),%esi
add    $0x1,%esi
call   10b0 <ror32@plt>
mov    %rax,%rcx
mov    -0x448(%rbp),%rax
cmp    %rcx,%rax
sete   %al
mov    %al,-0x439(%rbp)
mov    -0x439(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x94(%rbp)
mov    -0x98(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x98(%rbp)
jmp    180e <main+0x5ae>
cmpl   $0x0,-0x94(%rbp)
je     1908 <main+0x6a8>
lea    0x170a(%rip),%rdi
call   1090 <printf@plt>
jmp    1914 <main+0x6b4>
lea    0x1706(%rip),%rdi
call   1090 <printf@plt>
lea    0x172f(%rip),%rdi
call   1090 <printf@plt>
mov    $0x55555555,%edi
call   1040 <UINT64_C@plt>
mov    %rax,-0xa0(%rbp)
mov    $0xaaaaaaaa,%edi
call   1040 <UINT64_C@plt>
mov    %rax,-0xa8(%rbp)
movl   $0x1,-0xac(%rbp)
movl   $0x0,-0xb0(%rbp)
cmpl   $0x80,-0xb0(%rbp)
jge    1a35 <main+0x7d5>
xor    %eax,%eax
cmpl   $0x0,-0xac(%rbp)
mov    %al,-0x449(%rbp)
je     19b1 <main+0x751>
mov    -0xa0(%rbp),%rax
mov    %rax,-0x458(%rbp)
mov    -0xa0(%rbp),%rdi
mov    -0xb0(%rbp),%esi
call   1100 <rol64@plt>
mov    %rax,%rcx
mov    -0x458(%rbp),%rax
cmp    %rcx,%rax
sete   %al
mov    %al,-0x449(%rbp)
mov    -0x449(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xac(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0xac(%rbp)
mov    %al,-0x459(%rbp)
je     1a10 <main+0x7b0>
mov    -0xa8(%rbp),%rax
mov    %rax,-0x468(%rbp)
mov    -0xa0(%rbp),%rdi
mov    -0xb0(%rbp),%esi
add    $0x1,%esi
call   1100 <rol64@plt>
mov    %rax,%rcx
mov    -0x468(%rbp),%rax
cmp    %rcx,%rax
sete   %al
mov    %al,-0x459(%rbp)
mov    -0x459(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xac(%rbp)
mov    -0xb0(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0xb0(%rbp)
jmp    1956 <main+0x6f6>
cmpl   $0x0,-0xac(%rbp)
je     1a53 <main+0x7f3>
lea    0x15bf(%rip),%rdi
call   1090 <printf@plt>
jmp    1a5f <main+0x7ff>
lea    0x15bb(%rip),%rdi
call   1090 <printf@plt>
lea    0x15ec(%rip),%rdi
call   1090 <printf@plt>
mov    $0x55555555,%edi
call   1040 <UINT64_C@plt>
mov    %rax,-0xb8(%rbp)
mov    $0xaaaaaaaa,%edi
call   1040 <UINT64_C@plt>
mov    %rax,-0xc0(%rbp)
movl   $0x1,-0xc4(%rbp)
movl   $0x0,-0xc8(%rbp)
cmpl   $0x80,-0xc8(%rbp)
jge    1b80 <main+0x920>
xor    %eax,%eax
cmpl   $0x0,-0xc4(%rbp)
mov    %al,-0x469(%rbp)
je     1afc <main+0x89c>
mov    -0xc0(%rbp),%rax
mov    %rax,-0x478(%rbp)
mov    -0xc0(%rbp),%rdi
mov    -0xc8(%rbp),%esi
call   1050 <ror64@plt>
mov    %rax,%rcx
mov    -0x478(%rbp),%rax
cmp    %rcx,%rax
sete   %al
mov    %al,-0x469(%rbp)
mov    -0x469(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xc4(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0xc4(%rbp)
mov    %al,-0x479(%rbp)
je     1b5b <main+0x8fb>
mov    -0xb8(%rbp),%rax
mov    %rax,-0x488(%rbp)
mov    -0xc0(%rbp),%rdi
mov    -0xc8(%rbp),%esi
add    $0x1,%esi
call   1050 <ror64@plt>
mov    %rax,%rcx
mov    -0x488(%rbp),%rax
cmp    %rcx,%rax
sete   %al
mov    %al,-0x479(%rbp)
mov    -0x479(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xc4(%rbp)
mov    -0xc8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0xc8(%rbp)
jmp    1aa1 <main+0x841>
cmpl   $0x0,-0xc4(%rbp)
je     1b9e <main+0x93e>
lea    0x1474(%rip),%rdi
call   1090 <printf@plt>
jmp    1baa <main+0x94a>
lea    0x1470(%rip),%rdi
call   1090 <printf@plt>
lea    0x14a9(%rip),%rdi
call   1090 <printf@plt>
mov    $0x78563412,%edi
call   1130 <UINT32_C@plt>
mov    %rax,-0xd0(%rbp)
mov    0x1512(%rip),%rax
mov    %rax,-0xf0(%rbp)
mov    0x150c(%rip),%rax
mov    %rax,-0xe8(%rbp)
mov    0x1506(%rip),%rax
mov    %rax,-0xe0(%rbp)
mov    0x1500(%rip),%rax
mov    %rax,-0xd8(%rbp)
movl   $0x1,-0x114(%rbp)
mov    -0xd0(%rbp),%rdi
lea    -0x110(%rbp),%rsi
call   1110 <u32_to_u8_le@plt>
movl   $0x0,-0x118(%rbp)
cmpl   $0x4,-0x118(%rbp)
jge    1c94 <main+0xa34>
xor    %eax,%eax
cmpl   $0x0,-0x114(%rbp)
mov    %al,-0x489(%rbp)
je     1c6f <main+0xa0f>
movslq -0x118(%rbp),%rax
mov    -0xf0(%rbp,%rax,8),%rax
ff
movslq -0x118(%rbp),%rcx
cmp    -0x110(%rbp,%rcx,8),%rax
ff
sete   %al
mov    %al,-0x489(%rbp)
mov    -0x489(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x114(%rbp)
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    1c26 <main+0x9c6>
cmpl   $0x0,-0x114(%rbp)
je     1cb2 <main+0xa52>
lea    0x1360(%rip),%rdi
call   1090 <printf@plt>
jmp    1cbe <main+0xa5e>
lea    0x135c(%rip),%rdi
call   1090 <printf@plt>
lea    0x13a4(%rip),%rdi
call   1090 <printf@plt>
mov    $0x12345678,%edi
call   1130 <UINT32_C@plt>
mov    %rax,-0x120(%rbp)
mov    0x13fe(%rip),%rax
mov    %rax,-0x140(%rbp)
mov    0x13f8(%rip),%rax
mov    %rax,-0x138(%rbp)
mov    0x13f2(%rip),%rax
mov    %rax,-0x130(%rbp)
mov    0x13ec(%rip),%rax
mov    %rax,-0x128(%rbp)
movl   $0x1,-0x164(%rbp)
mov    -0x120(%rbp),%rdi
lea    -0x160(%rbp),%rsi
call   10a0 <u32_to_u8_be@plt>
movl   $0x0,-0x168(%rbp)
cmpl   $0x4,-0x168(%rbp)
jge    1da8 <main+0xb48>
xor    %eax,%eax
cmpl   $0x0,-0x164(%rbp)
mov    %al,-0x48a(%rbp)
je     1d83 <main+0xb23>
movslq -0x168(%rbp),%rax
mov    -0x140(%rbp,%rax,8),%rax
ff
movslq -0x168(%rbp),%rcx
cmp    -0x160(%rbp,%rcx,8),%rax
ff
sete   %al
mov    %al,-0x48a(%rbp)
mov    -0x48a(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x164(%rbp)
mov    -0x168(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x168(%rbp)
jmp    1d3a <main+0xada>
cmpl   $0x0,-0x164(%rbp)
je     1dc6 <main+0xb66>
lea    0x124c(%rip),%rdi
call   1090 <printf@plt>
jmp    1dd2 <main+0xb72>
lea    0x1248(%rip),%rdi
call   1090 <printf@plt>
lea    0x129f(%rip),%rdi
call   1090 <printf@plt>
mov    $0x78563412,%edi
call   1040 <UINT64_C@plt>
mov    %rax,-0x170(%rbp)
lea    -0x1b0(%rbp),%rdi
lea    0x1303(%rip),%rsi
mov    $0x40,%edx
call   10f0 <memcpy@plt>
movl   $0x1,-0x1f4(%rbp)
mov    -0x170(%rbp),%rdi
lea    -0x1f0(%rbp),%rsi
call   1180 <u64_to_u8_le@plt>
movl   $0x0,-0x1f8(%rbp)
cmpl   $0x8,-0x1f8(%rbp)
jge    1e9c <main+0xc3c>
xor    %eax,%eax
cmpl   $0x0,-0x1f4(%rbp)
mov    %al,-0x48b(%rbp)
je     1e77 <main+0xc17>
movslq -0x1f8(%rbp),%rax
mov    -0x1b0(%rbp,%rax,8),%rax
ff
movslq -0x1f8(%rbp),%rcx
cmp    -0x1f0(%rbp,%rcx,8),%rax
ff
sete   %al
mov    %al,-0x48b(%rbp)
mov    -0x48b(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x1f4(%rbp)
mov    -0x1f8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1f8(%rbp)
jmp    1e2e <main+0xbce>
cmpl   $0x0,-0x1f4(%rbp)
je     1eba <main+0xc5a>
lea    0x1158(%rip),%rdi
call   1090 <printf@plt>
jmp    1ec6 <main+0xc66>
lea    0x1154(%rip),%rdi
call   1090 <printf@plt>
lea    0x11ba(%rip),%rdi
call   1090 <printf@plt>
mov    $0x9abcdef0,%edi
call   1040 <UINT64_C@plt>
mov    %rax,-0x200(%rbp)
lea    -0x240(%rbp),%rdi
lea    0x124f(%rip),%rsi
mov    $0x40,%edx
call   10f0 <memcpy@plt>
movl   $0x1,-0x284(%rbp)
mov    -0x200(%rbp),%rdi
lea    -0x280(%rbp),%rsi
call   1140 <u64_to_u8_be@plt>
movl   $0x0,-0x288(%rbp)
cmpl   $0x8,-0x288(%rbp)
jge    1f90 <main+0xd30>
xor    %eax,%eax
cmpl   $0x0,-0x284(%rbp)
mov    %al,-0x48c(%rbp)
je     1f6b <main+0xd0b>
movslq -0x288(%rbp),%rax
mov    -0x240(%rbp,%rax,8),%rax
ff
movslq -0x288(%rbp),%rcx
cmp    -0x280(%rbp,%rcx,8),%rax
ff
sete   %al
mov    %al,-0x48c(%rbp)
mov    -0x48c(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x284(%rbp)
mov    -0x288(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x288(%rbp)
jmp    1f22 <main+0xcc2>
cmpl   $0x0,-0x284(%rbp)
je     1fae <main+0xd4e>
lea    0x1064(%rip),%rdi
call   1090 <printf@plt>
jmp    1fba <main+0xd5a>
lea    0x1060(%rip),%rdi
call   1090 <printf@plt>
lea    0x10d5(%rip),%rdi
call   1090 <printf@plt>
mov    0x1113(%rip),%rax
mov    %rax,-0x2b0(%rbp)
mov    0x110d(%rip),%rax
mov    %rax,-0x2a8(%rbp)
mov    0x1107(%rip),%rax
mov    %rax,-0x2a0(%rbp)
mov    0x1101(%rip),%rax
mov    %rax,-0x298(%rbp)
mov    $0x78563412,%edi
call   1130 <UINT32_C@plt>
mov    %rax,-0x2b8(%rbp)
mov    -0x2b8(%rbp),%rax
mov    %rax,-0x498(%rbp)
lea    -0x2b0(%rbp),%rdi
call   1150 <u8_to_u32_le@plt>
mov    %rax,%rcx
mov    -0x498(%rbp),%rax
cmp    %rcx,%rax
jne    204d <main+0xded>
lea    0xfc5(%rip),%rdi
call   1090 <printf@plt>
jmp    2059 <main+0xdf9>
lea    0xfc1(%rip),%rdi
call   1090 <printf@plt>
lea    0x1045(%rip),%rdi
call   1090 <printf@plt>
mov    0x1074(%rip),%rax
mov    %rax,-0x2e0(%rbp)
mov    0x106e(%rip),%rax
mov    %rax,-0x2d8(%rbp)
mov    0x1068(%rip),%rax
mov    %rax,-0x2d0(%rbp)
mov    0x1062(%rip),%rax
mov    %rax,-0x2c8(%rbp)
mov    $0x12345678,%edi
call   1130 <UINT32_C@plt>
mov    %rax,-0x2e8(%rbp)
mov    -0x2e8(%rbp),%rax
mov    %rax,-0x4a0(%rbp)
lea    -0x2e0(%rbp),%rdi
call   1030 <u8_to_u32_be@plt>
mov    %rax,%rcx
mov    -0x4a0(%rbp),%rax
cmp    %rcx,%rax
jne    20ec <main+0xe8c>
lea    0xf26(%rip),%rdi
call   1090 <printf@plt>
jmp    20f8 <main+0xe98>
lea    0xf22(%rip),%rdi
call   1090 <printf@plt>
lea    0xfb5(%rip),%rdi
call   1090 <printf@plt>
lea    -0x330(%rbp),%rdi
lea    0x106e(%rip),%rsi
mov    $0x40,%edx
call   10f0 <memcpy@plt>
mov    $0x78563412,%edi
call   1040 <UINT64_C@plt>
mov    %rax,-0x338(%rbp)
mov    -0x338(%rbp),%rax
mov    %rax,-0x4a8(%rbp)
lea    -0x330(%rbp),%rdi
call   1070 <u8_to_u64_le@plt>
mov    %rax,%rcx
mov    -0x4a8(%rbp),%rax
cmp    %rcx,%rax
jne    216b <main+0xf0b>
lea    0xea7(%rip),%rdi
call   1090 <printf@plt>
jmp    2177 <main+0xf17>
lea    0xea3(%rip),%rdi
call   1090 <printf@plt>
lea    0xf45(%rip),%rdi
call   1090 <printf@plt>
lea    -0x380(%rbp),%rdi
lea    0x102f(%rip),%rsi
mov    $0x40,%edx
call   10f0 <memcpy@plt>
mov    $0x9abcdef0,%edi
call   1040 <UINT64_C@plt>
mov    %rax,-0x388(%rbp)
mov    -0x388(%rbp),%rax
mov    %rax,-0x4b0(%rbp)
lea    -0x380(%rbp),%rdi
call   10d0 <u8_to_u64_be@plt>
mov    %rax,%rcx
mov    -0x4b0(%rbp),%rax
cmp    %rcx,%rax
jne    21ea <main+0xf8a>
lea    0xe28(%rip),%rdi
call   1090 <printf@plt>
jmp    21f6 <main+0xf96>
lea    0xe24(%rip),%rdi
call   1090 <printf@plt>
xor    %eax,%eax
add    $0x4b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
lea    0xd8b(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x55,%edi
call   10d0 <UINT8_C@plt>
mov    %rax,%rbx
mov    $0xaa,%edi
call   10d0 <UINT8_C@plt>
mov    %rax,%r14
mov    %rbx,%rdi
xor    %esi,%esi
call   1160 <rol8@plt>
cmp    %rax,%rbx
jne    13de <main+0x17e>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1160 <rol8@plt>
cmp    %rax,%r14
jne    13de <main+0x17e>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1160 <rol8@plt>
cmp    %rax,%rbx
jne    13de <main+0x17e>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1160 <rol8@plt>
cmp    %rax,%r14
jne    13de <main+0x17e>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1160 <rol8@plt>
cmp    %rax,%rbx
jne    13de <main+0x17e>
mov    %rbx,%rdi
mov    $0x5,%esi
call   1160 <rol8@plt>
cmp    %rax,%r14
jne    13de <main+0x17e>
mov    %rbx,%rdi
mov    $0x6,%esi
call   1160 <rol8@plt>
cmp    %rax,%rbx
jne    13de <main+0x17e>
mov    %rbx,%rdi
mov    $0x7,%esi
call   1160 <rol8@plt>
cmp    %rax,%r14
jne    13de <main+0x17e>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1160 <rol8@plt>
cmp    %rax,%rbx
jne    13de <main+0x17e>
mov    %rbx,%rdi
mov    $0x9,%esi
call   1160 <rol8@plt>
cmp    %rax,%r14
jne    13de <main+0x17e>
mov    %rbx,%rdi
mov    $0xa,%esi
call   1160 <rol8@plt>
cmp    %rax,%rbx
jne    13de <main+0x17e>
mov    %rbx,%rdi
mov    $0xb,%esi
call   1160 <rol8@plt>
cmp    %rax,%r14
jne    13de <main+0x17e>
mov    %rbx,%rdi
mov    $0xc,%esi
call   1160 <rol8@plt>
cmp    %rax,%rbx
jne    13de <main+0x17e>
mov    %rbx,%rdi
mov    $0xd,%esi
call   1160 <rol8@plt>
cmp    %rax,%r14
jne    13de <main+0x17e>
mov    %rbx,%rdi
mov    $0xe,%esi
call   1160 <rol8@plt>
cmp    %rax,%rbx
jne    13de <main+0x17e>
mov    %rbx,%rdi
mov    $0xf,%esi
call   1160 <rol8@plt>
cmp    %rax,%r14
jne    13de <main+0x17e>
lea    0xce8(%rip),%rdi
jmp    13e5 <main+0x185>
lea    0xcd3(%rip),%rdi
call   1050 <puts@plt>
lea    0xc17(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x55,%edi
call   10d0 <UINT8_C@plt>
mov    %rax,%r14
mov    $0xaa,%edi
call   10d0 <UINT8_C@plt>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
call   1120 <ror8@plt>
cmp    %rax,%rbx
jne    155a <main+0x2fa>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1120 <ror8@plt>
cmp    %rax,%r14
jne    155a <main+0x2fa>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1120 <ror8@plt>
cmp    %rax,%rbx
jne    155a <main+0x2fa>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1120 <ror8@plt>
cmp    %rax,%r14
jne    155a <main+0x2fa>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1120 <ror8@plt>
cmp    %rax,%rbx
jne    155a <main+0x2fa>
mov    %rbx,%rdi
mov    $0x5,%esi
call   1120 <ror8@plt>
cmp    %rax,%r14
jne    155a <main+0x2fa>
mov    %rbx,%rdi
mov    $0x6,%esi
call   1120 <ror8@plt>
cmp    %rax,%rbx
jne    155a <main+0x2fa>
mov    %rbx,%rdi
mov    $0x7,%esi
call   1120 <ror8@plt>
cmp    %rax,%r14
jne    155a <main+0x2fa>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1120 <ror8@plt>
cmp    %rax,%rbx
jne    155a <main+0x2fa>
mov    %rbx,%rdi
mov    $0x9,%esi
call   1120 <ror8@plt>
cmp    %rax,%r14
jne    155a <main+0x2fa>
mov    %rbx,%rdi
mov    $0xa,%esi
call   1120 <ror8@plt>
cmp    %rax,%rbx
jne    155a <main+0x2fa>
mov    %rbx,%rdi
mov    $0xb,%esi
call   1120 <ror8@plt>
cmp    %rax,%r14
jne    155a <main+0x2fa>
mov    %rbx,%rdi
mov    $0xc,%esi
call   1120 <ror8@plt>
cmp    %rax,%rbx
jne    155a <main+0x2fa>
mov    %rbx,%rdi
mov    $0xd,%esi
call   1120 <ror8@plt>
cmp    %rax,%r14
jne    155a <main+0x2fa>
mov    %rbx,%rdi
mov    $0xe,%esi
call   1120 <ror8@plt>
cmp    %rax,%rbx
jne    155a <main+0x2fa>
mov    %rbx,%rdi
mov    $0xf,%esi
call   1120 <ror8@plt>
cmp    %rax,%r14
jne    155a <main+0x2fa>
lea    0xb6c(%rip),%rdi
jmp    1561 <main+0x301>
lea    0xb57(%rip),%rdi
call   1050 <puts@plt>
lea    0xaa3(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x5555,%edi
call   1170 <UINT16_C@plt>
mov    %rax,%r15
mov    $0xaaaa,%edi
call   1170 <UINT16_C@plt>
mov    %rax,%r14
mov    $0x1,%eax
mov    $0xfffffffe,%ebp
jmp    15aa <main+0x34a>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
movzbl %al,%eax
cmp    $0x1e,%ebp
jae    15d7 <main+0x377>
mov    %ebp,%ebx
lea    0x2(%rbx),%ebp
test   %eax,%eax
je     15a0 <main+0x340>
mov    %r15,%rdi
mov    %ebp,%esi
call   10f0 <rol16@plt>
cmp    %rax,%r15
jne    15a0 <main+0x340>
add    $0x3,%ebx
mov    %r15,%rdi
mov    %ebx,%esi
call   10f0 <rol16@plt>
cmp    %rax,%r14
sete   %al
jmp    15a2 <main+0x342>
lea    0xae6(%rip),%r13
lea    0xad3(%rip),%r14
test   %eax,%eax
mov    %r14,%rdi
cmovne %r13,%rdi
call   1050 <puts@plt>
lea    0xa1e(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x5555,%edi
call   1170 <UINT16_C@plt>
mov    %rax,%r15
mov    $0xaaaa,%edi
call   1170 <UINT16_C@plt>
mov    %rax,%r12
mov    $0x1,%eax
mov    $0xfffffffe,%ebp
jmp    163a <main+0x3da>
cs nopw 0x0(%rax,%rax,1)
nop
xor    %eax,%eax
movzbl %al,%eax
cmp    $0x1e,%ebp
jae    1667 <main+0x407>
mov    %ebp,%ebx
lea    0x2(%rbx),%ebp
test   %eax,%eax
je     1630 <main+0x3d0>
mov    %r12,%rdi
mov    %ebp,%esi
call   1070 <ror16@plt>
cmp    %rax,%r12
jne    1630 <main+0x3d0>
add    $0x3,%ebx
mov    %r12,%rdi
mov    %ebx,%esi
call   1070 <ror16@plt>
cmp    %rax,%r15
sete   %al
jmp    1632 <main+0x3d2>
test   %eax,%eax
mov    %r14,%rdi
cmovne %r13,%rdi
call   1050 <puts@plt>
lea    0x9a4(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x55555555,%edi
call   1130 <UINT32_C@plt>
mov    %rax,%r12
mov    $0xaaaaaaaa,%edi
call   1130 <UINT32_C@plt>
mov    %rax,%r15
mov    $0x1,%eax
mov    $0xfffffffe,%ebp
jmp    16ba <main+0x45a>
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
movzbl %al,%eax
cmp    $0x3e,%ebp
jae    16e7 <main+0x487>
mov    %ebp,%ebx
lea    0x2(%rbx),%ebp
test   %eax,%eax
je     16b0 <main+0x450>
mov    %r12,%rdi
mov    %ebp,%esi
call   1090 <rol32@plt>
cmp    %rax,%r12
jne    16b0 <main+0x450>
add    $0x3,%ebx
mov    %r12,%rdi
mov    %ebx,%esi
call   1090 <rol32@plt>
cmp    %rax,%r15
sete   %al
jmp    16b2 <main+0x452>
test   %eax,%eax
mov    %r14,%rdi
cmovne %r13,%rdi
call   1050 <puts@plt>
lea    0x92c(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x55555555,%edi
call   1130 <UINT32_C@plt>
mov    %rax,%r15
mov    $0xaaaaaaaa,%edi
call   1130 <UINT32_C@plt>
mov    %rax,%r12
mov    $0x1,%eax
mov    $0xfffffffe,%ebp
jmp    173a <main+0x4da>
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
movzbl %al,%eax
cmp    $0x3e,%ebp
jae    1767 <main+0x507>
mov    %ebp,%ebx
lea    0x2(%rbx),%ebp
test   %eax,%eax
je     1730 <main+0x4d0>
mov    %r12,%rdi
mov    %ebp,%esi
call   10c0 <ror32@plt>
cmp    %rax,%r12
jne    1730 <main+0x4d0>
add    $0x3,%ebx
mov    %r12,%rdi
mov    %ebx,%esi
call   10c0 <ror32@plt>
cmp    %rax,%r15
sete   %al
jmp    1732 <main+0x4d2>
test   %eax,%eax
mov    %r14,%rdi
cmovne %r13,%rdi
call   1050 <puts@plt>
lea    0x8b4(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x55555555,%edi
call   1040 <UINT64_C@plt>
mov    %rax,%r12
mov    $0xaaaaaaaa,%edi
call   1040 <UINT64_C@plt>
mov    %rax,%r15
mov    $0x1,%eax
mov    $0xfffffffe,%ebp
jmp    17ba <main+0x55a>
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
movzbl %al,%eax
cmp    $0x7e,%ebp
jae    17e7 <main+0x587>
mov    %ebp,%ebx
lea    0x2(%rbx),%ebp
test   %eax,%eax
je     17b0 <main+0x550>
mov    %r12,%rdi
mov    %ebp,%esi
call   1100 <rol64@plt>
cmp    %rax,%r12
jne    17b0 <main+0x550>
add    $0x3,%ebx
mov    %r12,%rdi
mov    %ebx,%esi
call   1100 <rol64@plt>
cmp    %rax,%r15
sete   %al
jmp    17b2 <main+0x552>
test   %eax,%eax
mov    %r14,%rdi
cmovne %r13,%rdi
call   1050 <puts@plt>
lea    0x83c(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x55555555,%edi
call   1040 <UINT64_C@plt>
mov    %rax,%r15
mov    $0xaaaaaaaa,%edi
call   1040 <UINT64_C@plt>
mov    %rax,%r12
mov    $0x1,%eax
mov    $0xfffffffe,%ebp
jmp    183a <main+0x5da>
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
movzbl %al,%eax
cmp    $0x7e,%ebp
jae    1867 <main+0x607>
mov    %ebp,%ebx
lea    0x2(%rbx),%ebp
test   %eax,%eax
je     1830 <main+0x5d0>
mov    %r12,%rdi
mov    %ebp,%esi
call   1060 <ror64@plt>
cmp    %rax,%r12
jne    1830 <main+0x5d0>
add    $0x3,%ebx
mov    %r12,%rdi
mov    %ebx,%esi
call   1060 <ror64@plt>
cmp    %rax,%r15
sete   %al
jmp    1832 <main+0x5d2>
test   %eax,%eax
mov    %r14,%rdi
cmovne %r13,%rdi
call   1050 <puts@plt>
lea    0x7c4(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x78563412,%edi
call   1130 <UINT32_C@plt>
mov    %rsp,%rsi
mov    %rax,%rdi
call   1110 <u32_to_u8_le@plt>
mov    (%rsp),%rax
mov    0x8(%rsp),%rcx
xor    $0x12,%rax
xor    $0x34,%rcx
or     %rax,%rcx
mov    0x10(%rsp),%rax
xor    $0x56,%rax
mov    0x18(%rsp),%rdx
xor    $0x78,%rdx
or     %rax,%rdx
or     %rcx,%rdx
mov    %r14,%rdi
cmove  %r13,%rdi
call   1050 <puts@plt>
lea    0x77a(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x12345678,%edi
call   1130 <UINT32_C@plt>
mov    %rsp,%rsi
mov    %rax,%rdi
call   10b0 <u32_to_u8_be@plt>
mov    (%rsp),%rax
mov    0x8(%rsp),%rcx
xor    $0x12,%rax
xor    $0x34,%rcx
or     %rax,%rcx
mov    0x10(%rsp),%rax
xor    $0x56,%rax
mov    0x18(%rsp),%rdx
xor    $0x78,%rdx
or     %rax,%rdx
or     %rcx,%rdx
mov    %r14,%rdi
cmove  %r13,%rdi
call   1050 <puts@plt>
lea    0x730(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x78563412,%edi
call   1040 <UINT64_C@plt>
mov    %rsp,%rsi
mov    %rax,%rdi
call   1180 <u64_to_u8_le@plt>
mov    (%rsp),%rcx
mov    0x8(%rsp),%rax
xor    $0x12,%rcx
xor    $0x34,%rax
or     %rcx,%rax
mov    0x10(%rsp),%rcx
xor    $0x56,%rcx
mov    0x18(%rsp),%rdx
xor    $0x78,%rdx
or     %rcx,%rdx
mov    $0x9a,%r15d
mov    0x20(%rsp),%rcx
xor    %r15,%rcx
mov    $0xbc,%ebx
mov    0x28(%rsp),%rsi
xor    %rbx,%rsi
or     %rcx,%rsi
mov    $0xde,%r12d
mov    0x30(%rsp),%rcx
xor    %r12,%rcx
mov    $0xf0,%ebp
mov    0x38(%rsp),%rdi
xor    %rbp,%rdi
or     %rcx,%rdi
or     %rsi,%rdi
or     %rdx,%rdi
or     %rax,%rdi
mov    %r14,%rdi
cmove  %r13,%rdi
call   1050 <puts@plt>
lea    0x6a4(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x9abcdef0,%edi
call   1040 <UINT64_C@plt>
mov    %rsp,%rsi
mov    %rax,%rdi
call   1140 <u64_to_u8_be@plt>
mov    (%rsp),%rcx
mov    0x8(%rsp),%rax
xor    $0x12,%rcx
xor    $0x34,%rax
or     %rcx,%rax
mov    0x10(%rsp),%rcx
xor    $0x56,%rcx
mov    0x18(%rsp),%rdx
xor    $0x78,%rdx
xor    0x20(%rsp),%r15
xor    0x28(%rsp),%rbx
or     %rcx,%rdx
or     %r15,%rbx
xor    0x30(%rsp),%r12
xor    0x38(%rsp),%rbp
or     %r12,%rbp
or     %rbx,%rbp
or     %rdx,%rbp
or     %rax,%rbp
mov    %r14,%rdi
cmove  %r13,%rdi
call   1050 <puts@plt>
lea    0x63a(%rip),%rdi
call   10a0 <printf@plt>
movaps 0x692(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0x676(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    $0x78563412,%edi
call   1130 <UINT32_C@plt>
mov    %rax,%rbx
mov    %rsp,%rdi
call   1150 <u8_to_u32_le@plt>
cmp    %rax,%rbx
mov    %r14,%rdi
cmove  %r13,%rdi
call   1050 <puts@plt>
lea    0x602(%rip),%rdi
call   10a0 <printf@plt>
movaps 0x64b(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0x62f(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    $0x12345678,%edi
call   1130 <UINT32_C@plt>
mov    %rax,%rbx
mov    %rsp,%rdi
call   1030 <u8_to_u32_be@plt>
cmp    %rax,%rbx
mov    %r14,%rdi
cmove  %r13,%rdi
call   1050 <puts@plt>
lea    0x5ca(%rip),%rdi
call   10a0 <printf@plt>
movaps 0x644(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0x628(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0x60c(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0x5f0(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    $0x78563412,%edi
call   1040 <UINT64_C@plt>
mov    %rax,%rbx
mov    %rsp,%rdi
call   1080 <u8_to_u64_le@plt>
cmp    %rax,%rbx
mov    %r14,%rdi
cmove  %r13,%rdi
call   1050 <puts@plt>
lea    0x57a(%rip),%rdi
call   10a0 <printf@plt>
movaps 0x5e5(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0x5c9(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0x5ad(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0x591(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    $0x9abcdef0,%edi
call   1040 <UINT64_C@plt>
mov    %rax,%rbx
mov    %rsp,%rdi
call   10e0 <u8_to_u64_be@plt>
cmp    %rax,%rbx
cmove  %r13,%r14
mov    %r14,%rdi
call   1050 <puts@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"rol8: \00"
@.str.1 = [13 x i8] c"test passed\0A\00"
@.str.2 = [13 x i8] c"test failed\0A\00"
@.str.3 = [8 x i8] c"ror8: \00"
@.str.4 = [8 x i8] c"rol16: \00"
@.str.5 = [8 x i8] c"ror16: \00"
@.str.6 = [8 x i8] c"rol32: \00"
@.str.7 = [8 x i8] c"ror32: \00"
@.str.8 = [8 x i8] c"rol64: \00"
@.str.9 = [8 x i8] c"ror64: \00"
@.str.10 = [15 x i8] c"u32_to_u8_le: \00"
@__const.main.expected = [4 x i64] [i64 18, i64 52, i64 86, i64 120]
@.str.11 = [15 x i8] c"u32_to_u8_be: \00"
@__const.main.expected.12 = [4 x i64] [i64 18, i64 52, i64 86, i64 120]
@.str.13 = [15 x i8] c"u64_to_u8_le: \00"
@__const.main.expected.14 = [8 x i64] [i64 18, i64 52, i64 86, i64 120, i64 154, i64 188, i64 222, i64 240]
@.str.15 = [15 x i8] c"u64_to_u8_be: \00"
@__const.main.expected.16 = [8 x i64] [i64 18, i64 52, i64 86, i64 120, i64 154, i64 188, i64 222, i64 240]
@.str.17 = [15 x i8] c"u8_to_u32_le: \00"
@__const.main.value = [4 x i64] [i64 18, i64 52, i64 86, i64 120]
@.str.18 = [15 x i8] c"u8_to_u32_be: \00"
@__const.main.value.19 = [4 x i64] [i64 18, i64 52, i64 86, i64 120]
@.str.20 = [15 x i8] c"u8_to_u64_le: \00"
@__const.main.value.21 = [8 x i64] [i64 18, i64 52, i64 86, i64 120, i64 154, i64 188, i64 222, i64 240]
@.str.22 = [15 x i8] c"u8_to_u64_be: \00"
@__const.main.value.23 = [8 x i64] [i64 18, i64 52, i64 86, i64 120, i64 154, i64 188, i64 222, i64 240]
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
%4 = alloca i32
%5 = alloca i32
%6 = alloca i64
%7 = alloca i64
%8 = alloca i32
%9 = alloca i32
%10 = alloca i64
%11 = alloca i64
%12 = alloca i32
%13 = alloca i32
%14 = alloca i64
%15 = alloca i64
%16 = alloca i32
%17 = alloca i32
%18 = alloca i64
%19 = alloca i64
%20 = alloca i32
%21 = alloca i32
%22 = alloca i64
%23 = alloca i64
%24 = alloca i32
%25 = alloca i32
%26 = alloca i64
%27 = alloca i64
%28 = alloca i32
%29 = alloca i32
%30 = alloca i64
%31 = alloca i64
%32 = alloca i32
%33 = alloca i32
%34 = alloca i64
%35 = alloca [4 x i64]
%36 = alloca [4 x i64]
%37 = alloca i32
%38 = alloca i32
%39 = alloca i64
%40 = alloca [4 x i64]
%41 = alloca [4 x i64]
%42 = alloca i32
%43 = alloca i32
%44 = alloca i64
%45 = alloca [8 x i64]
%46 = alloca [8 x i64]
%47 = alloca i32
%48 = alloca i32
%49 = alloca i64
%50 = alloca [8 x i64]
%51 = alloca [8 x i64]
%52 = alloca i32
%53 = alloca i32
%54 = alloca [4 x i64]
%55 = alloca i64
%56 = alloca [4 x i64]
%57 = alloca i64
%58 = alloca [8 x i64]
%59 = alloca i64
%60 = alloca [8 x i64]
%61 = alloca i64
store i32 0, i32* %1
%62 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%63 = call i64 @UINT8_C(i32 85)
store i64 %63, i64* %2
%64 = call i64 @UINT8_C(i32 170)
store i64 %64, i64* %3
store i32 1, i32* %4
store i32 0, i32* %5
br label %65
65: ; preds = %92, %0
%66 = load i32, i32* %5
%67 = icmp slt i32 %66, 16
br i1 %67, label %68, label %95
68: ; preds = %65
%69 = load i32, i32* %4
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %77
71: ; preds = %68
%72 = load i64, i64* %2
%73 = load i64, i64* %2
%74 = load i32, i32* %5
%75 = call i64 @rol8(i64 %73, i32 %74)
%76 = icmp eq i64 %72, %75
br label %77
77: ; preds = %71, %68
%78 = phi i1 [ false, %68 ], [ %76, %71 ]
%79 = zext i1 %78 to i32
store i32 %79, i32* %4
%80 = load i32, i32* %4
%81 = icmp ne i32 %80, 0
br i1 %81, label %82, label %89
82: ; preds = %77
%83 = load i64, i64* %3
%84 = load i64, i64* %2
%85 = load i32, i32* %5
%86 = add nsw i32 %85, 1
%87 = call i64 @rol8(i64 %84, i32 %86)
%88 = icmp eq i64 %83, %87
br label %89
89: ; preds = %82, %77
%90 = phi i1 [ false, %77 ], [ %88, %82 ]
%91 = zext i1 %90 to i32
store i32 %91, i32* %4
br label %92
92: ; preds = %89
%93 = load i32, i32* %5
%94 = add nsw i32 %93, 2
store i32 %94, i32* %5
br label %65
95: ; preds = %65
%96 = load i32, i32* %4
%97 = icmp ne i32 %96, 0
br i1 %97, label %98, label %100
98: ; preds = %95
%99 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %102
100: ; preds = %95
%101 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %102
102: ; preds = %100, %98
%103 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%104 = call i64 @UINT8_C(i32 85)
store i64 %104, i64* %6
%105 = call i64 @UINT8_C(i32 170)
store i64 %105, i64* %7
store i32 1, i32* %8
store i32 0, i32* %9
br label %106
106: ; preds = %133, %102
%107 = load i32, i32* %9
%108 = icmp slt i32 %107, 16
br i1 %108, label %109, label %136
109: ; preds = %106
%110 = load i32, i32* %8
%111 = icmp ne i32 %110, 0
br i1 %111, label %112, label %118
112: ; preds = %109
%113 = load i64, i64* %7
%114 = load i64, i64* %7
%115 = load i32, i32* %9
%116 = call i64 @ror8(i64 %114, i32 %115)
%117 = icmp eq i64 %113, %116
br label %118
118: ; preds = %112, %109
%119 = phi i1 [ false, %109 ], [ %117, %112 ]
%120 = zext i1 %119 to i32
store i32 %120, i32* %8
%121 = load i32, i32* %8
%122 = icmp ne i32 %121, 0
br i1 %122, label %123, label %130
123: ; preds = %118
%124 = load i64, i64* %6
%125 = load i64, i64* %7
%126 = load i32, i32* %9
%127 = add nsw i32 %126, 1
%128 = call i64 @ror8(i64 %125, i32 %127)
%129 = icmp eq i64 %124, %128
br label %130
130: ; preds = %123, %118
%131 = phi i1 [ false, %118 ], [ %129, %123 ]
%132 = zext i1 %131 to i32
store i32 %132, i32* %8
br label %133
133: ; preds = %130
%134 = load i32, i32* %9
%135 = add nsw i32 %134, 2
store i32 %135, i32* %9
br label %106
136: ; preds = %106
%137 = load i32, i32* %8
%138 = icmp ne i32 %137, 0
br i1 %138, label %139, label %141
139: ; preds = %136
%140 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %143
141: ; preds = %136
%142 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %143
143: ; preds = %141, %139
%144 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%145 = call i64 @UINT16_C(i32 21845)
store i64 %145, i64* %10
%146 = call i64 @UINT16_C(i32 43690)
store i64 %146, i64* %11
store i32 1, i32* %12
store i32 0, i32* %13
br label %147
147: ; preds = %174, %143
%148 = load i32, i32* %13
%149 = icmp slt i32 %148, 32
br i1 %149, label %150, label %177
150: ; preds = %147
%151 = load i32, i32* %12
%152 = icmp ne i32 %151, 0
br i1 %152, label %153, label %159
153: ; preds = %150
%154 = load i64, i64* %10
%155 = load i64, i64* %10
%156 = load i32, i32* %13
%157 = call i64 @rol16(i64 %155, i32 %156)
%158 = icmp eq i64 %154, %157
br label %159
159: ; preds = %153, %150
%160 = phi i1 [ false, %150 ], [ %158, %153 ]
%161 = zext i1 %160 to i32
store i32 %161, i32* %12
%162 = load i32, i32* %12
%163 = icmp ne i32 %162, 0
br i1 %163, label %164, label %171
164: ; preds = %159
%165 = load i64, i64* %11
%166 = load i64, i64* %10
%167 = load i32, i32* %13
%168 = add nsw i32 %167, 1
%169 = call i64 @rol16(i64 %166, i32 %168)
%170 = icmp eq i64 %165, %169
br label %171
171: ; preds = %164, %159
%172 = phi i1 [ false, %159 ], [ %170, %164 ]
%173 = zext i1 %172 to i32
store i32 %173, i32* %12
br label %174
174: ; preds = %171
%175 = load i32, i32* %13
%176 = add nsw i32 %175, 2
store i32 %176, i32* %13
br label %147
177: ; preds = %147
%178 = load i32, i32* %12
%179 = icmp ne i32 %178, 0
br i1 %179, label %180, label %182
180: ; preds = %177
%181 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %184
182: ; preds = %177
%183 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %184
184: ; preds = %182, %180
%185 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%186 = call i64 @UINT16_C(i32 21845)
store i64 %186, i64* %14
%187 = call i64 @UINT16_C(i32 43690)
store i64 %187, i64* %15
store i32 1, i32* %16
store i32 0, i32* %17
br label %188
188: ; preds = %215, %184
%189 = load i32, i32* %17
%190 = icmp slt i32 %189, 32
br i1 %190, label %191, label %218
191: ; preds = %188
%192 = load i32, i32* %16
%193 = icmp ne i32 %192, 0
br i1 %193, label %194, label %200
194: ; preds = %191
%195 = load i64, i64* %15
%196 = load i64, i64* %15
%197 = load i32, i32* %17
%198 = call i64 @ror16(i64 %196, i32 %197)
%199 = icmp eq i64 %195, %198
br label %200
200: ; preds = %194, %191
%201 = phi i1 [ false, %191 ], [ %199, %194 ]
%202 = zext i1 %201 to i32
store i32 %202, i32* %16
%203 = load i32, i32* %16
%204 = icmp ne i32 %203, 0
br i1 %204, label %205, label %212
205: ; preds = %200
%206 = load i64, i64* %14
%207 = load i64, i64* %15
%208 = load i32, i32* %17
%209 = add nsw i32 %208, 1
%210 = call i64 @ror16(i64 %207, i32 %209)
%211 = icmp eq i64 %206, %210
br label %212
212: ; preds = %205, %200
%213 = phi i1 [ false, %200 ], [ %211, %205 ]
%214 = zext i1 %213 to i32
store i32 %214, i32* %16
br label %215
215: ; preds = %212
%216 = load i32, i32* %17
%217 = add nsw i32 %216, 2
store i32 %217, i32* %17
br label %188
218: ; preds = %188
%219 = load i32, i32* %16
%220 = icmp ne i32 %219, 0
br i1 %220, label %221, label %223
221: ; preds = %218
%222 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %225
223: ; preds = %218
%224 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %225
225: ; preds = %223, %221
%226 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%227 = call i64 @UINT32_C(i32 1431655765)
store i64 %227, i64* %18
%228 = call i64 @UINT32_C(i32 -1431655766)
store i64 %228, i64* %19
store i32 1, i32* %20
store i32 0, i32* %21
br label %229
229: ; preds = %256, %225
%230 = load i32, i32* %21
%231 = icmp slt i32 %230, 64
br i1 %231, label %232, label %259
232: ; preds = %229
%233 = load i32, i32* %20
%234 = icmp ne i32 %233, 0
br i1 %234, label %235, label %241
235: ; preds = %232
%236 = load i64, i64* %18
%237 = load i64, i64* %18
%238 = load i32, i32* %21
%239 = call i64 @rol32(i64 %237, i32 %238)
%240 = icmp eq i64 %236, %239
br label %241
241: ; preds = %235, %232
%242 = phi i1 [ false, %232 ], [ %240, %235 ]
%243 = zext i1 %242 to i32
store i32 %243, i32* %20
%244 = load i32, i32* %20
%245 = icmp ne i32 %244, 0
br i1 %245, label %246, label %253
246: ; preds = %241
%247 = load i64, i64* %19
%248 = load i64, i64* %18
%249 = load i32, i32* %21
%250 = add nsw i32 %249, 1
%251 = call i64 @rol32(i64 %248, i32 %250)
%252 = icmp eq i64 %247, %251
br label %253
253: ; preds = %246, %241
%254 = phi i1 [ false, %241 ], [ %252, %246 ]
%255 = zext i1 %254 to i32
store i32 %255, i32* %20
br label %256
256: ; preds = %253
%257 = load i32, i32* %21
%258 = add nsw i32 %257, 2
store i32 %258, i32* %21
br label %229
259: ; preds = %229
%260 = load i32, i32* %20
%261 = icmp ne i32 %260, 0
br i1 %261, label %262, label %264
262: ; preds = %259
%263 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %266
264: ; preds = %259
%265 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %266
266: ; preds = %264, %262
%267 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%268 = call i64 @UINT32_C(i32 1431655765)
store i64 %268, i64* %22
%269 = call i64 @UINT32_C(i32 -1431655766)
store i64 %269, i64* %23
store i32 1, i32* %24
store i32 0, i32* %25
br label %270
270: ; preds = %297, %266
%271 = load i32, i32* %25
%272 = icmp slt i32 %271, 64
br i1 %272, label %273, label %300
273: ; preds = %270
%274 = load i32, i32* %24
%275 = icmp ne i32 %274, 0
br i1 %275, label %276, label %282
276: ; preds = %273
%277 = load i64, i64* %23
%278 = load i64, i64* %23
%279 = load i32, i32* %25
%280 = call i64 @ror32(i64 %278, i32 %279)
%281 = icmp eq i64 %277, %280
br label %282
282: ; preds = %276, %273
%283 = phi i1 [ false, %273 ], [ %281, %276 ]
%284 = zext i1 %283 to i32
store i32 %284, i32* %24
%285 = load i32, i32* %24
%286 = icmp ne i32 %285, 0
br i1 %286, label %287, label %294
287: ; preds = %282
%288 = load i64, i64* %22
%289 = load i64, i64* %23
%290 = load i32, i32* %25
%291 = add nsw i32 %290, 1
%292 = call i64 @ror32(i64 %289, i32 %291)
%293 = icmp eq i64 %288, %292
br label %294
294: ; preds = %287, %282
%295 = phi i1 [ false, %282 ], [ %293, %287 ]
%296 = zext i1 %295 to i32
store i32 %296, i32* %24
br label %297
297: ; preds = %294
%298 = load i32, i32* %25
%299 = add nsw i32 %298, 2
store i32 %299, i32* %25
br label %270
300: ; preds = %270
%301 = load i32, i32* %24
%302 = icmp ne i32 %301, 0
br i1 %302, label %303, label %305
303: ; preds = %300
%304 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %307
305: ; preds = %300
%306 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %307
307: ; preds = %305, %303
%308 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%309 = call i64 @UINT64_C(i32 1431655765)
store i64 %309, i64* %26
%310 = call i64 @UINT64_C(i32 -1431655766)
store i64 %310, i64* %27
store i32 1, i32* %28
store i32 0, i32* %29
br label %311
311: ; preds = %338, %307
%312 = load i32, i32* %29
%313 = icmp slt i32 %312, 128
br i1 %313, label %314, label %341
314: ; preds = %311
%315 = load i32, i32* %28
%316 = icmp ne i32 %315, 0
br i1 %316, label %317, label %323
317: ; preds = %314
%318 = load i64, i64* %26
%319 = load i64, i64* %26
%320 = load i32, i32* %29
%321 = call i64 @rol64(i64 %319, i32 %320)
%322 = icmp eq i64 %318, %321
br label %323
323: ; preds = %317, %314
%324 = phi i1 [ false, %314 ], [ %322, %317 ]
%325 = zext i1 %324 to i32
store i32 %325, i32* %28
%326 = load i32, i32* %28
%327 = icmp ne i32 %326, 0
br i1 %327, label %328, label %335
328: ; preds = %323
%329 = load i64, i64* %27
%330 = load i64, i64* %26
%331 = load i32, i32* %29
%332 = add nsw i32 %331, 1
%333 = call i64 @rol64(i64 %330, i32 %332)
%334 = icmp eq i64 %329, %333
br label %335
335: ; preds = %328, %323
%336 = phi i1 [ false, %323 ], [ %334, %328 ]
%337 = zext i1 %336 to i32
store i32 %337, i32* %28
br label %338
338: ; preds = %335
%339 = load i32, i32* %29
%340 = add nsw i32 %339, 2
store i32 %340, i32* %29
br label %311
341: ; preds = %311
%342 = load i32, i32* %28
%343 = icmp ne i32 %342, 0
br i1 %343, label %344, label %346
344: ; preds = %341
%345 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %348
346: ; preds = %341
%347 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %348
348: ; preds = %346, %344
%349 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%350 = call i64 @UINT64_C(i32 1431655765)
store i64 %350, i64* %30
%351 = call i64 @UINT64_C(i32 -1431655766)
store i64 %351, i64* %31
store i32 1, i32* %32
store i32 0, i32* %33
br label %352
352: ; preds = %379, %348
%353 = load i32, i32* %33
%354 = icmp slt i32 %353, 128
br i1 %354, label %355, label %382
355: ; preds = %352
%356 = load i32, i32* %32
%357 = icmp ne i32 %356, 0
br i1 %357, label %358, label %364
358: ; preds = %355
%359 = load i64, i64* %31
%360 = load i64, i64* %31
%361 = load i32, i32* %33
%362 = call i64 @ror64(i64 %360, i32 %361)
%363 = icmp eq i64 %359, %362
br label %364
364: ; preds = %358, %355
%365 = phi i1 [ false, %355 ], [ %363, %358 ]
%366 = zext i1 %365 to i32
store i32 %366, i32* %32
%367 = load i32, i32* %32
%368 = icmp ne i32 %367, 0
br i1 %368, label %369, label %376
369: ; preds = %364
%370 = load i64, i64* %30
%371 = load i64, i64* %31
%372 = load i32, i32* %33
%373 = add nsw i32 %372, 1
%374 = call i64 @ror64(i64 %371, i32 %373)
%375 = icmp eq i64 %370, %374
br label %376
376: ; preds = %369, %364
%377 = phi i1 [ false, %364 ], [ %375, %369 ]
%378 = zext i1 %377 to i32
store i32 %378, i32* %32
br label %379
379: ; preds = %376
%380 = load i32, i32* %33
%381 = add nsw i32 %380, 2
store i32 %381, i32* %33
br label %352
382: ; preds = %352
%383 = load i32, i32* %32
%384 = icmp ne i32 %383, 0
br i1 %384, label %385, label %387
385: ; preds = %382
%386 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %389
387: ; preds = %382
%388 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %389
389: ; preds = %387, %385
%390 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0))
%391 = call i64 @UINT32_C(i32 2018915346)
store i64 %391, i64* %34
%392 = bitcast [4 x i64]* %35 to i8*
store i32 1, i32* %37
%393 = load i64, i64* %34
%394 = getelementptr inbounds [4 x i64], [4 x i64]* %36, i64 0, i64 0
%395 = call i32 @u32_to_u8_le(i64 %393, i64* %394)
store i32 0, i32* %38
br label %396
396: ; preds = %415, %389
%397 = load i32, i32* %38
%398 = icmp slt i32 %397, 4
br i1 %398, label %399, label %418
399: ; preds = %396
%400 = load i32, i32* %37
%401 = icmp ne i32 %400, 0
br i1 %401, label %402, label %412
402: ; preds = %399
%403 = load i32, i32* %38
%404 = sext i32 %403 to i64
%405 = getelementptr inbounds [4 x i64], [4 x i64]* %35, i64 0, i64 %404
%406 = load i64, i64* %405
%407 = load i32, i32* %38
%408 = sext i32 %407 to i64
%409 = getelementptr inbounds [4 x i64], [4 x i64]* %36, i64 0, i64 %408
%410 = load i64, i64* %409
%411 = icmp eq i64 %406, %410
br label %412
412: ; preds = %402, %399
%413 = phi i1 [ false, %399 ], [ %411, %402 ]
%414 = zext i1 %413 to i32
store i32 %414, i32* %37
br label %415
415: ; preds = %412
%416 = load i32, i32* %38
%417 = add nsw i32 %416, 1
store i32 %417, i32* %38
br label %396
418: ; preds = %396
%419 = load i32, i32* %37
%420 = icmp ne i32 %419, 0
br i1 %420, label %421, label %423
421: ; preds = %418
%422 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %425
423: ; preds = %418
%424 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %425
425: ; preds = %423, %421
%426 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%427 = call i64 @UINT32_C(i32 305419896)
store i64 %427, i64* %39
%428 = bitcast [4 x i64]* %40 to i8*
store i32 1, i32* %42
%429 = load i64, i64* %39
%430 = getelementptr inbounds [4 x i64], [4 x i64]* %41, i64 0, i64 0
%431 = call i32 @u32_to_u8_be(i64 %429, i64* %430)
store i32 0, i32* %43
br label %432
432: ; preds = %451, %425
%433 = load i32, i32* %43
%434 = icmp slt i32 %433, 4
br i1 %434, label %435, label %454
435: ; preds = %432
%436 = load i32, i32* %42
%437 = icmp ne i32 %436, 0
br i1 %437, label %438, label %448
438: ; preds = %435
%439 = load i32, i32* %43
%440 = sext i32 %439 to i64
%441 = getelementptr inbounds [4 x i64], [4 x i64]* %40, i64 0, i64 %440
%442 = load i64, i64* %441
%443 = load i32, i32* %43
%444 = sext i32 %443 to i64
%445 = getelementptr inbounds [4 x i64], [4 x i64]* %41, i64 0, i64 %444
%446 = load i64, i64* %445
%447 = icmp eq i64 %442, %446
br label %448
448: ; preds = %438, %435
%449 = phi i1 [ false, %435 ], [ %447, %438 ]
%450 = zext i1 %449 to i32
store i32 %450, i32* %42
br label %451
451: ; preds = %448
%452 = load i32, i32* %43
%453 = add nsw i32 %452, 1
store i32 %453, i32* %43
br label %432
454: ; preds = %432
%455 = load i32, i32* %42
%456 = icmp ne i32 %455, 0
br i1 %456, label %457, label %459
457: ; preds = %454
%458 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %461
459: ; preds = %454
%460 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %461
461: ; preds = %459, %457
%462 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0))
%463 = call i64 @UINT64_C(i32 2018915346)
store i64 %463, i64* %44
%464 = bitcast [8 x i64]* %45 to i8*
store i32 1, i32* %47
%465 = load i64, i64* %44
%466 = getelementptr inbounds [8 x i64], [8 x i64]* %46, i64 0, i64 0
%467 = call i32 @u64_to_u8_le(i64 %465, i64* %466)
store i32 0, i32* %48
br label %468
468: ; preds = %487, %461
%469 = load i32, i32* %48
%470 = icmp slt i32 %469, 8
br i1 %470, label %471, label %490
471: ; preds = %468
%472 = load i32, i32* %47
%473 = icmp ne i32 %472, 0
br i1 %473, label %474, label %484
474: ; preds = %471
%475 = load i32, i32* %48
%476 = sext i32 %475 to i64
%477 = getelementptr inbounds [8 x i64], [8 x i64]* %45, i64 0, i64 %476
%478 = load i64, i64* %477
%479 = load i32, i32* %48
%480 = sext i32 %479 to i64
%481 = getelementptr inbounds [8 x i64], [8 x i64]* %46, i64 0, i64 %480
%482 = load i64, i64* %481
%483 = icmp eq i64 %478, %482
br label %484
484: ; preds = %474, %471
%485 = phi i1 [ false, %471 ], [ %483, %474 ]
%486 = zext i1 %485 to i32
store i32 %486, i32* %47
br label %487
487: ; preds = %484
%488 = load i32, i32* %48
%489 = add nsw i32 %488, 1
store i32 %489, i32* %48
br label %468
490: ; preds = %468
%491 = load i32, i32* %47
%492 = icmp ne i32 %491, 0
br i1 %492, label %493, label %495
493: ; preds = %490
%494 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %497
495: ; preds = %490
%496 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %497
497: ; preds = %495, %493
%498 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0))
%499 = call i64 @UINT64_C(i32 -1698898192)
store i64 %499, i64* %49
%500 = bitcast [8 x i64]* %50 to i8*
store i32 1, i32* %52
%501 = load i64, i64* %49
%502 = getelementptr inbounds [8 x i64], [8 x i64]* %51, i64 0, i64 0
%503 = call i32 @u64_to_u8_be(i64 %501, i64* %502)
store i32 0, i32* %53
br label %504
504: ; preds = %523, %497
%505 = load i32, i32* %53
%506 = icmp slt i32 %505, 8
br i1 %506, label %507, label %526
507: ; preds = %504
%508 = load i32, i32* %52
%509 = icmp ne i32 %508, 0
br i1 %509, label %510, label %520
510: ; preds = %507
%511 = load i32, i32* %53
%512 = sext i32 %511 to i64
%513 = getelementptr inbounds [8 x i64], [8 x i64]* %50, i64 0, i64 %512
%514 = load i64, i64* %513
%515 = load i32, i32* %53
%516 = sext i32 %515 to i64
%517 = getelementptr inbounds [8 x i64], [8 x i64]* %51, i64 0, i64 %516
%518 = load i64, i64* %517
%519 = icmp eq i64 %514, %518
br label %520
520: ; preds = %510, %507
%521 = phi i1 [ false, %507 ], [ %519, %510 ]
%522 = zext i1 %521 to i32
store i32 %522, i32* %52
br label %523
523: ; preds = %520
%524 = load i32, i32* %53
%525 = add nsw i32 %524, 1
store i32 %525, i32* %53
br label %504
526: ; preds = %504
%527 = load i32, i32* %52
%528 = icmp ne i32 %527, 0
br i1 %528, label %529, label %531
529: ; preds = %526
%530 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %533
531: ; preds = %526
%532 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %533
533: ; preds = %531, %529
%534 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0))
%535 = bitcast [4 x i64]* %54 to i8*
%536 = call i64 @UINT32_C(i32 2018915346)
store i64 %536, i64* %55
%537 = load i64, i64* %55
%538 = getelementptr inbounds [4 x i64], [4 x i64]* %54, i64 0, i64 0
%539 = call i64 @u8_to_u32_le(i64* %538)
%540 = icmp eq i64 %537, %539
br i1 %540, label %541, label %543
541: ; preds = %533
%542 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %545
543: ; preds = %533
%544 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %545
545: ; preds = %543, %541
%546 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0))
%547 = bitcast [4 x i64]* %56 to i8*
%548 = call i64 @UINT32_C(i32 305419896)
store i64 %548, i64* %57
%549 = load i64, i64* %57
%550 = getelementptr inbounds [4 x i64], [4 x i64]* %56, i64 0, i64 0
%551 = call i64 @u8_to_u32_be(i64* %550)
%552 = icmp eq i64 %549, %551
br i1 %552, label %553, label %555
553: ; preds = %545
%554 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %557
555: ; preds = %545
%556 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %557
557: ; preds = %555, %553
%558 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0))
%559 = bitcast [8 x i64]* %58 to i8*
%560 = call i64 @UINT64_C(i32 2018915346)
store i64 %560, i64* %59
%561 = load i64, i64* %59
%562 = getelementptr inbounds [8 x i64], [8 x i64]* %58, i64 0, i64 0
%563 = call i64 @u8_to_u64_le(i64* %562)
%564 = icmp eq i64 %561, %563
br i1 %564, label %565, label %567
565: ; preds = %557
%566 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %569
567: ; preds = %557
%568 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %569
569: ; preds = %567, %565
%570 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.22, i64 0, i64 0))
%571 = bitcast [8 x i64]* %60 to i8*
%572 = call i64 @UINT64_C(i32 -1698898192)
store i64 %572, i64* %61
%573 = load i64, i64* %61
%574 = getelementptr inbounds [8 x i64], [8 x i64]* %60, i64 0, i64 0
%575 = call i64 @u8_to_u64_be(i64* %574)
%576 = icmp eq i64 %573, %575
br i1 %576, label %577, label %579
577: ; preds = %569
%578 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %581
579: ; preds = %569
%580 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %581
581: ; preds = %579, %577
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"rol8: \00"
@.str.3 = [8 x i8] c"ror8: \00"
@.str.4 = [8 x i8] c"rol16: \00"
@.str.5 = [8 x i8] c"ror16: \00"
@.str.6 = [8 x i8] c"rol32: \00"
@.str.7 = [8 x i8] c"ror32: \00"
@.str.8 = [8 x i8] c"rol64: \00"
@.str.9 = [8 x i8] c"ror64: \00"
@.str.10 = [15 x i8] c"u32_to_u8_le: \00"
@.str.11 = [15 x i8] c"u32_to_u8_be: \00"
@.str.13 = [15 x i8] c"u64_to_u8_le: \00"
@.str.15 = [15 x i8] c"u64_to_u8_be: \00"
@.str.17 = [15 x i8] c"u8_to_u32_le: \00"
@.str.18 = [15 x i8] c"u8_to_u32_be: \00"
@__const.main.value.19 = [4 x i64] [i64 18, i64 52, i64 86, i64 120]
@.str.20 = [15 x i8] c"u8_to_u64_le: \00"
@.str.22 = [15 x i8] c"u8_to_u64_be: \00"
@__const.main.value.23 = [8 x i64] [i64 18, i64 52, i64 86, i64 120, i64 154, i64 188, i64 222, i64 240]
@str.38 = [12 x i8] c"test failed\00"
@str.54 = [12 x i8] c"test passed\00"
define i32 @main() {
%1 = alloca [4 x i64]
%2 = alloca [4 x i64]
%3 = alloca [8 x i64]
%4 = alloca [8 x i64]
%5 = alloca [4 x i64]
%6 = alloca [4 x i64]
%7 = alloca [8 x i64]
%8 = alloca [8 x i64]
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%10 = tail call i64 @UINT8_C(i32 85)
%11 = tail call i64 @UINT8_C(i32 170)
%12 = tail call i64 @rol8(i64 %10, i32 0)
%13 = icmp eq i64 %10, %12
br i1 %13, label %14, label %59
14: ; preds = %0
%15 = tail call i64 @rol8(i64 %10, i32 1)
%16 = icmp eq i64 %11, %15
br i1 %16, label %17, label %59
17: ; preds = %14
%18 = tail call i64 @rol8(i64 %10, i32 2)
%19 = icmp eq i64 %10, %18
br i1 %19, label %20, label %59
20: ; preds = %17
%21 = tail call i64 @rol8(i64 %10, i32 3)
%22 = icmp eq i64 %11, %21
br i1 %22, label %23, label %59
23: ; preds = %20
%24 = tail call i64 @rol8(i64 %10, i32 4)
%25 = icmp eq i64 %10, %24
br i1 %25, label %26, label %59
26: ; preds = %23
%27 = tail call i64 @rol8(i64 %10, i32 5)
%28 = icmp eq i64 %11, %27
br i1 %28, label %29, label %59
29: ; preds = %26
%30 = tail call i64 @rol8(i64 %10, i32 6)
%31 = icmp eq i64 %10, %30
br i1 %31, label %32, label %59
32: ; preds = %29
%33 = tail call i64 @rol8(i64 %10, i32 7)
%34 = icmp eq i64 %11, %33
br i1 %34, label %35, label %59
35: ; preds = %32
%36 = tail call i64 @rol8(i64 %10, i32 8)
%37 = icmp eq i64 %10, %36
br i1 %37, label %38, label %59
38: ; preds = %35
%39 = tail call i64 @rol8(i64 %10, i32 9)
%40 = icmp eq i64 %11, %39
br i1 %40, label %41, label %59
41: ; preds = %38
%42 = tail call i64 @rol8(i64 %10, i32 10)
%43 = icmp eq i64 %10, %42
br i1 %43, label %44, label %59
44: ; preds = %41
%45 = tail call i64 @rol8(i64 %10, i32 11)
%46 = icmp eq i64 %11, %45
br i1 %46, label %47, label %59
47: ; preds = %44
%48 = tail call i64 @rol8(i64 %10, i32 12)
%49 = icmp eq i64 %10, %48
br i1 %49, label %50, label %59
50: ; preds = %47
%51 = tail call i64 @rol8(i64 %10, i32 13)
%52 = icmp eq i64 %11, %51
br i1 %52, label %53, label %59
53: ; preds = %50
%54 = tail call i64 @rol8(i64 %10, i32 14)
%55 = icmp eq i64 %10, %54
br i1 %55, label %56, label %59
56: ; preds = %53
%57 = tail call i64 @rol8(i64 %10, i32 15)
%58 = icmp eq i64 %11, %57
br i1 %58, label %60, label %59
59: ; preds = %0, %14, %17, %20, %23, %26, %29, %32, %35, %38, %41, %44, %47, %50, %53, %56
br label %60
60: ; preds = %56, %59
%61 = phi i8* [ getelementptr inbounds ([12 x i8], [12 x i8]* @str.38, i64 0, i64 0), %59 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @str.54, i64 0, i64 0), %56 ]
%62 = tail call i32 @puts(i8* dereferenceable(1) %61)
%63 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%64 = tail call i64 @UINT8_C(i32 85)
%65 = tail call i64 @UINT8_C(i32 170)
%66 = tail call i64 @ror8(i64 %65, i32 0)
%67 = icmp eq i64 %65, %66
br i1 %67, label %68, label %113
68: ; preds = %60
%69 = tail call i64 @ror8(i64 %65, i32 1)
%70 = icmp eq i64 %64, %69
br i1 %70, label %71, label %113
71: ; preds = %68
%72 = tail call i64 @ror8(i64 %65, i32 2)
%73 = icmp eq i64 %65, %72
br i1 %73, label %74, label %113
74: ; preds = %71
%75 = tail call i64 @ror8(i64 %65, i32 3)
%76 = icmp eq i64 %64, %75
br i1 %76, label %77, label %113
77: ; preds = %74
%78 = tail call i64 @ror8(i64 %65, i32 4)
%79 = icmp eq i64 %65, %78
br i1 %79, label %80, label %113
80: ; preds = %77
%81 = tail call i64 @ror8(i64 %65, i32 5)
%82 = icmp eq i64 %64, %81
br i1 %82, label %83, label %113
83: ; preds = %80
%84 = tail call i64 @ror8(i64 %65, i32 6)
%85 = icmp eq i64 %65, %84
br i1 %85, label %86, label %113
86: ; preds = %83
%87 = tail call i64 @ror8(i64 %65, i32 7)
%88 = icmp eq i64 %64, %87
br i1 %88, label %89, label %113
89: ; preds = %86
%90 = tail call i64 @ror8(i64 %65, i32 8)
%91 = icmp eq i64 %65, %90
br i1 %91, label %92, label %113
92: ; preds = %89
%93 = tail call i64 @ror8(i64 %65, i32 9)
%94 = icmp eq i64 %64, %93
br i1 %94, label %95, label %113
95: ; preds = %92
%96 = tail call i64 @ror8(i64 %65, i32 10)
%97 = icmp eq i64 %65, %96
br i1 %97, label %98, label %113
98: ; preds = %95
%99 = tail call i64 @ror8(i64 %65, i32 11)
%100 = icmp eq i64 %64, %99
br i1 %100, label %101, label %113
101: ; preds = %98
%102 = tail call i64 @ror8(i64 %65, i32 12)
%103 = icmp eq i64 %65, %102
br i1 %103, label %104, label %113
104: ; preds = %101
%105 = tail call i64 @ror8(i64 %65, i32 13)
%106 = icmp eq i64 %64, %105
br i1 %106, label %107, label %113
107: ; preds = %104
%108 = tail call i64 @ror8(i64 %65, i32 14)
%109 = icmp eq i64 %65, %108
br i1 %109, label %110, label %113
110: ; preds = %107
%111 = tail call i64 @ror8(i64 %65, i32 15)
%112 = icmp eq i64 %64, %111
br i1 %112, label %114, label %113
113: ; preds = %60, %68, %71, %74, %77, %80, %83, %86, %89, %92, %95, %98, %101, %104, %107, %110
br label %114
114: ; preds = %110, %113
%115 = phi i8* [ getelementptr inbounds ([12 x i8], [12 x i8]* @str.38, i64 0, i64 0), %113 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @str.54, i64 0, i64 0), %110 ]
%116 = tail call i32 @puts(i8* dereferenceable(1) %115)
%117 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%118 = tail call i64 @UINT16_C(i32 21845)
%119 = tail call i64 @UINT16_C(i32 43690)
br label %126
120: ; preds = %137
%121 = select i1 %138, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.54, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.38, i64 0, i64 0)
%122 = tail call i32 @puts(i8* dereferenceable(1) %121)
%123 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%124 = tail call i64 @UINT16_C(i32 21845)
%125 = tail call i64 @UINT16_C(i32 43690)
br label %148
126: ; preds = %114, %137
%127 = phi i32 [ 1, %114 ], [ %139, %137 ]
%128 = phi i32 [ 0, %114 ], [ %140, %137 ]
%129 = icmp eq i32 %127, 0
br i1 %129, label %137, label %130
130: ; preds = %126
%131 = tail call i64 @rol16(i64 %118, i32 %128)
%132 = icmp eq i64 %118, %131
br i1 %132, label %133, label %137
133: ; preds = %130
%134 = or i32 %128, 1
%135 = tail call i64 @rol16(i64 %118, i32 %134)
%136 = icmp eq i64 %119, %135
br label %137
137: ; preds = %126, %133, %130
%138 = phi i1 [ false, %130 ], [ %136, %133 ], [ false, %126 ]
%139 = zext i1 %138 to i32
%140 = add nuw nsw i32 %128, 2
%141 = icmp ult i32 %128, 30
br i1 %141, label %126, label %120
142: ; preds = %159
%143 = select i1 %160, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.54, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.38, i64 0, i64 0)
%144 = tail call i32 @puts(i8* dereferenceable(1) %143)
%145 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%146 = tail call i64 @UINT32_C(i32 1431655765)
%147 = tail call i64 @UINT32_C(i32 -1431655766)
br label %170
148: ; preds = %120, %159
%149 = phi i32 [ 1, %120 ], [ %161, %159 ]
%150 = phi i32 [ 0, %120 ], [ %162, %159 ]
%151 = icmp eq i32 %149, 0
br i1 %151, label %159, label %152
152: ; preds = %148
%153 = tail call i64 @ror16(i64 %125, i32 %150)
%154 = icmp eq i64 %125, %153
br i1 %154, label %155, label %159
155: ; preds = %152
%156 = or i32 %150, 1
%157 = tail call i64 @ror16(i64 %125, i32 %156)
%158 = icmp eq i64 %124, %157
br label %159
159: ; preds = %148, %155, %152
%160 = phi i1 [ false, %152 ], [ %158, %155 ], [ false, %148 ]
%161 = zext i1 %160 to i32
%162 = add nuw nsw i32 %150, 2
%163 = icmp ult i32 %150, 30
br i1 %163, label %148, label %142
164: ; preds = %181
%165 = select i1 %182, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.54, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.38, i64 0, i64 0)
%166 = tail call i32 @puts(i8* dereferenceable(1) %165)
%167 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%168 = tail call i64 @UINT32_C(i32 1431655765)
%169 = tail call i64 @UINT32_C(i32 -1431655766)
br label %192
170: ; preds = %142, %181
%171 = phi i32 [ 1, %142 ], [ %183, %181 ]
%172 = phi i32 [ 0, %142 ], [ %184, %181 ]
%173 = icmp eq i32 %171, 0
br i1 %173, label %181, label %174
174: ; preds = %170
%175 = tail call i64 @rol32(i64 %146, i32 %172)
%176 = icmp eq i64 %146, %175
br i1 %176, label %177, label %181
177: ; preds = %174
%178 = or i32 %172, 1
%179 = tail call i64 @rol32(i64 %146, i32 %178)
%180 = icmp eq i64 %147, %179
br label %181
181: ; preds = %170, %177, %174
%182 = phi i1 [ false, %174 ], [ %180, %177 ], [ false, %170 ]
%183 = zext i1 %182 to i32
%184 = add nuw nsw i32 %172, 2
%185 = icmp ult i32 %172, 62
br i1 %185, label %170, label %164
186: ; preds = %203
%187 = select i1 %204, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.54, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.38, i64 0, i64 0)
%188 = tail call i32 @puts(i8* dereferenceable(1) %187)
%189 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%190 = tail call i64 @UINT64_C(i32 1431655765)
%191 = tail call i64 @UINT64_C(i32 -1431655766)
br label %214
192: ; preds = %164, %203
%193 = phi i32 [ 1, %164 ], [ %205, %203 ]
%194 = phi i32 [ 0, %164 ], [ %206, %203 ]
%195 = icmp eq i32 %193, 0
br i1 %195, label %203, label %196
196: ; preds = %192
%197 = tail call i64 @ror32(i64 %169, i32 %194)
%198 = icmp eq i64 %169, %197
br i1 %198, label %199, label %203
199: ; preds = %196
%200 = or i32 %194, 1
%201 = tail call i64 @ror32(i64 %169, i32 %200)
%202 = icmp eq i64 %168, %201
br label %203
203: ; preds = %192, %199, %196
%204 = phi i1 [ false, %196 ], [ %202, %199 ], [ false, %192 ]
%205 = zext i1 %204 to i32
%206 = add nuw nsw i32 %194, 2
%207 = icmp ult i32 %194, 62
br i1 %207, label %192, label %186
208: ; preds = %225
%209 = select i1 %226, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.54, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.38, i64 0, i64 0)
%210 = tail call i32 @puts(i8* dereferenceable(1) %209)
%211 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%212 = tail call i64 @UINT64_C(i32 1431655765)
%213 = tail call i64 @UINT64_C(i32 -1431655766)
br label %381
214: ; preds = %186, %225
%215 = phi i32 [ 0, %186 ], [ %228, %225 ]
%216 = phi i32 [ 1, %186 ], [ %227, %225 ]
%217 = icmp eq i32 %216, 0
br i1 %217, label %225, label %218
218: ; preds = %214
%219 = tail call i64 @rol64(i64 %190, i32 %215)
%220 = icmp eq i64 %190, %219
br i1 %220, label %221, label %225
221: ; preds = %218
%222 = or i32 %215, 1
%223 = tail call i64 @rol64(i64 %190, i32 %222)
%224 = icmp eq i64 %191, %223
br label %225
225: ; preds = %214, %221, %218
%226 = phi i1 [ false, %218 ], [ %224, %221 ], [ false, %214 ]
%227 = zext i1 %226 to i32
%228 = add nuw nsw i32 %215, 2
%229 = icmp ult i32 %215, 126
br i1 %229, label %214, label %208
230: ; preds = %392
%231 = select i1 %393, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.54, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.38, i64 0, i64 0)
%232 = tail call i32 @puts(i8* dereferenceable(1) %231)
%233 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0))
%234 = tail call i64 @UINT32_C(i32 2018915346)
%235 = bitcast [4 x i64]* %1 to i8*
%236 = getelementptr inbounds [4 x i64], [4 x i64]* %1, i64 0, i64 0
%237 = call i32 @u32_to_u8_le(i64 %234, i64* %236)
%238 = load i64, i64* %236
%239 = icmp eq i64 %238, 18
%240 = getelementptr inbounds [4 x i64], [4 x i64]* %1, i64 0, i64 1
%241 = load i64, i64* %240
%242 = icmp eq i64 %241, 52
%243 = select i1 %239, i1 %242, i1 false
%244 = getelementptr inbounds [4 x i64], [4 x i64]* %1, i64 0, i64 2
%245 = load i64, i64* %244
%246 = icmp eq i64 %245, 86
%247 = select i1 %243, i1 %246, i1 false
%248 = getelementptr inbounds [4 x i64], [4 x i64]* %1, i64 0, i64 3
%249 = load i64, i64* %248
%250 = icmp eq i64 %249, 120
%251 = select i1 %247, i1 %250, i1 false
%252 = select i1 %251, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.54, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.38, i64 0, i64 0)
%253 = call i32 @puts(i8* dereferenceable(1) %252)
%254 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%255 = call i64 @UINT32_C(i32 305419896)
%256 = bitcast [4 x i64]* %2 to i8*
%257 = getelementptr inbounds [4 x i64], [4 x i64]* %2, i64 0, i64 0
%258 = call i32 @u32_to_u8_be(i64 %255, i64* %257)
%259 = load i64, i64* %257
%260 = icmp eq i64 %259, 18
%261 = getelementptr inbounds [4 x i64], [4 x i64]* %2, i64 0, i64 1
%262 = load i64, i64* %261
%263 = icmp eq i64 %262, 52
%264 = select i1 %260, i1 %263, i1 false
%265 = getelementptr inbounds [4 x i64], [4 x i64]* %2, i64 0, i64 2
%266 = load i64, i64* %265
%267 = icmp eq i64 %266, 86
%268 = select i1 %264, i1 %267, i1 false
%269 = getelementptr inbounds [4 x i64], [4 x i64]* %2, i64 0, i64 3
%270 = load i64, i64* %269
%271 = icmp eq i64 %270, 120
%272 = select i1 %268, i1 %271, i1 false
%273 = select i1 %272, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.54, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.38, i64 0, i64 0)
%274 = call i32 @puts(i8* dereferenceable(1) %273)
%275 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0))
%276 = call i64 @UINT64_C(i32 2018915346)
%277 = bitcast [8 x i64]* %3 to i8*
%278 = getelementptr inbounds [8 x i64], [8 x i64]* %3, i64 0, i64 0
%279 = call i32 @u64_to_u8_le(i64 %276, i64* %278)
%280 = load i64, i64* %278
%281 = icmp eq i64 %280, 18
%282 = getelementptr inbounds [8 x i64], [8 x i64]* %3, i64 0, i64 1
%283 = load i64, i64* %282
%284 = icmp eq i64 %283, 52
%285 = select i1 %281, i1 %284, i1 false
%286 = getelementptr inbounds [8 x i64], [8 x i64]* %3, i64 0, i64 2
%287 = load i64, i64* %286
%288 = icmp eq i64 %287, 86
%289 = select i1 %285, i1 %288, i1 false
%290 = getelementptr inbounds [8 x i64], [8 x i64]* %3, i64 0, i64 3
%291 = load i64, i64* %290
%292 = icmp eq i64 %291, 120
%293 = select i1 %289, i1 %292, i1 false
%294 = getelementptr inbounds [8 x i64], [8 x i64]* %3, i64 0, i64 4
%295 = load i64, i64* %294
%296 = icmp eq i64 %295, 154
%297 = select i1 %293, i1 %296, i1 false
%298 = getelementptr inbounds [8 x i64], [8 x i64]* %3, i64 0, i64 5
%299 = load i64, i64* %298
%300 = icmp eq i64 %299, 188
%301 = select i1 %297, i1 %300, i1 false
%302 = getelementptr inbounds [8 x i64], [8 x i64]* %3, i64 0, i64 6
%303 = load i64, i64* %302
%304 = icmp eq i64 %303, 222
%305 = select i1 %301, i1 %304, i1 false
%306 = getelementptr inbounds [8 x i64], [8 x i64]* %3, i64 0, i64 7
%307 = load i64, i64* %306
%308 = icmp eq i64 %307, 240
%309 = select i1 %305, i1 %308, i1 false
%310 = select i1 %309, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.54, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.38, i64 0, i64 0)
%311 = call i32 @puts(i8* dereferenceable(1) %310)
%312 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0))
%313 = call i64 @UINT64_C(i32 -1698898192)
%314 = bitcast [8 x i64]* %4 to i8*
%315 = getelementptr inbounds [8 x i64], [8 x i64]* %4, i64 0, i64 0
%316 = call i32 @u64_to_u8_be(i64 %313, i64* %315)
%317 = load i64, i64* %315
%318 = icmp eq i64 %317, 18
%319 = getelementptr inbounds [8 x i64], [8 x i64]* %4, i64 0, i64 1
%320 = load i64, i64* %319
%321 = icmp eq i64 %320, 52
%322 = select i1 %318, i1 %321, i1 false
%323 = getelementptr inbounds [8 x i64], [8 x i64]* %4, i64 0, i64 2
%324 = load i64, i64* %323
%325 = icmp eq i64 %324, 86
%326 = select i1 %322, i1 %325, i1 false
%327 = getelementptr inbounds [8 x i64], [8 x i64]* %4, i64 0, i64 3
%328 = load i64, i64* %327
%329 = icmp eq i64 %328, 120
%330 = select i1 %326, i1 %329, i1 false
%331 = getelementptr inbounds [8 x i64], [8 x i64]* %4, i64 0, i64 4
%332 = load i64, i64* %331
%333 = icmp eq i64 %332, 154
%334 = select i1 %330, i1 %333, i1 false
%335 = getelementptr inbounds [8 x i64], [8 x i64]* %4, i64 0, i64 5
%336 = load i64, i64* %335
%337 = icmp eq i64 %336, 188
%338 = select i1 %334, i1 %337, i1 false
%339 = getelementptr inbounds [8 x i64], [8 x i64]* %4, i64 0, i64 6
%340 = load i64, i64* %339
%341 = icmp eq i64 %340, 222
%342 = select i1 %338, i1 %341, i1 false
%343 = getelementptr inbounds [8 x i64], [8 x i64]* %4, i64 0, i64 7
%344 = load i64, i64* %343
%345 = icmp eq i64 %344, 240
%346 = select i1 %342, i1 %345, i1 false
%347 = select i1 %346, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.54, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.38, i64 0, i64 0)
%348 = call i32 @puts(i8* dereferenceable(1) %347)
%349 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0))
%350 = bitcast [4 x i64]* %5 to i8*
%351 = call i64 @UINT32_C(i32 2018915346)
%352 = getelementptr inbounds [4 x i64], [4 x i64]* %5, i64 0, i64 0
%353 = call i64 @u8_to_u32_le(i64* %352)
%354 = icmp eq i64 %351, %353
%355 = select i1 %354, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.54, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.38, i64 0, i64 0)
%356 = call i32 @puts(i8* dereferenceable(1) %355)
%357 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0))
%358 = bitcast [4 x i64]* %6 to i8*
%359 = call i64 @UINT32_C(i32 305419896)
%360 = getelementptr inbounds [4 x i64], [4 x i64]* %6, i64 0, i64 0
%361 = call i64 @u8_to_u32_be(i64* %360)
%362 = icmp eq i64 %359, %361
%363 = select i1 %362, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.54, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.38, i64 0, i64 0)
%364 = call i32 @puts(i8* dereferenceable(1) %363)
%365 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0))
%366 = bitcast [8 x i64]* %7 to i8*
%367 = call i64 @UINT64_C(i32 2018915346)
%368 = getelementptr inbounds [8 x i64], [8 x i64]* %7, i64 0, i64 0
%369 = call i64 @u8_to_u64_le(i64* %368)
%370 = icmp eq i64 %367, %369
%371 = select i1 %370, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.54, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.38, i64 0, i64 0)
%372 = call i32 @puts(i8* dereferenceable(1) %371)
%373 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.22, i64 0, i64 0))
%374 = bitcast [8 x i64]* %8 to i8*
%375 = call i64 @UINT64_C(i32 -1698898192)
%376 = getelementptr inbounds [8 x i64], [8 x i64]* %8, i64 0, i64 0
%377 = call i64 @u8_to_u64_be(i64* %376)
%378 = icmp eq i64 %375, %377
%379 = select i1 %378, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.54, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.38, i64 0, i64 0)
%380 = call i32 @puts(i8* dereferenceable(1) %379)
ret i32 0
381: ; preds = %208, %392
%382 = phi i32 [ 0, %208 ], [ %395, %392 ]
%383 = phi i32 [ 1, %208 ], [ %394, %392 ]
%384 = icmp eq i32 %383, 0
br i1 %384, label %392, label %385
385: ; preds = %381
%386 = tail call i64 @ror64(i64 %213, i32 %382)
%387 = icmp eq i64 %213, %386
br i1 %387, label %388, label %392
388: ; preds = %385
%389 = or i32 %382, 1
%390 = tail call i64 @ror64(i64 %213, i32 %389)
%391 = icmp eq i64 %212, %390
br label %392
392: ; preds = %381, %388, %385
%393 = phi i1 [ false, %385 ], [ %391, %388 ], [ false, %381 ]
%394 = zext i1 %393 to i32
%395 = add nuw nsw i32 %382, 2
%396 = icmp ult i32 %382, 126
br i1 %396, label %381, label %230
}