#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, ...);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
void dump_perm(unsigned char box[256], unsigned char ibox[256]) {
  int i, j;
  int num_fixed = 0;
  for (i = 0; i < 256; i++) {
    if (i == box[i])
      num_fixed++;
    fprintf(stderr, "%c%02x:%02x%c", (i == box[i]) ? '#' : ' ',
            (unsigned)i & 0xff, (unsigned)box[i] & 0xff,
            (i & 7) == 7 ? '\n' : ' ');
  }
  fprintf(stderr, "# fixed points %d\n", num_fixed);
  for (i = 0; i < 256; i++) {
    fprintf(stderr, "%02x:%02x%c", (unsigned)ibox[box[i]] & 0xff,
            (unsigned)box[ibox[i]] & 0xff, (i & 7) == 7 ? '\n' : ' ');
  }
  fprintf(stderr, "# fixed points %d\n", num_fixed);
  printf("\n");
  printf("static char myx_S_box[] = {\n");
  for (i = 0; i < 256; i++) {
    printf("%s0x%02x,%c", (i & 7) == 0 ? "\t" : "", box[i],
           (i & 7) == 7 ? '\n' : ' ');
  }
  printf("};\n");
  printf("\n");
  printf("\n");
  printf("static char myx_inv_S_box[] = {\n");
  for (i = 0; i < 256; i++) {
    printf("%s0x%02x,%c", (i & 7) == 0 ? "\t" : "", ibox[i],
           (i & 7) == 7 ? '\n' : ' ');
  }
  printf("};\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<dump_perm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x100,-0x14(%rbp)
jge    11e3 <dump_perm+0xc3>
mov    -0x14(%rbp),%eax
mov    -0x8(%rbp),%rcx
movslq -0x14(%rbp),%rdx
movzbl (%rcx,%rdx,1),%ecx
cmp    %ecx,%eax
jne    116b <dump_perm+0x4b>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    0x2e6e(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%ecx
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rdx
movzbl (%rax,%rdx,1),%esi
mov    $0x20,%edx
mov    $0x23,%eax
cmp    %esi,%ecx
cmove  %eax,%edx
mov    -0x14(%rbp),%ecx
and    $0xff,%ecx
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rsi
movzbl (%rax,%rsi,1),%r8d
and    $0xff,%r8d
mov    -0x14(%rbp),%esi
and    $0x7,%esi
mov    $0x20,%r9d
mov    $0xa,%eax
cmp    $0x7,%esi
cmove  %eax,%r9d
lea    0xe32(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    113e <dump_perm+0x1e>
mov    0x2df6(%rip),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%edx
lea    0xe18(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x100,-0x14(%rbp)
jge    1282 <dump_perm+0x162>
mov    0x2dc8(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rcx
movslq -0x14(%rbp),%rdx
movzbl (%rcx,%rdx,1),%ecx
movzbl (%rax,%rcx,1),%edx
and    $0xff,%edx
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq -0x14(%rbp),%rsi
movzbl (%rcx,%rsi,1),%ecx
movzbl (%rax,%rcx,1),%ecx
and    $0xff,%ecx
mov    -0x14(%rbp),%esi
and    $0x7,%esi
mov    $0x20,%r8d
mov    $0xa,%eax
cmp    $0x7,%esi
cmove  %eax,%r8d
lea    0xd95(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1204 <dump_perm+0xe4>
mov    0x2d57(%rip),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%edx
lea    0xd79(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
lea    0xdab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x100,-0x14(%rbp)
jge    1325 <dump_perm+0x205>
mov    -0x14(%rbp),%ecx
and    $0x7,%ecx
lea    0xd72(%rip),%rsi
lea    0xd6a(%rip),%rax
cmp    $0x0,%ecx
cmove  %rax,%rsi
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
mov    -0x14(%rbp),%edi
and    $0x7,%edi
mov    $0x20,%ecx
mov    $0xa,%eax
cmp    $0x7,%edi
cmove  %eax,%ecx
lea    0xd2e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12bf <dump_perm+0x19f>
lea    0xd20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd06(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcfa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x100,-0x14(%rbp)
jge    13ca <dump_perm+0x2aa>
mov    -0x14(%rbp),%ecx
and    $0x7,%ecx
lea    0xccd(%rip),%rsi
lea    0xcc5(%rip),%rax
cmp    $0x0,%ecx
cmove  %rax,%rsi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
mov    -0x14(%rbp),%edi
and    $0x7,%edi
mov    $0x20,%ecx
mov    $0xa,%eax
cmp    $0x7,%edi
cmove  %eax,%ecx
lea    0xc89(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1364 <dump_perm+0x244>
lea    0xc7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dump_perm>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%r12
mov    0x2e88(%rip),%r13
lea    0xea1(%rip),%r15
xor    %ebx,%ebx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movzbl (%r12,%rbx,1),%r8d
xor    %eax,%eax
cmp    %r8,%rbx
sete   %al
add    %eax,%ebp
mov    0x0(%r13),%edi
lea    (%rax,%rax,2),%edx
or     $0x20,%edx
mov    %ebx,%eax
not    %eax
test   $0x7,%al
mov    $0x20,%r9d
mov    $0xa,%eax
cmove  %eax,%r9d
mov    %r15,%rsi
mov    %ebx,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
add    $0x1,%rbx
cmp    $0x100,%rbx
jne    1170 <dump_perm+0x30>
mov    0x0(%r13),%edi
lea    0xe4c(%rip),%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xe30(%rip),%rbx
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x0(%r13),%edi
movzbl (%r12,%r15,1),%eax
movzbl (%r14,%rax,1),%edx
movzbl (%r14,%r15,1),%eax
movzbl (%r12,%rax,1),%ecx
mov    %r15d,%eax
not    %eax
test   $0x7,%al
mov    $0x20,%r8d
mov    $0xa,%eax
cmove  %eax,%r8d
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
add    $0x1,%r15
cmp    $0x100,%r15
jne    11e0 <dump_perm+0xa0>
mov    0x0(%r13),%edi
lea    0xdde(%rip),%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xde5(%rip),%rdi
call   1040 <puts@plt>
lea    0xdd7(%rip),%rbp
lea    0xdd1(%rip),%r15
lea    0xdbd(%rip),%rbx
xor    %r13d,%r13d
nopw   0x0(%rax,%rax,1)
mov    %r13d,%eax
and    $0x7,%eax
mov    %r15,%rsi
cmove  %rbp,%rsi
movzbl (%r12,%r13,1),%edx
cmp    $0x7,%eax
mov    $0x20,%ecx
mov    $0xa,%eax
cmove  %eax,%ecx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%r13
cmp    $0x100,%r13
jne    1270 <dump_perm+0x130>
lea    0xdbb(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%r12d
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xd75(%rip),%rdi
call   1040 <puts@plt>
lea    0xd3f(%rip),%r13
mov    %rbp,%rbx
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
mov    %ebp,%eax
and    $0x7,%eax
mov    %r15,%rsi
cmove  %rbx,%rsi
movzbl (%r14,%rbp,1),%edx
cmp    $0x7,%eax
mov    $0x20,%ecx
cmove  %r12d,%ecx
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbp
cmp    $0x100,%rbp
jne    12f0 <dump_perm+0x1b0>
lea    0xd40(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [14 x i8] c"%c%02x:%02x%c\00"
@.str.1 = [19 x i8] c"# fixed points %d\0A\00"
@.str.2 = [12 x i8] c"%02x:%02x%c\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [29 x i8] c"static char myx_S_box[] = {\0A\00"
@.str.5 = [12 x i8] c"%s0x%02x,%c\00"
@.str.6 = [2 x i8] c"\09\00"
@.str.7 = [1 x i8] zeroinitializer
@.str.8 = [4 x i8] c"};\0A\00"
@.str.9 = [33 x i8] c"static char myx_inv_S_box[] = {\0A\00"
define void @dump_perm(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %3
store i8* %1, i8** %4
store i32 0, i32* %7
store i32 0, i32* %5
br label %8
8: ; preds = %50, %2
%9 = load i32, i32* %5
%10 = icmp slt i32 %9, 256
br i1 %10, label %11, label %53
11: ; preds = %8
%12 = load i32, i32* %5
%13 = load i8*, i8** %3
%14 = load i32, i32* %5
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, i8* %13, i64 %15
%17 = load i8, i8* %16
%18 = zext i8 %17 to i32
%19 = icmp eq i32 %12, %18
br i1 %19, label %20, label %23
20: ; preds = %11
%21 = load i32, i32* %7
%22 = add nsw i32 %21, 1
store i32 %22, i32* %7
br label %23
23: ; preds = %20, %11
%24 = load i32, i32* @stderr
%25 = load i32, i32* %5
%26 = load i8*, i8** %3
%27 = load i32, i32* %5
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, i8* %26, i64 %28
%30 = load i8, i8* %29
%31 = zext i8 %30 to i32
%32 = icmp eq i32 %25, %31
%33 = zext i1 %32 to i64
%34 = select i1 %32, i32 35, i32 32
%35 = load i32, i32* %5
%36 = and i32 %35, 255
%37 = load i8*, i8** %3
%38 = load i32, i32* %5
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, i8* %37, i64 %39
%41 = load i8, i8* %40
%42 = zext i8 %41 to i32
%43 = and i32 %42, 255
%44 = load i32, i32* %5
%45 = and i32 %44, 7
%46 = icmp eq i32 %45, 7
%47 = zext i1 %46 to i64
%48 = select i1 %46, i32 10, i32 32
%49 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %34, i32 %36, i32 %43, i32 %48)
br label %50
50: ; preds = %23
%51 = load i32, i32* %5
%52 = add nsw i32 %51, 1
store i32 %52, i32* %5
br label %8
53: ; preds = %8
%54 = load i32, i32* @stderr
%55 = load i32, i32* %7
%56 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %54, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 %55)
store i32 0, i32* %5
br label %57
57: ; preds = %90, %53
%58 = load i32, i32* %5
%59 = icmp slt i32 %58, 256
br i1 %59, label %60, label %93
60: ; preds = %57
%61 = load i32, i32* @stderr
%62 = load i8*, i8** %4
%63 = load i8*, i8** %3
%64 = load i32, i32* %5
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, i8* %63, i64 %65
%67 = load i8, i8* %66
%68 = zext i8 %67 to i64
%69 = getelementptr inbounds i8, i8* %62, i64 %68
%70 = load i8, i8* %69
%71 = zext i8 %70 to i32
%72 = and i32 %71, 255
%73 = load i8*, i8** %3
%74 = load i8*, i8** %4
%75 = load i32, i32* %5
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, i8* %74, i64 %76
%78 = load i8, i8* %77
%79 = zext i8 %78 to i64
%80 = getelementptr inbounds i8, i8* %73, i64 %79
%81 = load i8, i8* %80
%82 = zext i8 %81 to i32
%83 = and i32 %82, 255
%84 = load i32, i32* %5
%85 = and i32 %84, 7
%86 = icmp eq i32 %85, 7
%87 = zext i1 %86 to i64
%88 = select i1 %86, i32 10, i32 32
%89 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %72, i32 %83, i32 %88)
br label %90
90: ; preds = %60
%91 = load i32, i32* %5
%92 = add nsw i32 %91, 1
store i32 %92, i32* %5
br label %57
93: ; preds = %57
%94 = load i32, i32* @stderr
%95 = load i32, i32* %7
%96 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %94, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 %95)
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %5
br label %99
99: ; preds = %120, %93
%100 = load i32, i32* %5
%101 = icmp slt i32 %100, 256
br i1 %101, label %102, label %123
102: ; preds = %99
%103 = load i32, i32* %5
%104 = and i32 %103, 7
%105 = icmp eq i32 %104, 0
%106 = zext i1 %105 to i64
%107 = select i1 %105, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0)
%108 = load i8*, i8** %3
%109 = load i32, i32* %5
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, i8* %108, i64 %110
%112 = load i8, i8* %111
%113 = zext i8 %112 to i32
%114 = load i32, i32* %5
%115 = and i32 %114, 7
%116 = icmp eq i32 %115, 7
%117 = zext i1 %116 to i64
%118 = select i1 %116, i32 10, i32 32
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* %107, i32 %113, i32 %118)
br label %120
120: ; preds = %102
%121 = load i32, i32* %5
%122 = add nsw i32 %121, 1
store i32 %122, i32* %5
br label %99
123: ; preds = %99
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %5
br label %128
128: ; preds = %149, %123
%129 = load i32, i32* %5
%130 = icmp slt i32 %129, 256
br i1 %130, label %131, label %152
131: ; preds = %128
%132 = load i32, i32* %5
%133 = and i32 %132, 7
%134 = icmp eq i32 %133, 0
%135 = zext i1 %134 to i64
%136 = select i1 %134, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0)
%137 = load i8*, i8** %4
%138 = load i32, i32* %5
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds i8, i8* %137, i64 %139
%141 = load i8, i8* %140
%142 = zext i8 %141 to i32
%143 = load i32, i32* %5
%144 = and i32 %143, 7
%145 = icmp eq i32 %144, 7
%146 = zext i1 %145 to i64
%147 = select i1 %145, i32 10, i32 32
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* %136, i32 %142, i32 %147)
br label %149
149: ; preds = %131
%150 = load i32, i32* %5
%151 = add nsw i32 %150, 1
store i32 %151, i32* %5
br label %128
152: ; preds = %128
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [14 x i8] c"%c%02x:%02x%c\00"
@.str.1 = [19 x i8] c"# fixed points %d\0A\00"
@.str.2 = [12 x i8] c"%02x:%02x%c\00"
@.str.5 = [12 x i8] c"%s0x%02x,%c\00"
@.str.6 = [2 x i8] c"\09\00"
@.str.7 = [1 x i8] zeroinitializer
@str = [28 x i8] c"static char myx_S_box[] = {\00"
@str.11 = [32 x i8] c"static char myx_inv_S_box[] = {\00"
@str.12 = [3 x i8] c"};\00"
define void @dump_perm(i8* nocapture %0, i8* nocapture %1) {
br label %3
3: ; preds = %2, %3
%4 = phi i64 [ 0, %2 ], [ %20, %3 ]
%5 = phi i32 [ 0, %2 ], [ %12, %3 ]
%6 = getelementptr inbounds i8, i8* %0, i64 %4
%7 = load i8, i8* %6
%8 = zext i8 %7 to i32
%9 = zext i8 %7 to i64
%10 = icmp eq i64 %4, %9
%11 = zext i1 %10 to i32
%12 = add nuw nsw i32 %5, %11
%13 = load i32, i32* @stderr
%14 = select i1 %10, i32 35, i32 32
%15 = trunc i64 %4 to i32
%16 = and i32 %15, 7
%17 = icmp eq i32 %16, 7
%18 = select i1 %17, i32 10, i32 32
%19 = tail call i32 (i32, i8*, i32, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %14, i32 %15, i32 %8, i32 %18)
%20 = add nuw nsw i64 %4, 1
%21 = icmp eq i64 %20, 256
br i1 %21, label %22, label %3
22: ; preds = %3
%23 = load i32, i32* @stderr
%24 = tail call i32 (i32, i8*, i32, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 %12)
br label %25
25: ; preds = %22, %25
%26 = phi i64 [ 0, %22 ], [ %44, %25 ]
%27 = load i32, i32* @stderr
%28 = getelementptr inbounds i8, i8* %0, i64 %26
%29 = load i8, i8* %28
%30 = zext i8 %29 to i64
%31 = getelementptr inbounds i8, i8* %1, i64 %30
%32 = load i8, i8* %31
%33 = zext i8 %32 to i32
%34 = getelementptr inbounds i8, i8* %1, i64 %26
%35 = load i8, i8* %34
%36 = zext i8 %35 to i64
%37 = getelementptr inbounds i8, i8* %0, i64 %36
%38 = load i8, i8* %37
%39 = zext i8 %38 to i32
%40 = and i64 %26, 7
%41 = icmp eq i64 %40, 7
%42 = select i1 %41, i32 10, i32 32
%43 = tail call i32 (i32, i8*, i32, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %33, i32 %39, i32 %42)
%44 = add nuw nsw i64 %26, 1
%45 = icmp eq i64 %44, 256
br i1 %45, label %46, label %25
46: ; preds = %25
%47 = load i32, i32* @stderr
%48 = tail call i32 (i32, i8*, i32, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 %12)
%49 = tail call i32 @putchar(i32 10)
%50 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str, i64 0, i64 0))
br label %51
51: ; preds = %46, %51
%52 = phi i64 [ 0, %46 ], [ %63, %51 ]
%53 = trunc i64 %52 to i32
%54 = and i32 %53, 7
%55 = icmp eq i32 %54, 0
%56 = select i1 %55, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0)
%57 = getelementptr inbounds i8, i8* %0, i64 %52
%58 = load i8, i8* %57
%59 = zext i8 %58 to i32
%60 = icmp eq i32 %54, 7
%61 = select i1 %60, i32 10, i32 32
%62 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* %56, i32 %59, i32 %61)
%63 = add nuw nsw i64 %52, 1
%64 = icmp eq i64 %63, 256
br i1 %64, label %65, label %51
65: ; preds = %51
%66 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.12, i64 0, i64 0))
%67 = tail call i32 @putchar(i32 10)
%68 = tail call i32 @putchar(i32 10)
%69 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.11, i64 0, i64 0))
br label %70
70: ; preds = %65, %70
%71 = phi i64 [ 0, %65 ], [ %82, %70 ]
%72 = trunc i64 %71 to i32
%73 = and i32 %72, 7
%74 = icmp eq i32 %73, 0
%75 = select i1 %74, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0)
%76 = getelementptr inbounds i8, i8* %1, i64 %71
%77 = load i8, i8* %76
%78 = zext i8 %77 to i32
%79 = icmp eq i32 %73, 7
%80 = select i1 %79, i32 10, i32 32
%81 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* %75, i32 %78, i32 %80)
%82 = add nuw nsw i64 %71, 1
%83 = icmp eq i64 %82, 256
br i1 %83, label %84, label %70
84: ; preds = %70
%85 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.12, i64 0, i64 0))
%86 = tail call i32 @putchar(i32 10)
ret void
}