#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 /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ test_output(int, int /*<<< orphan*/ *, int,
                               int /*<<< orphan*/ *, int, int /*<<< orphan*/ *,
                               int, int, int, int, int, int, int);
void PHC_test(void) {
  int i;
  uint8_t j = 0;
  printf("****************************************** Test passwords\n");
  for (i = 0; i < 256; i++) {
    test_output(32, (uint8_t *)&i, 1, &j, 1, NULL, 0, 1 * 1024, 4096, 0, 16384,
                1, 1);
  }
  printf("****************************************** Test salt\n");
  for (i = 0; i < 256; i++) {
    test_output(32, &j, 1, (uint8_t *)&i, 1, NULL, 0, 1 * 1024, 4096, 0, 16384,
                1, 1);
  }
  printf("****************************************** Test data\n");
  for (i = 0; i < 256; i++) {
    test_output(32, &j, 1, &j, 1, (uint8_t *)&i, 1, 10 * 1024, 4096, 0, 16384,
                1, 1);
  }
  printf("****************************************** Test garlic\n");
  for (i = 0; i < 6; i++) {
    test_output(32, &j, 1, &j, 1, NULL, 0, 1 * 1024, 4096, i, 16384, 1, 1);
  }
  printf("****************************************** Test parallelism\n");
  for (i = 1; i < 10; i++) {
    test_output(32, &j, 1, &j, 1, NULL, 0, 1 * 1024, 4096, 0, 16384, i, 1);
  }
  printf("****************************************** Test repetitions\n");
  for (i = 1; i < 10; i++) {
    test_output(32, &j, 1, &j, 1, NULL, 0, 1 * 1024, 4096, 0, 16384, 1, i);
  }
  printf("****************************************** Test blocklen\n");
  for (i = 12; i < 256; i += 4) {
    test_output(12, &j, 1, &j, 1, NULL, 0, 1 * 1024, i, 0, i, 1, 1);
  }
  printf("****************************************** Test memlen\n");
  for (i = 1; i < 16; i += 4) {
    test_output(32, &j, 1, &j, 1, NULL, 0, i * 1024, 4096, 0, 16384, 1, 1);
  }
}


x86 assembly (clang, -O0):
<PHC_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x8(%rbp)
lea    0xeca(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x100,-0x4(%rbp)
jge    11b6 <PHC_test+0x96>
mov    $0x20,%edi
lea    -0x4(%rbp),%rsi
mov    $0x1,%r8d
lea    -0x8(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%r9d
xor    %eax,%eax
mov    %r8d,%edx
movl   $0x0,(%rsp)
movl   $0x400,0x8(%rsp)
movl   $0x1000,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x4000,0x20(%rsp)
movl   $0x1,0x28(%rsp)
movl   $0x1,0x30(%rsp)
call   1030 <test_output@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1142 <PHC_test+0x22>
lea    0xe7e(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x100,-0x4(%rbp)
jge    123d <PHC_test+0x11d>
mov    $0x20,%edi
lea    -0x8(%rbp),%rsi
mov    $0x1,%r8d
lea    -0x4(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%r9d
xor    %eax,%eax
mov    %r8d,%edx
movl   $0x0,(%rsp)
movl   $0x400,0x8(%rsp)
movl   $0x1000,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x4000,0x20(%rsp)
movl   $0x1,0x28(%rsp)
movl   $0x1,0x30(%rsp)
call   1030 <test_output@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11c9 <PHC_test+0xa9>
lea    0xe2d(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x100,-0x4(%rbp)
jge    12c2 <PHC_test+0x1a2>
mov    $0x20,%edi
lea    -0x8(%rbp),%rcx
mov    $0x1,%r8d
lea    -0x4(%rbp),%r9
xor    %eax,%eax
mov    %rcx,%rsi
mov    %r8d,%edx
movl   $0x1,(%rsp)
movl   $0x2800,0x8(%rsp)
movl   $0x1000,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x4000,0x20(%rsp)
movl   $0x1,0x28(%rsp)
movl   $0x1,0x30(%rsp)
call   1030 <test_output@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1250 <PHC_test+0x130>
lea    0xdde(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x6,-0x4(%rbp)
jge    1344 <PHC_test+0x224>
mov    -0x4(%rbp),%eax
mov    $0x20,%edi
lea    -0x8(%rbp),%rcx
mov    $0x1,%r8d
xor    %edx,%edx
mov    %edx,%r9d
xor    %edx,%edx
mov    %rcx,%rsi
mov    %r8d,%edx
movl   $0x0,(%rsp)
movl   $0x400,0x8(%rsp)
movl   $0x1000,0x10(%rsp)
mov    %eax,0x18(%rsp)
movl   $0x4000,0x20(%rsp)
movl   $0x1,0x28(%rsp)
movl   $0x1,0x30(%rsp)
call   1030 <test_output@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    12d5 <PHC_test+0x1b5>
lea    0xd94(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
cmpl   $0xa,-0x4(%rbp)
jge    13c6 <PHC_test+0x2a6>
mov    -0x4(%rbp),%eax
mov    $0x20,%edi
lea    -0x8(%rbp),%rcx
mov    $0x1,%r8d
xor    %edx,%edx
mov    %edx,%r9d
xor    %edx,%edx
mov    %rcx,%rsi
mov    %r8d,%edx
movl   $0x0,(%rsp)
movl   $0x400,0x8(%rsp)
movl   $0x1000,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x4000,0x20(%rsp)
mov    %eax,0x28(%rsp)
movl   $0x1,0x30(%rsp)
call   1030 <test_output@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1357 <PHC_test+0x237>
lea    0xd4f(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
cmpl   $0xa,-0x4(%rbp)
jge    1448 <PHC_test+0x328>
mov    -0x4(%rbp),%eax
mov    $0x20,%edi
lea    -0x8(%rbp),%rcx
mov    $0x1,%r8d
xor    %edx,%edx
mov    %edx,%r9d
xor    %edx,%edx
mov    %rcx,%rsi
mov    %r8d,%edx
movl   $0x0,(%rsp)
movl   $0x400,0x8(%rsp)
movl   $0x1000,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x4000,0x20(%rsp)
movl   $0x1,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1030 <test_output@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    13d9 <PHC_test+0x2b9>
lea    0xd0a(%rip),%rdi
call   1040 <printf@plt>
movl   $0xc,-0x4(%rbp)
cmpl   $0x100,-0x4(%rbp)
jge    14ce <PHC_test+0x3ae>
mov    -0x4(%rbp),%r10d
mov    -0x4(%rbp),%eax
mov    $0xc,%edi
lea    -0x8(%rbp),%rcx
mov    $0x1,%r8d
xor    %edx,%edx
mov    %edx,%r9d
xor    %edx,%edx
mov    %rcx,%rsi
mov    %r8d,%edx
movl   $0x0,(%rsp)
movl   $0x400,0x8(%rsp)
mov    %r10d,0x10(%rsp)
movl   $0x0,0x18(%rsp)
mov    %eax,0x20(%rsp)
movl   $0x1,0x28(%rsp)
movl   $0x1,0x30(%rsp)
call   1030 <test_output@plt>
mov    -0x4(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x4(%rbp)
jmp    145b <PHC_test+0x33b>
lea    0xcbe(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1553 <PHC_test+0x433>
mov    -0x4(%rbp),%eax
shl    $0xa,%eax
mov    $0x20,%edi
lea    -0x8(%rbp),%rcx
mov    $0x1,%r8d
xor    %edx,%edx
mov    %edx,%r9d
xor    %edx,%edx
mov    %rcx,%rsi
mov    %r8d,%edx
movl   $0x0,(%rsp)
mov    %eax,0x8(%rsp)
movl   $0x1000,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x4000,0x20(%rsp)
movl   $0x1,0x28(%rsp)
movl   $0x1,0x30(%rsp)
call   1030 <test_output@plt>
mov    -0x4(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x4(%rbp)
jmp    14e1 <PHC_test+0x3c1>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PHC_test>:
push   %r14
push   %rbx
push   %rax
movl   $0x0,0x4(%rsp)
lea    0xecd(%rip),%rdi
call   1040 <puts@plt>
movl   $0x0,(%rsp)
mov    %rsp,%r14
lea    0x4(%rsp),%rbx
nopw   0x0(%rax,%rax,1)
sub    $0x8,%rsp
mov    $0x20,%edi
mov    %r14,%rsi
mov    $0x1,%edx
mov    %rbx,%rcx
mov    $0x1,%r8d
xor    %r9d,%r9d
push   $0x1
push   $0x1
push   $0x4000
push   $0x0
push   $0x1000
push   $0x400
push   $0x0
call   1030 <test_output@plt>
add    $0x40,%rsp
mov    (%rsp),%eax
lea    0x1(%rax),%ecx
mov    %ecx,(%rsp)
cmp    $0xff,%eax
jl     1150 <PHC_test+0x30>
lea    0xe96(%rip),%rdi
call   1040 <puts@plt>
movl   $0x0,(%rsp)
lea    0x4(%rsp),%r14
mov    %rsp,%rbx
nopl   0x0(%rax,%rax,1)
sub    $0x8,%rsp
mov    $0x20,%edi
mov    %r14,%rsi
mov    $0x1,%edx
mov    %rbx,%rcx
mov    $0x1,%r8d
xor    %r9d,%r9d
push   $0x1
push   $0x1
push   $0x4000
push   $0x0
push   $0x1000
push   $0x400
push   $0x0
call   1030 <test_output@plt>
add    $0x40,%rsp
mov    (%rsp),%eax
lea    0x1(%rax),%ecx
mov    %ecx,(%rsp)
cmp    $0xff,%eax
jl     11c0 <PHC_test+0xa0>
lea    0xe5b(%rip),%rdi
call   1040 <puts@plt>
movl   $0x0,(%rsp)
lea    0x4(%rsp),%rbx
mov    %rsp,%r14
nopl   0x0(%rax,%rax,1)
sub    $0x8,%rsp
mov    $0x20,%edi
mov    %rbx,%rsi
mov    $0x1,%edx
mov    %rbx,%rcx
mov    $0x1,%r8d
mov    %r14,%r9
push   $0x1
push   $0x1
push   $0x4000
push   $0x0
push   $0x1000
push   $0x2800
push   $0x1
call   1030 <test_output@plt>
add    $0x40,%rsp
mov    (%rsp),%eax
lea    0x1(%rax),%ecx
mov    %ecx,(%rsp)
cmp    $0xff,%eax
jl     1230 <PHC_test+0x110>
lea    0xe20(%rip),%rdi
call   1040 <puts@plt>
movl   $0x0,(%rsp)
xor    %eax,%eax
lea    0x4(%rsp),%rbx
nopw   0x0(%rax,%rax,1)
sub    $0x8,%rsp
mov    $0x20,%edi
mov    %rbx,%rsi
mov    $0x1,%edx
mov    %rbx,%rcx
mov    $0x1,%r8d
xor    %r9d,%r9d
push   $0x1
push   $0x1
push   $0x4000
push   %rax
push   $0x1000
push   $0x400
push   $0x0
call   1030 <test_output@plt>
add    $0x40,%rsp
mov    (%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,(%rsp)
cmp    $0x5,%ecx
jl     12a0 <PHC_test+0x180>
lea    0xdea(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,(%rsp)
mov    $0x1,%eax
lea    0x4(%rsp),%rbx
nopw   0x0(%rax,%rax,1)
sub    $0x8,%rsp
mov    $0x20,%edi
mov    %rbx,%rsi
mov    $0x1,%edx
mov    %rbx,%rcx
mov    $0x1,%r8d
xor    %r9d,%r9d
push   $0x1
push   %rax
push   $0x4000
push   $0x0
push   $0x1000
push   $0x400
push   $0x0
call   1030 <test_output@plt>
add    $0x40,%rsp
mov    (%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,(%rsp)
cmp    $0x9,%ecx
jl     1310 <PHC_test+0x1f0>
lea    0xdb6(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,(%rsp)
mov    $0x1,%eax
lea    0x4(%rsp),%rbx
nopw   0x0(%rax,%rax,1)
sub    $0x8,%rsp
mov    $0x20,%edi
mov    %rbx,%rsi
mov    $0x1,%edx
mov    %rbx,%rcx
mov    $0x1,%r8d
xor    %r9d,%r9d
push   %rax
push   $0x1
push   $0x4000
push   $0x0
push   $0x1000
push   $0x400
push   $0x0
call   1030 <test_output@plt>
add    $0x40,%rsp
mov    (%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,(%rsp)
cmp    $0x9,%ecx
jl     1380 <PHC_test+0x260>
lea    0xd82(%rip),%rdi
call   1040 <puts@plt>
movl   $0xc,(%rsp)
mov    $0xc,%eax
lea    0x4(%rsp),%rbx
nopw   0x0(%rax,%rax,1)
sub    $0x8,%rsp
mov    $0xc,%edi
mov    %rbx,%rsi
mov    $0x1,%edx
mov    %rbx,%rcx
mov    $0x1,%r8d
xor    %r9d,%r9d
push   $0x1
push   $0x1
push   %rax
push   $0x0
push   %rax
push   $0x400
push   $0x0
call   1030 <test_output@plt>
add    $0x40,%rsp
mov    (%rsp),%ecx
lea    0x4(%rcx),%eax
mov    %eax,(%rsp)
cmp    $0xfc,%ecx
jl     13f0 <PHC_test+0x2d0>
lea    0xd4f(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,(%rsp)
mov    $0x1,%eax
lea    0x4(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
shl    $0xa,%eax
sub    $0x8,%rsp
mov    $0x20,%edi
mov    %rbx,%rsi
mov    $0x1,%edx
mov    %rbx,%rcx
mov    $0x1,%r8d
xor    %r9d,%r9d
push   $0x1
push   $0x1
push   $0x4000
push   $0x0
push   $0x1000
push   %rax
push   $0x0
call   1030 <test_output@plt>
add    $0x40,%rsp
mov    (%rsp),%ecx
lea    0x4(%rcx),%eax
mov    %eax,(%rsp)
cmp    $0xc,%ecx
jl     1460 <PHC_test+0x340>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [59 x i8] c"****************************************** Test passwords\0A\00"
@.str.1 = [54 x i8] c"****************************************** Test salt\0A\00"
@.str.2 = [54 x i8] c"****************************************** Test data\0A\00"
@.str.3 = [56 x i8] c"****************************************** Test garlic\0A\00"
@.str.4 = [61 x i8] c"****************************************** Test parallelism\0A\00"
@.str.5 = [61 x i8] c"****************************************** Test repetitions\0A\00"
@.str.6 = [58 x i8] c"****************************************** Test blocklen\0A\00"
@.str.7 = [56 x i8] c"****************************************** Test memlen\0A\00"
define void @PHC_test() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %2
%3 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %1
br label %4
4: ; preds = %9, %0
%5 = load i32, i32* %1
%6 = icmp slt i32 %5, 256
br i1 %6, label %7, label %12
7: ; preds = %4
%8 = call i32 @test_output(i32 32, i32* %1, i32 1, i32* %2, i32 1, i32* null, i32 0, i32 1024, i32 4096, i32 0, i32 16384, i32 1, i32 1)
br label %9
9: ; preds = %7
%10 = load i32, i32* %1
%11 = add nsw i32 %10, 1
store i32 %11, i32* %1
br label %4
12: ; preds = %4
%13 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %1
br label %14
14: ; preds = %19, %12
%15 = load i32, i32* %1
%16 = icmp slt i32 %15, 256
br i1 %16, label %17, label %22
17: ; preds = %14
%18 = call i32 @test_output(i32 32, i32* %2, i32 1, i32* %1, i32 1, i32* null, i32 0, i32 1024, i32 4096, i32 0, i32 16384, i32 1, i32 1)
br label %19
19: ; preds = %17
%20 = load i32, i32* %1
%21 = add nsw i32 %20, 1
store i32 %21, i32* %1
br label %14
22: ; preds = %14
%23 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %1
br label %24
24: ; preds = %29, %22
%25 = load i32, i32* %1
%26 = icmp slt i32 %25, 256
br i1 %26, label %27, label %32
27: ; preds = %24
%28 = call i32 @test_output(i32 32, i32* %2, i32 1, i32* %2, i32 1, i32* %1, i32 1, i32 10240, i32 4096, i32 0, i32 16384, i32 1, i32 1)
br label %29
29: ; preds = %27
%30 = load i32, i32* %1
%31 = add nsw i32 %30, 1
store i32 %31, i32* %1
br label %24
32: ; preds = %24
%33 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %1
br label %34
34: ; preds = %40, %32
%35 = load i32, i32* %1
%36 = icmp slt i32 %35, 6
br i1 %36, label %37, label %43
37: ; preds = %34
%38 = load i32, i32* %1
%39 = call i32 @test_output(i32 32, i32* %2, i32 1, i32* %2, i32 1, i32* null, i32 0, i32 1024, i32 4096, i32 %38, i32 16384, i32 1, i32 1)
br label %40
40: ; preds = %37
%41 = load i32, i32* %1
%42 = add nsw i32 %41, 1
store i32 %42, i32* %1
br label %34
43: ; preds = %34
%44 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %1
br label %45
45: ; preds = %51, %43
%46 = load i32, i32* %1
%47 = icmp slt i32 %46, 10
br i1 %47, label %48, label %54
48: ; preds = %45
%49 = load i32, i32* %1
%50 = call i32 @test_output(i32 32, i32* %2, i32 1, i32* %2, i32 1, i32* null, i32 0, i32 1024, i32 4096, i32 0, i32 16384, i32 %49, i32 1)
br label %51
51: ; preds = %48
%52 = load i32, i32* %1
%53 = add nsw i32 %52, 1
store i32 %53, i32* %1
br label %45
54: ; preds = %45
%55 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.5, i64 0, i64 0))
store i32 1, i32* %1
br label %56
56: ; preds = %62, %54
%57 = load i32, i32* %1
%58 = icmp slt i32 %57, 10
br i1 %58, label %59, label %65
59: ; preds = %56
%60 = load i32, i32* %1
%61 = call i32 @test_output(i32 32, i32* %2, i32 1, i32* %2, i32 1, i32* null, i32 0, i32 1024, i32 4096, i32 0, i32 16384, i32 1, i32 %60)
br label %62
62: ; preds = %59
%63 = load i32, i32* %1
%64 = add nsw i32 %63, 1
store i32 %64, i32* %1
br label %56
65: ; preds = %56
%66 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.6, i64 0, i64 0))
store i32 12, i32* %1
br label %67
67: ; preds = %74, %65
%68 = load i32, i32* %1
%69 = icmp slt i32 %68, 256
br i1 %69, label %70, label %77
70: ; preds = %67
%71 = load i32, i32* %1
%72 = load i32, i32* %1
%73 = call i32 @test_output(i32 12, i32* %2, i32 1, i32* %2, i32 1, i32* null, i32 0, i32 1024, i32 %71, i32 0, i32 %72, i32 1, i32 1)
br label %74
74: ; preds = %70
%75 = load i32, i32* %1
%76 = add nsw i32 %75, 4
store i32 %76, i32* %1
br label %67
77: ; preds = %67
%78 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.7, i64 0, i64 0))
store i32 1, i32* %1
br label %79
79: ; preds = %86, %77
%80 = load i32, i32* %1
%81 = icmp slt i32 %80, 16
br i1 %81, label %82, label %89
82: ; preds = %79
%83 = load i32, i32* %1
%84 = mul nsw i32 %83, 1024
%85 = call i32 @test_output(i32 32, i32* %2, i32 1, i32* %2, i32 1, i32* null, i32 0, i32 %84, i32 4096, i32 0, i32 16384, i32 1, i32 1)
br label %86
86: ; preds = %82
%87 = load i32, i32* %1
%88 = add nsw i32 %87, 4
store i32 %88, i32* %1
br label %79
89: ; preds = %79
ret void
}

LLVM IR (-O2):
@str = [58 x i8] c"****************************************** Test passwords\00"
@str.8 = [53 x i8] c"****************************************** Test salt\00"
@str.9 = [53 x i8] c"****************************************** Test data\00"
@str.10 = [55 x i8] c"****************************************** Test garlic\00"
@str.11 = [60 x i8] c"****************************************** Test parallelism\00"
@str.12 = [60 x i8] c"****************************************** Test repetitions\00"
@str.13 = [57 x i8] c"****************************************** Test blocklen\00"
@str.14 = [55 x i8] c"****************************************** Test memlen\00"
define void @PHC_test() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str, i64 0, i64 0))
store i32 0, i32* %1
br label %6
6: ; preds = %0, %6
%7 = call i32 @test_output(i32 32, i32* %1, i32 1, i32* %2, i32 1, i32* null, i32 0, i32 1024, i32 4096, i32 0, i32 16384, i32 1, i32 1)
%8 = load i32, i32* %1
%9 = add nsw i32 %8, 1
store i32 %9, i32* %1
%10 = icmp slt i32 %8, 255
br i1 %10, label %6, label %11
11: ; preds = %6
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.8, i64 0, i64 0))
store i32 0, i32* %1
br label %13
13: ; preds = %11, %13
%14 = call i32 @test_output(i32 32, i32* %2, i32 1, i32* %1, i32 1, i32* null, i32 0, i32 1024, i32 4096, i32 0, i32 16384, i32 1, i32 1)
%15 = load i32, i32* %1
%16 = add nsw i32 %15, 1
store i32 %16, i32* %1
%17 = icmp slt i32 %15, 255
br i1 %17, label %13, label %18
18: ; preds = %13
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.9, i64 0, i64 0))
store i32 0, i32* %1
br label %20
20: ; preds = %18, %20
%21 = call i32 @test_output(i32 32, i32* %2, i32 1, i32* %2, i32 1, i32* %1, i32 1, i32 10240, i32 4096, i32 0, i32 16384, i32 1, i32 1)
%22 = load i32, i32* %1
%23 = add nsw i32 %22, 1
store i32 %23, i32* %1
%24 = icmp slt i32 %22, 255
br i1 %24, label %20, label %25
25: ; preds = %20
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.10, i64 0, i64 0))
store i32 0, i32* %1
br label %27
27: ; preds = %25, %27
%28 = phi i32 [ 0, %25 ], [ %31, %27 ]
%29 = call i32 @test_output(i32 32, i32* %2, i32 1, i32* %2, i32 1, i32* null, i32 0, i32 1024, i32 4096, i32 %28, i32 16384, i32 1, i32 1)
%30 = load i32, i32* %1
%31 = add nsw i32 %30, 1
store i32 %31, i32* %1
%32 = icmp slt i32 %30, 5
br i1 %32, label %27, label %33
33: ; preds = %27
%34 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.11, i64 0, i64 0))
store i32 1, i32* %1
br label %35
35: ; preds = %33, %35
%36 = phi i32 [ 1, %33 ], [ %39, %35 ]
%37 = call i32 @test_output(i32 32, i32* %2, i32 1, i32* %2, i32 1, i32* null, i32 0, i32 1024, i32 4096, i32 0, i32 16384, i32 %36, i32 1)
%38 = load i32, i32* %1
%39 = add nsw i32 %38, 1
store i32 %39, i32* %1
%40 = icmp slt i32 %38, 9
br i1 %40, label %35, label %41
41: ; preds = %35
%42 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.12, i64 0, i64 0))
store i32 1, i32* %1
br label %43
43: ; preds = %41, %43
%44 = phi i32 [ 1, %41 ], [ %47, %43 ]
%45 = call i32 @test_output(i32 32, i32* %2, i32 1, i32* %2, i32 1, i32* null, i32 0, i32 1024, i32 4096, i32 0, i32 16384, i32 1, i32 %44)
%46 = load i32, i32* %1
%47 = add nsw i32 %46, 1
store i32 %47, i32* %1
%48 = icmp slt i32 %46, 9
br i1 %48, label %43, label %49
49: ; preds = %43
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.13, i64 0, i64 0))
store i32 12, i32* %1
br label %51
51: ; preds = %49, %51
%52 = phi i32 [ 12, %49 ], [ %55, %51 ]
%53 = call i32 @test_output(i32 12, i32* %2, i32 1, i32* %2, i32 1, i32* null, i32 0, i32 1024, i32 %52, i32 0, i32 %52, i32 1, i32 1)
%54 = load i32, i32* %1
%55 = add nsw i32 %54, 4
store i32 %55, i32* %1
%56 = icmp slt i32 %54, 252
br i1 %56, label %51, label %57
57: ; preds = %51
%58 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.14, i64 0, i64 0))
store i32 1, i32* %1
br label %59
59: ; preds = %57, %59
%60 = phi i32 [ 1, %57 ], [ %64, %59 ]
%61 = shl nsw i32 %60, 10
%62 = call i32 @test_output(i32 32, i32* %2, i32 1, i32* %2, i32 1, i32* null, i32 0, i32 %61, i32 4096, i32 0, i32 16384, i32 1, i32 1)
%63 = load i32, i32* %1
%64 = add nsw i32 %63, 4
store i32 %64, i32* %1
%65 = icmp slt i32 %63, 12
br i1 %65, label %59, label %66
66: ; preds = %59
ret void
}