#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*/ printf(char *, unsigned int, ...);
void print_bih(unsigned char bih[20]) {
  unsigned int xd, yd, l0;
  xd = (bih[4] << 24) | (bih[5] << 16) | (bih[6] << 8) | (bih[7] << 0);
  yd = (bih[8] << 24) | (bih[9] << 16) | (bih[10] << 8) | (bih[11] << 0);
  l0 = (bih[12] << 24) | (bih[13] << 16) | (bih[14] << 8) | (bih[15] << 0);
  printf("		DL = %d, D = %d, P = %d, - = %d, XY = %d x %d\n",
         bih[0], bih[1], bih[2], bih[3], xd, yd);
  printf("		L0 = %d, MX = %d, MY = %d\n", l0, bih[16], bih[17]);
  printf("		Order   = %d %s%s%s%s%s\n", bih[18],
         bih[18] & 0x08 ? " HITOLO" : "", bih[18] & 0x04 ? " SEQ" : "",
         bih[18] & 0x02 ? " ILEAVE" : "", bih[18] & 0x01 ? " SMID" : "",
         bih[18] & 0xf0 ? " other" : "");
  printf("		Options = %d %s%s%s%s%s%s%s%s\n", bih[19],
         bih[19] & 0x40 ? " LRLTWO" : "", bih[19] & 0x20 ? " VLENGTH" : "",
         bih[19] & 0x10 ? " TPDON" : "", bih[19] & 0x08 ? " TPBON" : "",
         bih[19] & 0x04 ? " DPON" : "", bih[19] & 0x02 ? " DPPRIV" : "",
         bih[19] & 0x01 ? " DPLAST" : "", bih[19] & 0x80 ? " other" : "");
  printf("		%u stripes, %d layers, %d planes\n",
         ((yd >> bih[1]) + ((((1UL << bih[1]) - 1) & xd) != 0) + l0 - 1) / l0,
         bih[1] - bih[0], bih[2]);
}


x86 assembly (clang, -O0):
<print_bih>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x40,%rsp
mov    %rdi,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movzbl 0x4(%rax),%eax
shl    $0x18,%eax
mov    -0x18(%rbp),%rcx
movzbl 0x5(%rcx),%ecx
shl    $0x10,%ecx
or     %ecx,%eax
mov    -0x18(%rbp),%rcx
movzbl 0x6(%rcx),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
mov    -0x18(%rbp),%rcx
movzbl 0x7(%rcx),%ecx
shl    $0x0,%ecx
or     %ecx,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rax
movzbl 0x8(%rax),%eax
shl    $0x18,%eax
mov    -0x18(%rbp),%rcx
movzbl 0x9(%rcx),%ecx
shl    $0x10,%ecx
or     %ecx,%eax
mov    -0x18(%rbp),%rcx
movzbl 0xa(%rcx),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
mov    -0x18(%rbp),%rcx
movzbl 0xb(%rcx),%ecx
shl    $0x0,%ecx
or     %ecx,%eax
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
movzbl 0xc(%rax),%eax
shl    $0x18,%eax
mov    -0x18(%rbp),%rcx
movzbl 0xd(%rcx),%ecx
shl    $0x10,%ecx
or     %ecx,%eax
mov    -0x18(%rbp),%rcx
movzbl 0xe(%rcx),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
mov    -0x18(%rbp),%rcx
movzbl 0xf(%rcx),%ecx
shl    $0x0,%ecx
or     %ecx,%eax
mov    %eax,-0x24(%rbp)
mov    -0x18(%rbp),%rax
movzbl (%rax),%esi
mov    -0x18(%rbp),%rax
movzbl 0x1(%rax),%edx
mov    -0x18(%rbp),%rax
movzbl 0x2(%rax),%ecx
mov    -0x18(%rbp),%rax
movzbl 0x3(%rax),%r8d
mov    -0x1c(%rbp),%r9d
mov    -0x20(%rbp),%eax
lea    0xe14(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%esi
mov    -0x18(%rbp),%rax
movzbl 0x10(%rax),%edx
mov    -0x18(%rbp),%rax
movzbl 0x11(%rax),%ecx
lea    0xe21(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
movzbl 0x12(%rax),%esi
mov    -0x18(%rbp),%rax
movzbl 0x12(%rax),%ecx
and    $0x8,%ecx
lea    0xe1c(%rip),%rdx
lea    0xe31(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
mov    -0x18(%rbp),%rax
movzbl 0x12(%rax),%edi
and    $0x4,%edi
lea    0xdfc(%rip),%rcx
lea    0xe19(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%rcx
mov    -0x18(%rbp),%rax
movzbl 0x12(%rax),%edi
and    $0x2,%edi
lea    0xddc(%rip),%r8
lea    0xdfe(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%r8
mov    -0x18(%rbp),%rax
movzbl 0x12(%rax),%edi
and    $0x1,%edi
lea    0xdbc(%rip),%r9
lea    0xde6(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%r9
mov    -0x18(%rbp),%rax
movzbl 0x12(%rax),%r10d
and    $0xf0,%r10d
lea    0xd97(%rip),%rax
lea    0xdc7(%rip),%rdi
cmp    $0x0,%r10d
cmovne %rdi,%rax
lea    0xd82(%rip),%rdi
mov    %rax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
movzbl 0x13(%rax),%esi
mov    -0x18(%rbp),%rax
movzbl 0x13(%rax),%ecx
and    $0x40,%ecx
lea    0xd5c(%rip),%rdx
lea    0xdb4(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
mov    -0x18(%rbp),%rax
movzbl 0x13(%rax),%edi
and    $0x20,%edi
lea    0xd3c(%rip),%rcx
lea    0xd9c(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%rcx
mov    -0x18(%rbp),%rax
movzbl 0x13(%rax),%edi
and    $0x10,%edi
lea    0xd1c(%rip),%r8
lea    0xd85(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%r8
mov    -0x18(%rbp),%rax
movzbl 0x13(%rax),%edi
and    $0x8,%edi
lea    0xcfc(%rip),%r9
lea    0xd6c(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%r9
mov    -0x18(%rbp),%rax
movzbl 0x13(%rax),%edi
and    $0x4,%edi
lea    0xcdc(%rip),%rbx
lea    0xd53(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%rbx
mov    -0x18(%rbp),%rax
movzbl 0x13(%rax),%edi
and    $0x2,%edi
lea    0xcbc(%rip),%r11
lea    0xd39(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%r11
mov    -0x18(%rbp),%rax
movzbl 0x13(%rax),%edi
and    $0x1,%edi
lea    0xc9c(%rip),%r10
lea    0xd21(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%r10
mov    -0x18(%rbp),%rax
movzbl 0x13(%rax),%r14d
and    $0x80,%r14d
lea    0xc77(%rip),%rax
lea    0xca7(%rip),%rdi
cmp    $0x0,%r14d
cmovne %rdi,%rax
lea    0xc9f(%rip),%rdi
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
mov    -0x18(%rbp),%rcx
movzbl 0x1(%rcx),%ecx
shr    %cl,%eax
mov    -0x18(%rbp),%rcx
movzbl 0x1(%rcx),%ecx
mov    %ecx,%ecx
mov    $0x1,%edx
shl    %cl,%rdx
mov    %rdx,%rcx
sub    $0x1,%rcx
mov    -0x1c(%rbp),%edx
and    %rdx,%rcx
cmp    $0x0,%rcx
setne  %cl
and    $0x1,%cl
movzbl %cl,%ecx
add    %ecx,%eax
add    -0x24(%rbp),%eax
sub    $0x1,%eax
xor    %edx,%edx
divl   -0x24(%rbp)
mov    %eax,%esi
mov    -0x18(%rbp),%rax
movzbl 0x1(%rax),%edx
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
sub    %eax,%edx
mov    -0x18(%rbp),%rax
movzbl 0x2(%rax),%ecx
lea    0xc73(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x40,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_bih>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r12
mov    0x4(%rdi),%eax
mov    0x8(%rdi),%r14d
bswap  %eax
mov    %eax,%r9d
mov    %eax,0x4(%rsp)
bswap  %r14d
mov    0xc(%rdi),%ebx
bswap  %ebx
mov    %ebx,(%rsp)
movzbl (%rdi),%esi
movzbl 0x1(%rdi),%edx
movzbl 0x2(%rdi),%ecx
movzbl 0x3(%rdi),%r8d
sub    $0x8,%rsp
lea    0xeac(%rip),%rdi
xor    %eax,%eax
push   %r14
call   1030 <printf@plt>
add    $0x10,%rsp
movzbl 0x10(%r12),%edx
movzbl 0x11(%r12),%ecx
lea    0xebd(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movzbl 0x12(%r12),%esi
test   $0x8,%sil
lea    0xebf(%rip),%r15
lea    0xed4(%rip),%rdx
cmove  %r15,%rdx
test   $0x4,%sil
lea    0xecd(%rip),%rcx
cmove  %r15,%rcx
test   $0x2,%sil
lea    0xec3(%rip),%r8
cmove  %r15,%r8
test   $0x1,%sil
lea    0xebc(%rip),%r9
cmove  %r15,%r9
test   $0xf0,%sil
lea    0xeb3(%rip),%r13
mov    %r13,%rbp
cmove  %r15,%rbp
sub    $0x8,%rsp
lea    0xe6b(%rip),%rdi
xor    %eax,%eax
push   %rbp
call   1030 <printf@plt>
add    $0x10,%rsp
movzbl 0x13(%r12),%esi
test   $0x40,%sil
lea    0xeac(%rip),%rdx
cmove  %r15,%rdx
test   $0x20,%sil
lea    0xea5(%rip),%rcx
cmove  %r15,%rcx
test   $0x10,%sil
lea    0xe9f(%rip),%r8
cmove  %r15,%r8
test   $0x8,%sil
lea    0xe97(%rip),%r9
cmove  %r15,%r9
test   $0x4,%sil
lea    0xe8f(%rip),%r10
cmove  %r15,%r10
test   $0x2,%sil
lea    0xe86(%rip),%rbp
cmove  %r15,%rbp
test   $0x1,%sil
lea    0xe7f(%rip),%rbx
cmove  %r15,%rbx
test   $0x80,%sil
cmove  %r15,%r13
lea    0xe1e(%rip),%rdi
xor    %eax,%eax
push   %r13
push   %rbx
push   %rbp
push   %r10
call   1030 <printf@plt>
add    $0x20,%rsp
movzbl 0x1(%r12),%ecx
shr    %cl,%r14d
mov    $0xffffffffffffffff,%rax
shl    %cl,%rax
not    %eax
and    0x4(%rsp),%eax
mov    (%rsp),%esi
add    %esi,%r14d
cmp    $0x1,%eax
sbb    $0xffffffff,%r14d
add    $0xffffffff,%r14d
mov    %r14d,%eax
xor    %edx,%edx
div    %esi
movzbl (%r12),%edx
sub    %edx,%ecx
movzbl 0x2(%r12),%ebp
lea    0xe1e(%rip),%rdi
mov    %eax,%esi
mov    %ecx,%edx
mov    %ebp,%ecx
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [49 x i8] c"\09\09DL = %d, D = %d, P = %d, - = %d, XY = %d x %d\0A\00"
@.str.1 = [29 x i8] c"\09\09L0 = %d, MX = %d, MY = %d\0A\00"
@.str.2 = [27 x i8] c"\09\09Order = %d %s%s%s%s%s\0A\00"
@.str.3 = [8 x i8] c" HITOLO\00"
@.str.4 = [1 x i8] zeroinitializer
@.str.5 = [5 x i8] c" SEQ\00"
@.str.6 = [8 x i8] c" ILEAVE\00"
@.str.7 = [6 x i8] c" SMID\00"
@.str.8 = [7 x i8] c" other\00"
@.str.9 = [33 x i8] c"\09\09Options = %d %s%s%s%s%s%s%s%s\0A\00"
@.str.10 = [8 x i8] c" LRLTWO\00"
@.str.11 = [9 x i8] c" VLENGTH\00"
@.str.12 = [7 x i8] c" TPDON\00"
@.str.13 = [7 x i8] c" TPBON\00"
@.str.14 = [6 x i8] c" DPON\00"
@.str.15 = [8 x i8] c" DPPRIV\00"
@.str.16 = [8 x i8] c" DPLAST\00"
@.str.17 = [36 x i8] c"\09\09%u stripes, %d layers, %d planes\0A\00"
define void @print_bih(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i8* %0, i8** %2
%6 = load i8*, i8** %2
%7 = getelementptr inbounds i8, i8* %6, i64 4
%8 = load i8, i8* %7
%9 = zext i8 %8 to i32
%10 = shl i32 %9, 24
%11 = load i8*, i8** %2
%12 = getelementptr inbounds i8, i8* %11, i64 5
%13 = load i8, i8* %12
%14 = zext i8 %13 to i32
%15 = shl i32 %14, 16
%16 = or i32 %10, %15
%17 = load i8*, i8** %2
%18 = getelementptr inbounds i8, i8* %17, i64 6
%19 = load i8, i8* %18
%20 = zext i8 %19 to i32
%21 = shl i32 %20, 8
%22 = or i32 %16, %21
%23 = load i8*, i8** %2
%24 = getelementptr inbounds i8, i8* %23, i64 7
%25 = load i8, i8* %24
%26 = zext i8 %25 to i32
%27 = shl i32 %26, 0
%28 = or i32 %22, %27
store i32 %28, i32* %3
%29 = load i8*, i8** %2
%30 = getelementptr inbounds i8, i8* %29, i64 8
%31 = load i8, i8* %30
%32 = zext i8 %31 to i32
%33 = shl i32 %32, 24
%34 = load i8*, i8** %2
%35 = getelementptr inbounds i8, i8* %34, i64 9
%36 = load i8, i8* %35
%37 = zext i8 %36 to i32
%38 = shl i32 %37, 16
%39 = or i32 %33, %38
%40 = load i8*, i8** %2
%41 = getelementptr inbounds i8, i8* %40, i64 10
%42 = load i8, i8* %41
%43 = zext i8 %42 to i32
%44 = shl i32 %43, 8
%45 = or i32 %39, %44
%46 = load i8*, i8** %2
%47 = getelementptr inbounds i8, i8* %46, i64 11
%48 = load i8, i8* %47
%49 = zext i8 %48 to i32
%50 = shl i32 %49, 0
%51 = or i32 %45, %50
store i32 %51, i32* %4
%52 = load i8*, i8** %2
%53 = getelementptr inbounds i8, i8* %52, i64 12
%54 = load i8, i8* %53
%55 = zext i8 %54 to i32
%56 = shl i32 %55, 24
%57 = load i8*, i8** %2
%58 = getelementptr inbounds i8, i8* %57, i64 13
%59 = load i8, i8* %58
%60 = zext i8 %59 to i32
%61 = shl i32 %60, 16
%62 = or i32 %56, %61
%63 = load i8*, i8** %2
%64 = getelementptr inbounds i8, i8* %63, i64 14
%65 = load i8, i8* %64
%66 = zext i8 %65 to i32
%67 = shl i32 %66, 8
%68 = or i32 %62, %67
%69 = load i8*, i8** %2
%70 = getelementptr inbounds i8, i8* %69, i64 15
%71 = load i8, i8* %70
%72 = zext i8 %71 to i32
%73 = shl i32 %72, 0
%74 = or i32 %68, %73
store i32 %74, i32* %5
%75 = load i8*, i8** %2
%76 = getelementptr inbounds i8, i8* %75, i64 0
%77 = load i8, i8* %76
%78 = zext i8 %77 to i32
%79 = load i8*, i8** %2
%80 = getelementptr inbounds i8, i8* %79, i64 1
%81 = load i8, i8* %80
%82 = zext i8 %81 to i32
%83 = load i8*, i8** %2
%84 = getelementptr inbounds i8, i8* %83, i64 2
%85 = load i8, i8* %84
%86 = zext i8 %85 to i32
%87 = load i8*, i8** %2
%88 = getelementptr inbounds i8, i8* %87, i64 3
%89 = load i8, i8* %88
%90 = zext i8 %89 to i32
%91 = load i32, i32* %3
%92 = load i32, i32* %4
%93 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 %78, i32 %82, i32 %86, i32 %90, i32 %91, i32 %92)
%94 = load i32, i32* %5
%95 = load i8*, i8** %2
%96 = getelementptr inbounds i8, i8* %95, i64 16
%97 = load i8, i8* %96
%98 = zext i8 %97 to i32
%99 = load i8*, i8** %2
%100 = getelementptr inbounds i8, i8* %99, i64 17
%101 = load i8, i8* %100
%102 = zext i8 %101 to i32
%103 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %94, i32 %98, i32 %102)
%104 = load i8*, i8** %2
%105 = getelementptr inbounds i8, i8* %104, i64 18
%106 = load i8, i8* %105
%107 = zext i8 %106 to i32
%108 = load i8*, i8** %2
%109 = getelementptr inbounds i8, i8* %108, i64 18
%110 = load i8, i8* %109
%111 = zext i8 %110 to i32
%112 = and i32 %111, 8
%113 = icmp ne i32 %112, 0
%114 = zext i1 %113 to i64
%115 = select i1 %113, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%116 = load i8*, i8** %2
%117 = getelementptr inbounds i8, i8* %116, i64 18
%118 = load i8, i8* %117
%119 = zext i8 %118 to i32
%120 = and i32 %119, 4
%121 = icmp ne i32 %120, 0
%122 = zext i1 %121 to i64
%123 = select i1 %121, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%124 = load i8*, i8** %2
%125 = getelementptr inbounds i8, i8* %124, i64 18
%126 = load i8, i8* %125
%127 = zext i8 %126 to i32
%128 = and i32 %127, 2
%129 = icmp ne i32 %128, 0
%130 = zext i1 %129 to i64
%131 = select i1 %129, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%132 = load i8*, i8** %2
%133 = getelementptr inbounds i8, i8* %132, i64 18
%134 = load i8, i8* %133
%135 = zext i8 %134 to i32
%136 = and i32 %135, 1
%137 = icmp ne i32 %136, 0
%138 = zext i1 %137 to i64
%139 = select i1 %137, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%140 = load i8*, i8** %2
%141 = getelementptr inbounds i8, i8* %140, i64 18
%142 = load i8, i8* %141
%143 = zext i8 %142 to i32
%144 = and i32 %143, 240
%145 = icmp ne i32 %144, 0
%146 = zext i1 %145 to i64
%147 = select i1 %145, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%148 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %107, i8* %115, i8* %123, i8* %131, i8* %139, i8* %147)
%149 = load i8*, i8** %2
%150 = getelementptr inbounds i8, i8* %149, i64 19
%151 = load i8, i8* %150
%152 = zext i8 %151 to i32
%153 = load i8*, i8** %2
%154 = getelementptr inbounds i8, i8* %153, i64 19
%155 = load i8, i8* %154
%156 = zext i8 %155 to i32
%157 = and i32 %156, 64
%158 = icmp ne i32 %157, 0
%159 = zext i1 %158 to i64
%160 = select i1 %158, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%161 = load i8*, i8** %2
%162 = getelementptr inbounds i8, i8* %161, i64 19
%163 = load i8, i8* %162
%164 = zext i8 %163 to i32
%165 = and i32 %164, 32
%166 = icmp ne i32 %165, 0
%167 = zext i1 %166 to i64
%168 = select i1 %166, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%169 = load i8*, i8** %2
%170 = getelementptr inbounds i8, i8* %169, i64 19
%171 = load i8, i8* %170
%172 = zext i8 %171 to i32
%173 = and i32 %172, 16
%174 = icmp ne i32 %173, 0
%175 = zext i1 %174 to i64
%176 = select i1 %174, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%177 = load i8*, i8** %2
%178 = getelementptr inbounds i8, i8* %177, i64 19
%179 = load i8, i8* %178
%180 = zext i8 %179 to i32
%181 = and i32 %180, 8
%182 = icmp ne i32 %181, 0
%183 = zext i1 %182 to i64
%184 = select i1 %182, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%185 = load i8*, i8** %2
%186 = getelementptr inbounds i8, i8* %185, i64 19
%187 = load i8, i8* %186
%188 = zext i8 %187 to i32
%189 = and i32 %188, 4
%190 = icmp ne i32 %189, 0
%191 = zext i1 %190 to i64
%192 = select i1 %190, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%193 = load i8*, i8** %2
%194 = getelementptr inbounds i8, i8* %193, i64 19
%195 = load i8, i8* %194
%196 = zext i8 %195 to i32
%197 = and i32 %196, 2
%198 = icmp ne i32 %197, 0
%199 = zext i1 %198 to i64
%200 = select i1 %198, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%201 = load i8*, i8** %2
%202 = getelementptr inbounds i8, i8* %201, i64 19
%203 = load i8, i8* %202
%204 = zext i8 %203 to i32
%205 = and i32 %204, 1
%206 = icmp ne i32 %205, 0
%207 = zext i1 %206 to i64
%208 = select i1 %206, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%209 = load i8*, i8** %2
%210 = getelementptr inbounds i8, i8* %209, i64 19
%211 = load i8, i8* %210
%212 = zext i8 %211 to i32
%213 = and i32 %212, 128
%214 = icmp ne i32 %213, 0
%215 = zext i1 %214 to i64
%216 = select i1 %214, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%217 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i32 %152, i8* %160, i8* %168, i8* %176, i8* %184, i8* %192, i8* %200, i8* %208, i8* %216)
%218 = load i32, i32* %4
%219 = load i8*, i8** %2
%220 = getelementptr inbounds i8, i8* %219, i64 1
%221 = load i8, i8* %220
%222 = zext i8 %221 to i32
%223 = lshr i32 %218, %222
%224 = load i8*, i8** %2
%225 = getelementptr inbounds i8, i8* %224, i64 1
%226 = load i8, i8* %225
%227 = zext i8 %226 to i32
%228 = zext i32 %227 to i64
%229 = shl i64 1, %228
%230 = sub i64 %229, 1
%231 = load i32, i32* %3
%232 = zext i32 %231 to i64
%233 = and i64 %230, %232
%234 = icmp ne i64 %233, 0
%235 = zext i1 %234 to i32
%236 = add i32 %223, %235
%237 = load i32, i32* %5
%238 = add i32 %236, %237
%239 = sub i32 %238, 1
%240 = load i32, i32* %5
%241 = udiv i32 %239, %240
%242 = load i8*, i8** %2
%243 = getelementptr inbounds i8, i8* %242, i64 1
%244 = load i8, i8* %243
%245 = zext i8 %244 to i32
%246 = load i8*, i8** %2
%247 = getelementptr inbounds i8, i8* %246, i64 0
%248 = load i8, i8* %247
%249 = zext i8 %248 to i32
%250 = sub nsw i32 %245, %249
%251 = load i8*, i8** %2
%252 = getelementptr inbounds i8, i8* %251, i64 2
%253 = load i8, i8* %252
%254 = zext i8 %253 to i32
%255 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0), i32 %241, i32 %250, i32 %254)
ret void
}

LLVM IR (-O2):
@.str = [49 x i8] c"\09\09DL = %d, D = %d, P = %d, - = %d, XY = %d x %d\0A\00"
@.str.1 = [29 x i8] c"\09\09L0 = %d, MX = %d, MY = %d\0A\00"
@.str.2 = [27 x i8] c"\09\09Order = %d %s%s%s%s%s\0A\00"
@.str.3 = [8 x i8] c" HITOLO\00"
@.str.4 = [1 x i8] zeroinitializer
@.str.5 = [5 x i8] c" SEQ\00"
@.str.6 = [8 x i8] c" ILEAVE\00"
@.str.7 = [6 x i8] c" SMID\00"
@.str.8 = [7 x i8] c" other\00"
@.str.9 = [33 x i8] c"\09\09Options = %d %s%s%s%s%s%s%s%s\0A\00"
@.str.10 = [8 x i8] c" LRLTWO\00"
@.str.11 = [9 x i8] c" VLENGTH\00"
@.str.12 = [7 x i8] c" TPDON\00"
@.str.13 = [7 x i8] c" TPBON\00"
@.str.14 = [6 x i8] c" DPON\00"
@.str.15 = [8 x i8] c" DPPRIV\00"
@.str.16 = [8 x i8] c" DPLAST\00"
@.str.17 = [36 x i8] c"\09\09%u stripes, %d layers, %d planes\0A\00"
define void @print_bih(i8* %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 4
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
%5 = shl nuw i32 %4, 24
%6 = getelementptr inbounds i8, i8* %0, i64 5
%7 = load i8, i8* %6
%8 = zext i8 %7 to i32
%9 = shl nuw nsw i32 %8, 16
%10 = or i32 %9, %5
%11 = getelementptr inbounds i8, i8* %0, i64 6
%12 = load i8, i8* %11
%13 = zext i8 %12 to i32
%14 = shl nuw nsw i32 %13, 8
%15 = or i32 %10, %14
%16 = getelementptr inbounds i8, i8* %0, i64 7
%17 = load i8, i8* %16
%18 = zext i8 %17 to i32
%19 = or i32 %15, %18
%20 = getelementptr inbounds i8, i8* %0, i64 8
%21 = load i8, i8* %20
%22 = zext i8 %21 to i32
%23 = shl nuw i32 %22, 24
%24 = getelementptr inbounds i8, i8* %0, i64 9
%25 = load i8, i8* %24
%26 = zext i8 %25 to i32
%27 = shl nuw nsw i32 %26, 16
%28 = or i32 %27, %23
%29 = getelementptr inbounds i8, i8* %0, i64 10
%30 = load i8, i8* %29
%31 = zext i8 %30 to i32
%32 = shl nuw nsw i32 %31, 8
%33 = or i32 %28, %32
%34 = getelementptr inbounds i8, i8* %0, i64 11
%35 = load i8, i8* %34
%36 = zext i8 %35 to i32
%37 = or i32 %33, %36
%38 = getelementptr inbounds i8, i8* %0, i64 12
%39 = load i8, i8* %38
%40 = zext i8 %39 to i32
%41 = shl nuw i32 %40, 24
%42 = getelementptr inbounds i8, i8* %0, i64 13
%43 = load i8, i8* %42
%44 = zext i8 %43 to i32
%45 = shl nuw nsw i32 %44, 16
%46 = or i32 %45, %41
%47 = getelementptr inbounds i8, i8* %0, i64 14
%48 = load i8, i8* %47
%49 = zext i8 %48 to i32
%50 = shl nuw nsw i32 %49, 8
%51 = or i32 %46, %50
%52 = getelementptr inbounds i8, i8* %0, i64 15
%53 = load i8, i8* %52
%54 = zext i8 %53 to i32
%55 = or i32 %51, %54
%56 = load i8, i8* %0
%57 = zext i8 %56 to i32
%58 = getelementptr inbounds i8, i8* %0, i64 1
%59 = load i8, i8* %58
%60 = zext i8 %59 to i32
%61 = getelementptr inbounds i8, i8* %0, i64 2
%62 = load i8, i8* %61
%63 = zext i8 %62 to i32
%64 = getelementptr inbounds i8, i8* %0, i64 3
%65 = load i8, i8* %64
%66 = zext i8 %65 to i32
%67 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 %57, i32 %60, i32 %63, i32 %66, i32 %19, i32 %37)
%68 = getelementptr inbounds i8, i8* %0, i64 16
%69 = load i8, i8* %68
%70 = zext i8 %69 to i32
%71 = getelementptr inbounds i8, i8* %0, i64 17
%72 = load i8, i8* %71
%73 = zext i8 %72 to i32
%74 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %55, i32 %70, i32 %73)
%75 = getelementptr inbounds i8, i8* %0, i64 18
%76 = load i8, i8* %75
%77 = zext i8 %76 to i32
%78 = and i32 %77, 8
%79 = icmp eq i32 %78, 0
%80 = select i1 %79, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0)
%81 = and i32 %77, 4
%82 = icmp eq i32 %81, 0
%83 = select i1 %82, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0)
%84 = and i32 %77, 2
%85 = icmp eq i32 %84, 0
%86 = select i1 %85, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0)
%87 = and i32 %77, 1
%88 = icmp eq i32 %87, 0
%89 = select i1 %88, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0)
%90 = and i32 %77, 240
%91 = icmp eq i32 %90, 0
%92 = select i1 %91, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0)
%93 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %77, i8* %80, i8* %83, i8* %86, i8* %89, i8* %92)
%94 = getelementptr inbounds i8, i8* %0, i64 19
%95 = load i8, i8* %94
%96 = zext i8 %95 to i32
%97 = and i32 %96, 64
%98 = icmp eq i32 %97, 0
%99 = select i1 %98, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0)
%100 = and i32 %96, 32
%101 = icmp eq i32 %100, 0
%102 = select i1 %101, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0)
%103 = and i32 %96, 16
%104 = icmp eq i32 %103, 0
%105 = select i1 %104, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0)
%106 = and i32 %96, 8
%107 = icmp eq i32 %106, 0
%108 = select i1 %107, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0)
%109 = and i32 %96, 4
%110 = icmp eq i32 %109, 0
%111 = select i1 %110, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0)
%112 = and i32 %96, 2
%113 = icmp eq i32 %112, 0
%114 = select i1 %113, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0)
%115 = and i32 %96, 1
%116 = icmp eq i32 %115, 0
%117 = select i1 %116, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0)
%118 = and i32 %96, 128
%119 = icmp eq i32 %118, 0
%120 = select i1 %119, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0)
%121 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i32 %96, i8* %99, i8* %102, i8* %105, i8* %108, i8* %111, i8* %114, i8* %117, i8* %120)
%122 = load i8, i8* %58
%123 = zext i8 %122 to i32
%124 = lshr i32 %37, %123
%125 = zext i8 %122 to i64
%126 = shl nsw i64 -1, %125
%127 = xor i64 %126, -1
%128 = zext i32 %19 to i64
%129 = and i64 %127, %128
%130 = icmp ne i64 %129, 0
%131 = zext i1 %130 to i32
%132 = add i32 %55, -1
%133 = add i32 %132, %124
%134 = add i32 %133, %131
%135 = udiv i32 %134, %55
%136 = load i8, i8* %0
%137 = zext i8 %136 to i32
%138 = sub nsw i32 %123, %137
%139 = load i8, i8* %61
%140 = zext i8 %139 to i32
%141 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0), i32 %135, i32 %138, i32 %140)
ret void
}