#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 uint8_t;
typedef int uint32_t;

/* Variables and functions */
int hashlittle(int *, int, int);
int /*<<< orphan*/ printf(char *, ...);
void driver2() {
  uint8_t qa[70 + 1], qb[70 + 2], *a = &qa[0], *b = &qb[1];
  uint32_t c[1], d[1], i = 0, j = 0, k, l, m = 0, z;
  uint32_t e[1], f[1], g[1], h[1];
  uint32_t x[1], y[1];
  uint32_t hlen;
  printf("No more than %d trials should ever be needed \n", 60 / 2);
  for (hlen = 0; hlen < 70; ++hlen) {
    z = 0;
    for (i = 0; i < hlen; ++i) {
      for (j = 0; j < 8; ++j) {
        for (m = 1; m < 8; ++m) {
          for (l = 0; l < 1; ++l)
            e[l] = f[l] = g[l] = h[l] = x[l] = y[l] = ~((uint32_t)0);
          for (k = 0; k < 60; k += 2) {
            uint32_t finished = 1;
            for (l = 0; l < hlen + 1; ++l) {
              a[l] = b[l] = (uint8_t)0;
            }
            a[i] ^= (k << j);
            a[i] ^= (k >> (8 - j));
            c[0] = hashlittle(a, hlen, m);
            b[i] ^= ((k + 1) << j);
            b[i] ^= ((k + 1) >> (8 - j));
            d[0] = hashlittle(b, hlen, m);
            for (l = 0; l < 1; ++l) {
              e[l] &= (c[l] ^ d[l]);
              f[l] &= ~(c[l] ^ d[l]);
              g[l] &= c[l];
              h[l] &= ~c[l];
              x[l] &= d[l];
              y[l] &= ~d[l];
              if (e[l] | f[l] | g[l] | h[l] | x[l] | y[l])
                finished = 0;
            }
            if (finished)
              break;
          }
          if (k > z)
            z = k;
          if (k == 60) {
            printf("Some bit didn't change: ");
            printf("%.8x %.8x %.8x %.8x %.8x %.8x  ", e[0], f[0], g[0], h[0],
                   x[0], y[0]);
            printf("i %d j %d m %d len %d\n", i, j, m, hlen);
          }
          if (z == 60)
            goto done;
        }
      }
    }
  done:
    if (z < 60) {
      printf("Mix success  %2d bytes  %2d initvals  ", i, m);
      printf("required  %d  trials\n", z / 2);
    }
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<driver2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2a0,%rsp
lea    -0x120(%rbp),%rax
mov    %rax,-0x248(%rbp)
lea    -0x240(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x250(%rbp)
movl   $0x0,-0x25c(%rbp)
movl   $0x0,-0x260(%rbp)
movl   $0x0,-0x26c(%rbp)
lea    0xe90(%rip),%rdi
mov    $0x1e,%esi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x28c(%rbp)
cmpl   $0x46,-0x28c(%rbp)
jge    16e2 <driver2+0x5c2>
movl   $0x0,-0x270(%rbp)
movl   $0x0,-0x25c(%rbp)
mov    -0x25c(%rbp),%eax
cmp    -0x28c(%rbp),%eax
jge    167f <driver2+0x55f>
movl   $0x0,-0x260(%rbp)
cmpl   $0x8,-0x260(%rbp)
jge    1666 <driver2+0x546>
movl   $0x1,-0x26c(%rbp)
cmpl   $0x8,-0x26c(%rbp)
jge    164d <driver2+0x52d>
movl   $0x0,-0x268(%rbp)
cmpl   $0x1,-0x268(%rbp)
jge    127e <driver2+0x15e>
movslq -0x268(%rbp),%rax
movl   $0xffffffff,-0x288(%rbp,%rax,4)
ff ff ff ff
movslq -0x268(%rbp),%rax
movl   $0xffffffff,-0x284(%rbp,%rax,4)
ff ff ff ff
movslq -0x268(%rbp),%rax
movl   $0xffffffff,-0x280(%rbp,%rax,4)
ff ff ff ff
movslq -0x268(%rbp),%rax
movl   $0xffffffff,-0x27c(%rbp,%rax,4)
ff ff ff ff
movslq -0x268(%rbp),%rax
movl   $0xffffffff,-0x278(%rbp,%rax,4)
ff ff ff ff
movslq -0x268(%rbp),%rax
movl   $0xffffffff,-0x274(%rbp,%rax,4)
ff ff ff ff
mov    -0x268(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x268(%rbp)
jmp    11f1 <driver2+0xd1>
movl   $0x0,-0x264(%rbp)
cmpl   $0x3c,-0x264(%rbp)
jge    158b <driver2+0x46b>
movl   $0x1,-0x290(%rbp)
movl   $0x0,-0x268(%rbp)
mov    -0x268(%rbp),%eax
mov    -0x28c(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    12fe <driver2+0x1de>
mov    -0x250(%rbp),%rax
movslq -0x268(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x248(%rbp),%rax
movslq -0x268(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x268(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x268(%rbp)
jmp    12a9 <driver2+0x189>
mov    -0x264(%rbp),%edx
mov    -0x260(%rbp),%ecx
shl    %cl,%edx
mov    -0x248(%rbp),%rax
movslq -0x25c(%rbp),%rcx
xor    (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x264(%rbp),%edx
mov    $0x8,%ecx
sub    -0x260(%rbp),%ecx
sar    %cl,%edx
mov    -0x248(%rbp),%rax
movslq -0x25c(%rbp),%rcx
xor    (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x248(%rbp),%rdi
mov    -0x28c(%rbp),%esi
mov    -0x26c(%rbp),%edx
call   1030 <hashlittle@plt>
mov    %eax,-0x254(%rbp)
mov    -0x264(%rbp),%edx
add    $0x1,%edx
mov    -0x260(%rbp),%ecx
shl    %cl,%edx
mov    -0x250(%rbp),%rax
movslq -0x25c(%rbp),%rcx
xor    (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x264(%rbp),%edx
add    $0x1,%edx
mov    $0x8,%ecx
sub    -0x260(%rbp),%ecx
sar    %cl,%edx
mov    -0x250(%rbp),%rax
movslq -0x25c(%rbp),%rcx
xor    (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x250(%rbp),%rdi
mov    -0x28c(%rbp),%esi
mov    -0x26c(%rbp),%edx
call   1030 <hashlittle@plt>
mov    %eax,-0x258(%rbp)
movl   $0x0,-0x268(%rbp)
cmpl   $0x1,-0x268(%rbp)
jge    1560 <driver2+0x440>
movslq -0x268(%rbp),%rax
mov    -0x254(%rbp,%rax,4),%ecx
movslq -0x268(%rbp),%rax
xor    -0x258(%rbp,%rax,4),%ecx
movslq -0x268(%rbp),%rax
and    -0x274(%rbp,%rax,4),%ecx
mov    %ecx,-0x274(%rbp,%rax,4)
movslq -0x268(%rbp),%rax
mov    -0x254(%rbp,%rax,4),%ecx
movslq -0x268(%rbp),%rax
xor    -0x258(%rbp,%rax,4),%ecx
xor    $0xffffffff,%ecx
movslq -0x268(%rbp),%rax
and    -0x278(%rbp,%rax,4),%ecx
mov    %ecx,-0x278(%rbp,%rax,4)
movslq -0x268(%rbp),%rax
mov    -0x254(%rbp,%rax,4),%ecx
movslq -0x268(%rbp),%rax
and    -0x27c(%rbp,%rax,4),%ecx
mov    %ecx,-0x27c(%rbp,%rax,4)
movslq -0x268(%rbp),%rax
mov    -0x254(%rbp,%rax,4),%ecx
xor    $0xffffffff,%ecx
movslq -0x268(%rbp),%rax
and    -0x280(%rbp,%rax,4),%ecx
mov    %ecx,-0x280(%rbp,%rax,4)
movslq -0x268(%rbp),%rax
mov    -0x258(%rbp,%rax,4),%ecx
movslq -0x268(%rbp),%rax
and    -0x284(%rbp,%rax,4),%ecx
mov    %ecx,-0x284(%rbp,%rax,4)
movslq -0x268(%rbp),%rax
mov    -0x258(%rbp,%rax,4),%ecx
xor    $0xffffffff,%ecx
movslq -0x268(%rbp),%rax
and    -0x288(%rbp,%rax,4),%ecx
mov    %ecx,-0x288(%rbp,%rax,4)
movslq -0x268(%rbp),%rax
mov    -0x274(%rbp,%rax,4),%eax
movslq -0x268(%rbp),%rcx
or     -0x278(%rbp,%rcx,4),%eax
movslq -0x268(%rbp),%rcx
or     -0x27c(%rbp,%rcx,4),%eax
movslq -0x268(%rbp),%rcx
or     -0x280(%rbp,%rcx,4),%eax
movslq -0x268(%rbp),%rcx
or     -0x284(%rbp,%rcx,4),%eax
movslq -0x268(%rbp),%rcx
or     -0x288(%rbp,%rcx,4),%eax
cmp    $0x0,%eax
je     1547 <driver2+0x427>
movl   $0x0,-0x290(%rbp)
jmp    154c <driver2+0x42c>
mov    -0x268(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x268(%rbp)
jmp    13dc <driver2+0x2bc>
cmpl   $0x0,-0x290(%rbp)
je     1572 <driver2+0x452>
jmp    158b <driver2+0x46b>
jmp    1577 <driver2+0x457>
mov    -0x264(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x264(%rbp)
jmp    1288 <driver2+0x168>
mov    -0x264(%rbp),%eax
cmp    -0x270(%rbp),%eax
jle    15a9 <driver2+0x489>
mov    -0x264(%rbp),%eax
mov    %eax,-0x270(%rbp)
cmpl   $0x3c,-0x264(%rbp)
jne    1622 <driver2+0x502>
lea    0xa72(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x274(%rbp),%esi
mov    -0x278(%rbp),%edx
mov    -0x27c(%rbp),%ecx
mov    -0x280(%rbp),%r8d
mov    -0x284(%rbp),%r9d
mov    -0x288(%rbp),%eax
lea    0xa57(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x25c(%rbp),%esi
mov    -0x260(%rbp),%edx
mov    -0x26c(%rbp),%ecx
mov    -0x28c(%rbp),%r8d
lea    0xa4d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x3c,-0x270(%rbp)
jne    1634 <driver2+0x514>
jmp    1684 <driver2+0x564>
jmp    1639 <driver2+0x519>
mov    -0x26c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x26c(%rbp)
jmp    11da <driver2+0xba>
jmp    1652 <driver2+0x532>
mov    -0x260(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x260(%rbp)
jmp    11c3 <driver2+0xa3>
jmp    166b <driver2+0x54b>
mov    -0x25c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x25c(%rbp)
jmp    11a7 <driver2+0x87>
jmp    1684 <driver2+0x564>
cmpl   $0x3c,-0x270(%rbp)
jge    16c9 <driver2+0x5a9>
mov    -0x25c(%rbp),%esi
mov    -0x26c(%rbp),%edx
lea    0x9db(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x270(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
lea    0x9e4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    16ce <driver2+0x5ae>
mov    -0x28c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28c(%rbp)
jmp    1186 <driver2+0x66>
lea    0x944(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x2a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<driver2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x298,%rsp
lea    0xea8(%rip),%rdi
mov    $0x1e,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %ebx,%ebx
movl   $0x0,0xc(%rsp)
jmp    1183 <driver2+0x43>
mov    0x28(%rsp),%rbx
add    $0x1,%rbx
cmp    $0x46,%rbx
je     1430 <driver2+0x2f0>
mov    $0x0,%r13d
mov    $0x0,%esi
test   %rbx,%rbx
je     1400 <driver2+0x2c0>
lea    0x4(,%rbx,4),%rax
mov    %rax,0x48(%rsp)
mov    %ebx,%eax
mov    %ebx,0x10(%rsp)
xor    %eax,%eax
mov    %rax,0x20(%rsp)
xor    %r13d,%r13d
mov    %rbx,0x28(%rsp)
xor    %eax,%eax
mov    $0x8,%ecx
mov    %eax,0x14(%rsp)
sub    %eax,%ecx
mov    %ecx,0x30(%rsp)
movl   $0x1,0xc(%rsp)
jmp    11fc <driver2+0xbc>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %eax,%r13d
cmp    $0x3c,%eax
je     1170 <driver2+0x30>
mov    0xc(%rsp),%eax
add    $0x1,%eax
mov    %eax,0xc(%rsp)
cmp    $0x8,%eax
je     13b0 <driver2+0x270>
mov    %r13d,%eax
mov    %r13d,0x1c(%rsp)
mov    $0xffffffff,%ebx
xor    %r13d,%r13d
mov    $0xffffffff,%ebp
mov    $0xffffffff,%r15d
mov    $0xffffffff,%r14d
mov    $0xffffffff,%r12d
movl   $0xffffffff,0x18(%rsp)
ff
nopl   0x0(%rax,%rax,1)
mov    %r14d,0x40(%rsp)
mov    %ebp,0x44(%rsp)
mov    %r12d,0x34(%rsp)
mov    %r15d,0x38(%rsp)
mov    %ebx,0x3c(%rsp)
lea    0x54(%rsp),%rdi
xor    %esi,%esi
mov    0x48(%rsp),%rbp
mov    %rbp,%rdx
call   1060 <memset@plt>
lea    0x170(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1060 <memset@plt>
mov    %r13d,%eax
mov    0x14(%rsp),%r15d
mov    %r15d,%ecx
shl    %cl,%eax
mov    %r13d,%edx
mov    0x30(%rsp),%r14d
mov    %r14d,%ecx
shr    %cl,%edx
xor    %eax,%edx
mov    0x20(%rsp),%rbp
xor    %edx,0x170(%rsp,%rbp,4)
mov    %rbx,%rdi
mov    0x10(%rsp),%r12d
mov    %r12d,%esi
mov    0xc(%rsp),%ebx
mov    %ebx,%edx
call   1040 <hashlittle@plt>
lea    0x1(%r13),%edx
mov    %edx,%esi
mov    %r15d,%ecx
shl    %cl,%esi
mov    %eax,%r15d
mov    %r14d,%ecx
mov    0x40(%rsp),%r14d
shr    %cl,%edx
xor    %esi,%edx
xor    %edx,0x54(%rsp,%rbp,4)
mov    0x44(%rsp),%ebp
lea    0x54(%rsp),%rdi
mov    %r12d,%esi
mov    %ebx,%edx
call   1040 <hashlittle@plt>
mov    %eax,%ebx
mov    %eax,%r12d
xor    %r15d,%r12d
mov    0x18(%rsp),%ecx
and    %r12d,%ecx
not    %r12d
and    0x34(%rsp),%r12d
and    %r15d,%r14d
not    %r15d
and    0x38(%rsp),%r15d
and    %eax,%ebp
not    %ebx
and    0x3c(%rsp),%ebx
mov    %ebp,%eax
or     %r14d,%eax
or     %ecx,%eax
or     %r12d,%eax
or     %r15d,%eax
or     %ebx,%eax
je     1390 <driver2+0x250>
mov    %ecx,0x18(%rsp)
lea    0x2(%r13),%eax
cmp    $0x3a,%r13d
mov    %eax,%r13d
jb     1230 <driver2+0xf0>
lea    0xcf9(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,(%rsp)
lea    0xd01(%rip),%rdi
mov    0x18(%rsp),%esi
mov    %r12d,%edx
mov    %r14d,%ecx
mov    %r15d,%r8d
mov    %ebp,%r9d
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd03(%rip),%rdi
mov    0x20(%rsp),%rsi
mov    0x14(%rsp),%edx
mov    0xc(%rsp),%ecx
mov    0x10(%rsp),%r8d
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x1c(%rsp),%eax
cmp    $0x3c,%eax
jae    11e0 <driver2+0xa0>
jmp    1170 <driver2+0x30>
mov    0x1c(%rsp),%eax
cmp    %eax,%r13d
ja     11e8 <driver2+0xa8>
jmp    11e0 <driver2+0xa0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x14(%rsp),%eax
add    $0x1,%eax
cmp    $0x8,%eax
jne    11bb <driver2+0x7b>
mov    0x20(%rsp),%rcx
add    $0x1,%rcx
mov    0x28(%rsp),%rbx
mov    %rcx,%rax
mov    %rcx,0x20(%rsp)
cmp    %rbx,%rcx
jne    11b9 <driver2+0x79>
movl   $0x8,0xc(%rsp)
cmp    $0x3b,%r13d
mov    0x10(%rsp),%esi
jg     1175 <driver2+0x35>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0xc78(%rip),%rdi
mov    0xc(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13d,%esi
shr    $0x1f,%esi
add    %r13d,%esi
sar    %esi
lea    0xc82(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1175 <driver2+0x35>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x298,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [47 x i8] c"No more than %d trials should ever be needed \0A\00"
@.str.1 = [25 x i8] c"Some bit didn't change: \00"
@.str.2 = [32 x i8] c"%.8x %.8x %.8x %.8x %.8x %.8x \00"
@.str.3 = [23 x i8] c"i %d j %d m %d len %d\0A\00"
@.str.4 = [39 x i8] c"Mix success %2d bytes %2d initvals \00"
@.str.5 = [22 x i8] c"required %d trials\0A\00"
define void @driver2() {
%1 = alloca [71 x i32]
%2 = bitcast [71 x i32]* %1 to i8*
%3 = alloca [72 x i32]
%4 = bitcast [72 x i32]* %3 to i8*
%5 = getelementptr inbounds [71 x i32], [71 x i32]* %1, i64 0, i64 0
%6 = getelementptr inbounds [72 x i32], [72 x i32]* %3, i64 0, i64 1
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 30)
%8 = bitcast i32* %6 to i8*
br label %9
9: ; preds = %0, %102
%10 = phi i64 [ 0, %0 ], [ %104, %102 ]
%11 = phi i32 [ 0, %0 ], [ %103, %102 ]
%12 = shl nuw nsw i64 %10, 2
%13 = add nuw nsw i64 %12, 4
%14 = icmp eq i64 %10, 0
br i1 %14, label %95, label %15
15: ; preds = %9
%16 = trunc i64 %10 to i32
%17 = trunc i64 %10 to i32
%18 = trunc i64 %10 to i32
br label %19
19: ; preds = %15, %90
%20 = phi i64 [ 0, %15 ], [ %91, %90 ]
%21 = phi i32 [ 0, %15 ], [ %84, %90 ]
%22 = getelementptr inbounds [71 x i32], [71 x i32]* %1, i64 0, i64 %20
%23 = getelementptr inbounds i32, i32* %6, i64 %20
%24 = trunc i64 %20 to i32
br label %25
25: ; preds = %19, %87
%26 = phi i32 [ %21, %19 ], [ %84, %87 ]
%27 = phi i32 [ 0, %19 ], [ %88, %87 ]
%28 = sub nuw nsw i32 8, %27
br label %29
29: ; preds = %25, %82
%30 = phi i32 [ %26, %25 ], [ %84, %82 ]
%31 = phi i32 [ 1, %25 ], [ %85, %82 ]
br label %32
32: ; preds = %29, %69
%33 = phi i32 [ 0, %29 ], [ %70, %69 ]
%34 = phi i32 [ -1, %29 ], [ %63, %69 ]
%35 = phi i32 [ -1, %29 ], [ %57, %69 ]
%36 = phi i32 [ -1, %29 ], [ %62, %69 ]
%37 = phi i32 [ -1, %29 ], [ %55, %69 ]
%38 = phi i32 [ -1, %29 ], [ %61, %69 ]
%39 = phi i32 [ -1, %29 ], [ %60, %69 ]
%40 = shl i32 %33, %27
%41 = load i32, i32* %22
%42 = lshr i32 %33, %28
%43 = xor i32 %42, %40
%44 = xor i32 %43, %41
store i32 %44, i32* %22
%45 = call i32 @hashlittle(i32* %5, i32 %16, i32 %31)
%46 = or i32 %33, 1
%47 = shl i32 %46, %27
%48 = load i32, i32* %23
%49 = lshr i32 %46, %28
%50 = xor i32 %49, %47
%51 = xor i32 %50, %48
store i32 %51, i32* %23
%52 = call i32 @hashlittle(i32* %6, i32 %16, i32 %31)
%53 = xor i32 %52, %45
%54 = xor i32 %53, -1
%55 = and i32 %45, %37
%56 = xor i32 %45, -1
%57 = and i32 %52, %35
%58 = xor i32 %52, -1
%59 = or i32 %57, %55
%60 = and i32 %39, %53
%61 = and i32 %38, %54
%62 = and i32 %36, %56
%63 = and i32 %34, %58
%64 = or i32 %59, %60
%65 = or i32 %64, %61
%66 = or i32 %65, %62
%67 = or i32 %66, %63
%68 = icmp eq i32 %67, 0
br i1 %68, label %72, label %69
69: ; preds = %32
%70 = add nuw nsw i32 %33, 2
%71 = icmp ult i32 %33, 58
br i1 %71, label %32, label %74
72: ; preds = %32
%73 = icmp ugt i32 %33, %30
br i1 %73, label %82, label %79
74: ; preds = %69
%75 = icmp ult i32 %30, 60
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i32 %60, i32 %61, i32 %55, i32 %62, i32 %57, i32 %63)
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %24, i32 %27, i32 %31, i32 %17)
br i1 %75, label %102, label %79
79: ; preds = %72, %74
%80 = phi i32 [ %18, %72 ], [ %17, %74 ]
%81 = icmp eq i32 %30, 60
br i1 %81, label %102, label %82
82: ; preds = %72, %79
%83 = phi i32 [ %80, %79 ], [ %18, %72 ]
%84 = phi i32 [ %30, %79 ], [ %33, %72 ]
%85 = add nuw nsw i32 %31, 1
%86 = icmp eq i32 %85, 8
br i1 %86, label %87, label %29
87: ; preds = %82
%88 = add nuw nsw i32 %27, 1
%89 = icmp eq i32 %88, 8
br i1 %89, label %90, label %25
90: ; preds = %87
%91 = add nuw nsw i64 %20, 1
%92 = icmp eq i64 %91, %10
br i1 %92, label %93, label %19
93: ; preds = %90
%94 = icmp slt i32 %84, 60
br i1 %94, label %95, label %102
95: ; preds = %9, %93
%96 = phi i32 [ %84, %93 ], [ 0, %9 ]
%97 = phi i32 [ 8, %93 ], [ %11, %9 ]
%98 = phi i32 [ %83, %93 ], [ 0, %9 ]
%99 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i32 %98, i32 %97)
%100 = sdiv i32 %96, 2
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 %100)
br label %102
102: ; preds = %74, %79, %93, %95
%103 = phi i32 [ 8, %93 ], [ %97, %95 ], [ %31, %79 ], [ %31, %74 ]
%104 = add nuw nsw i64 %10, 1
%105 = icmp eq i64 %104, 70
br i1 %105, label %106, label %9
106: ; preds = %102
%107 = call i32 @putchar(i32 10)
ret void
}