#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, "
         "%s\n",
         bih[0], bih[1], bih[2], bih[3], xd, yd,
         (xd % 256) ? "*** xd%256 != 0!" : "");
  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),%r10d
mov    -0x1c(%rbp),%r11d
and    $0xff,%r11d
lea    0xe6a(%rip),%rax
lea    0xe36(%rip),%rdi
cmp    $0x0,%r11d
cmovne %rdi,%rax
lea    0xdf2(%rip),%rdi
mov    %r10d,(%rsp)
mov    %rax,0x8(%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    0xe0e(%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    0xe09(%rip),%rdx
lea    0xe1e(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
mov    -0x18(%rbp),%rax
movzbl 0x12(%rax),%edi
and    $0x4,%edi
lea    0xde9(%rip),%rcx
lea    0xe06(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%rcx
mov    -0x18(%rbp),%rax
movzbl 0x12(%rax),%edi
and    $0x2,%edi
lea    0xdc9(%rip),%r8
lea    0xdeb(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%r8
mov    -0x18(%rbp),%rax
movzbl 0x12(%rax),%edi
and    $0x1,%edi
lea    0xda9(%rip),%r9
lea    0xdd3(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%r9
mov    -0x18(%rbp),%rax
movzbl 0x12(%rax),%r10d
and    $0xf0,%r10d
lea    0xd84(%rip),%rax
lea    0xdb4(%rip),%rdi
cmp    $0x0,%r10d
cmovne %rdi,%rax
lea    0xd6f(%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    0xd49(%rip),%rdx
lea    0xda1(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
mov    -0x18(%rbp),%rax
movzbl 0x13(%rax),%edi
and    $0x20,%edi
lea    0xd29(%rip),%rcx
lea    0xd89(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%rcx
mov    -0x18(%rbp),%rax
movzbl 0x13(%rax),%edi
and    $0x10,%edi
lea    0xd09(%rip),%r8
lea    0xd72(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%r8
mov    -0x18(%rbp),%rax
movzbl 0x13(%rax),%edi
and    $0x8,%edi
lea    0xce9(%rip),%r9
lea    0xd59(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%r9
mov    -0x18(%rbp),%rax
movzbl 0x13(%rax),%edi
and    $0x4,%edi
lea    0xcc9(%rip),%rbx
lea    0xd40(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%rbx
mov    -0x18(%rbp),%rax
movzbl 0x13(%rax),%edi
and    $0x2,%edi
lea    0xca9(%rip),%r11
lea    0xd26(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%r11
mov    -0x18(%rbp),%rax
movzbl 0x13(%rax),%edi
and    $0x1,%edi
lea    0xc89(%rip),%r10
lea    0xd0e(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%r10
mov    -0x18(%rbp),%rax
movzbl 0x13(%rax),%r14d
and    $0x80,%r14d
lea    0xc64(%rip),%rax
lea    0xc94(%rip),%rdi
cmp    $0x0,%r14d
cmovne %rdi,%rax
lea    0xc8c(%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    0xc60(%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,%rbx
movzbl 0x4(%rdi),%eax
shl    $0x18,%eax
movzbl 0x5(%rdi),%ecx
shl    $0x10,%ecx
or     %eax,%ecx
movzbl 0x6(%rdi),%r15d
shl    $0x8,%r15d
or     %ecx,%r15d
movzbl 0x7(%rdi),%eax
or     %eax,%r15d
test   %eax,%eax
mov    0x8(%rdi),%r14d
mov    0xc(%rdi),%r13d
bswap  %r14d
bswap  %r13d
mov    %r13d,0x4(%rsp)
movzbl (%rdi),%esi
movzbl 0x1(%rdi),%edx
movzbl 0x2(%rdi),%ecx
movzbl 0x3(%rdi),%r8d
lea    0xef5(%rip),%r12
lea    0xec1(%rip),%rbp
cmove  %r12,%rbp
lea    0xe81(%rip),%rdi
mov    %r15d,%r9d
xor    %eax,%eax
push   %rbp
push   %r14
call   1030 <printf@plt>
add    $0x10,%rsp
movzbl 0x10(%rbx),%edx
movzbl 0x11(%rbx),%ecx
lea    0xea7(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movzbl 0x12(%rbx),%esi
test   $0x8,%sil
lea    0xec6(%rip),%rdx
cmove  %r12,%rdx
test   $0x4,%sil
lea    0xebf(%rip),%rcx
cmove  %r12,%rcx
test   $0x2,%sil
lea    0xeb5(%rip),%r8
cmove  %r12,%r8
test   $0x1,%sil
lea    0xeae(%rip),%r9
cmove  %r12,%r9
test   $0xf0,%sil
lea    0xea5(%rip),%r13
mov    %r13,%rbp
cmove  %r12,%rbp
sub    $0x8,%rsp
lea    0xe5d(%rip),%rdi
xor    %eax,%eax
push   %rbp
call   1030 <printf@plt>
add    $0x10,%rsp
movzbl 0x13(%rbx),%esi
test   $0x40,%sil
lea    0xea0(%rip),%rdx
cmove  %r12,%rdx
test   $0x20,%sil
lea    0xe99(%rip),%rcx
cmove  %r12,%rcx
test   $0x10,%sil
lea    0xe93(%rip),%r8
cmove  %r12,%r8
test   $0x8,%sil
lea    0xe8b(%rip),%r9
cmove  %r12,%r9
test   $0x4,%sil
lea    0xe83(%rip),%r10
cmove  %r12,%r10
test   $0x2,%sil
lea    0xe7a(%rip),%r11
cmove  %r12,%r11
test   $0x1,%sil
lea    0xe73(%rip),%rbp
cmove  %r12,%rbp
test   $0x80,%sil
cmove  %r12,%r13
lea    0xe12(%rip),%rdi
xor    %eax,%eax
push   %r13
push   %rbp
push   %r11
push   %r10
call   1030 <printf@plt>
add    $0x20,%rsp
movzbl 0x1(%rbx),%ecx
shr    %cl,%r14d
mov    $0xffffffffffffffff,%rax
shl    %cl,%rax
not    %eax
and    %r15d,%eax
mov    0x4(%rsp),%esi
add    %esi,%r14d
cmp    $0x1,%eax
sbb    $0xffffffff,%r14d
add    $0xffffffff,%r14d
mov    %r14d,%eax
xor    %edx,%edx
div    %esi
movzbl (%rbx),%edx
sub    %edx,%ecx
movzbl 0x2(%rbx),%ebp
lea    0xe17(%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 = [53 x i8] c"\09\09DL = %d, D = %d, P = %d, - = %d, XY = %d x %d, %s\0A\00"
@.str.1 = [17 x i8] c"*** xd%256 != 0!\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [29 x i8] c"\09\09L0 = %d, MX = %d, MY = %d\0A\00"
@.str.4 = [27 x i8] c"\09\09Order = %d %s%s%s%s%s\0A\00"
@.str.5 = [8 x i8] c" HITOLO\00"
@.str.6 = [5 x i8] c" SEQ\00"
@.str.7 = [8 x i8] c" ILEAVE\00"
@.str.8 = [6 x i8] c" SMID\00"
@.str.9 = [7 x i8] c" other\00"
@.str.10 = [33 x i8] c"\09\09Options = %d %s%s%s%s%s%s%s%s\0A\00"
@.str.11 = [8 x i8] c" LRLTWO\00"
@.str.12 = [9 x i8] c" VLENGTH\00"
@.str.13 = [7 x i8] c" TPDON\00"
@.str.14 = [7 x i8] c" TPBON\00"
@.str.15 = [6 x i8] c" DPON\00"
@.str.16 = [8 x i8] c" DPPRIV\00"
@.str.17 = [8 x i8] c" DPLAST\00"
@.str.18 = [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 = load i32, i32* %3
%94 = urem i32 %93, 256
%95 = icmp ne i32 %94, 0
%96 = zext i1 %95 to i64
%97 = select i1 %95, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%98 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), i32 %78, i32 %82, i32 %86, i32 %90, i32 %91, i32 %92, i8* %97)
%99 = load i32, i32* %5
%100 = load i8*, i8** %2
%101 = getelementptr inbounds i8, i8* %100, i64 16
%102 = load i8, i8* %101
%103 = zext i8 %102 to i32
%104 = load i8*, i8** %2
%105 = getelementptr inbounds i8, i8* %104, i64 17
%106 = load i8, i8* %105
%107 = zext i8 %106 to i32
%108 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %99, i32 %103, i32 %107)
%109 = load i8*, i8** %2
%110 = getelementptr inbounds i8, i8* %109, i64 18
%111 = load i8, i8* %110
%112 = zext i8 %111 to i32
%113 = load i8*, i8** %2
%114 = getelementptr inbounds i8, i8* %113, i64 18
%115 = load i8, i8* %114
%116 = zext i8 %115 to i32
%117 = and i32 %116, 8
%118 = icmp ne i32 %117, 0
%119 = zext i1 %118 to i64
%120 = select i1 %118, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%121 = load i8*, i8** %2
%122 = getelementptr inbounds i8, i8* %121, i64 18
%123 = load i8, i8* %122
%124 = zext i8 %123 to i32
%125 = and i32 %124, 4
%126 = icmp ne i32 %125, 0
%127 = zext i1 %126 to i64
%128 = select i1 %126, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%129 = load i8*, i8** %2
%130 = getelementptr inbounds i8, i8* %129, i64 18
%131 = load i8, i8* %130
%132 = zext i8 %131 to i32
%133 = and i32 %132, 2
%134 = icmp ne i32 %133, 0
%135 = zext i1 %134 to i64
%136 = select i1 %134, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%137 = load i8*, i8** %2
%138 = getelementptr inbounds i8, i8* %137, i64 18
%139 = load i8, i8* %138
%140 = zext i8 %139 to i32
%141 = and i32 %140, 1
%142 = icmp ne i32 %141, 0
%143 = zext i1 %142 to i64
%144 = select i1 %142, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%145 = load i8*, i8** %2
%146 = getelementptr inbounds i8, i8* %145, i64 18
%147 = load i8, i8* %146
%148 = zext i8 %147 to i32
%149 = and i32 %148, 240
%150 = icmp ne i32 %149, 0
%151 = zext i1 %150 to i64
%152 = select i1 %150, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%153 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i32 %112, i8* %120, i8* %128, i8* %136, i8* %144, i8* %152)
%154 = load i8*, i8** %2
%155 = getelementptr inbounds i8, i8* %154, i64 19
%156 = load i8, i8* %155
%157 = zext i8 %156 to i32
%158 = load i8*, i8** %2
%159 = getelementptr inbounds i8, i8* %158, i64 19
%160 = load i8, i8* %159
%161 = zext i8 %160 to i32
%162 = and i32 %161, 64
%163 = icmp ne i32 %162, 0
%164 = zext i1 %163 to i64
%165 = select i1 %163, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%166 = load i8*, i8** %2
%167 = getelementptr inbounds i8, i8* %166, i64 19
%168 = load i8, i8* %167
%169 = zext i8 %168 to i32
%170 = and i32 %169, 32
%171 = icmp ne i32 %170, 0
%172 = zext i1 %171 to i64
%173 = select i1 %171, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%174 = load i8*, i8** %2
%175 = getelementptr inbounds i8, i8* %174, i64 19
%176 = load i8, i8* %175
%177 = zext i8 %176 to i32
%178 = and i32 %177, 16
%179 = icmp ne i32 %178, 0
%180 = zext i1 %179 to i64
%181 = select i1 %179, 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.2, i64 0, i64 0)
%182 = load i8*, i8** %2
%183 = getelementptr inbounds i8, i8* %182, i64 19
%184 = load i8, i8* %183
%185 = zext i8 %184 to i32
%186 = and i32 %185, 8
%187 = icmp ne i32 %186, 0
%188 = zext i1 %187 to i64
%189 = select i1 %187, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%190 = load i8*, i8** %2
%191 = getelementptr inbounds i8, i8* %190, i64 19
%192 = load i8, i8* %191
%193 = zext i8 %192 to i32
%194 = and i32 %193, 4
%195 = icmp ne i32 %194, 0
%196 = zext i1 %195 to i64
%197 = select i1 %195, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%198 = load i8*, i8** %2
%199 = getelementptr inbounds i8, i8* %198, i64 19
%200 = load i8, i8* %199
%201 = zext i8 %200 to i32
%202 = and i32 %201, 2
%203 = icmp ne i32 %202, 0
%204 = zext i1 %203 to i64
%205 = select i1 %203, 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.2, i64 0, i64 0)
%206 = load i8*, i8** %2
%207 = getelementptr inbounds i8, i8* %206, i64 19
%208 = load i8, i8* %207
%209 = zext i8 %208 to i32
%210 = and i32 %209, 1
%211 = icmp ne i32 %210, 0
%212 = zext i1 %211 to i64
%213 = select i1 %211, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%214 = load i8*, i8** %2
%215 = getelementptr inbounds i8, i8* %214, i64 19
%216 = load i8, i8* %215
%217 = zext i8 %216 to i32
%218 = and i32 %217, 128
%219 = icmp ne i32 %218, 0
%220 = zext i1 %219 to i64
%221 = select i1 %219, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%222 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0), i32 %157, i8* %165, i8* %173, i8* %181, i8* %189, i8* %197, i8* %205, i8* %213, i8* %221)
%223 = load i32, i32* %4
%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 = lshr i32 %223, %227
%229 = load i8*, i8** %2
%230 = getelementptr inbounds i8, i8* %229, i64 1
%231 = load i8, i8* %230
%232 = zext i8 %231 to i32
%233 = zext i32 %232 to i64
%234 = shl i64 1, %233
%235 = sub i64 %234, 1
%236 = load i32, i32* %3
%237 = zext i32 %236 to i64
%238 = and i64 %235, %237
%239 = icmp ne i64 %238, 0
%240 = zext i1 %239 to i32
%241 = add i32 %228, %240
%242 = load i32, i32* %5
%243 = add i32 %241, %242
%244 = sub i32 %243, 1
%245 = load i32, i32* %5
%246 = udiv i32 %244, %245
%247 = load i8*, i8** %2
%248 = getelementptr inbounds i8, i8* %247, i64 1
%249 = load i8, i8* %248
%250 = zext i8 %249 to i32
%251 = load i8*, i8** %2
%252 = getelementptr inbounds i8, i8* %251, i64 0
%253 = load i8, i8* %252
%254 = zext i8 %253 to i32
%255 = sub nsw i32 %250, %254
%256 = load i8*, i8** %2
%257 = getelementptr inbounds i8, i8* %256, i64 2
%258 = load i8, i8* %257
%259 = zext i8 %258 to i32
%260 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.18, i64 0, i64 0), i32 %246, i32 %255, i32 %259)
ret void
}

LLVM IR (-O2):
@.str = [53 x i8] c"\09\09DL = %d, D = %d, P = %d, - = %d, XY = %d x %d, %s\0A\00"
@.str.1 = [17 x i8] c"*** xd%256 != 0!\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [29 x i8] c"\09\09L0 = %d, MX = %d, MY = %d\0A\00"
@.str.4 = [27 x i8] c"\09\09Order = %d %s%s%s%s%s\0A\00"
@.str.5 = [8 x i8] c" HITOLO\00"
@.str.6 = [5 x i8] c" SEQ\00"
@.str.7 = [8 x i8] c" ILEAVE\00"
@.str.8 = [6 x i8] c" SMID\00"
@.str.9 = [7 x i8] c" other\00"
@.str.10 = [33 x i8] c"\09\09Options = %d %s%s%s%s%s%s%s%s\0A\00"
@.str.11 = [8 x i8] c" LRLTWO\00"
@.str.12 = [9 x i8] c" VLENGTH\00"
@.str.13 = [7 x i8] c" TPDON\00"
@.str.14 = [7 x i8] c" TPBON\00"
@.str.15 = [6 x i8] c" DPON\00"
@.str.16 = [8 x i8] c" DPPRIV\00"
@.str.17 = [8 x i8] c" DPLAST\00"
@.str.18 = [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 = icmp eq i8 %17, 0
%68 = select i1 %67, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0)
%69 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), i32 %57, i32 %60, i32 %63, i32 %66, i32 %19, i32 %37, i8* %68)
%70 = getelementptr inbounds i8, i8* %0, i64 16
%71 = load i8, i8* %70
%72 = zext i8 %71 to i32
%73 = getelementptr inbounds i8, i8* %0, i64 17
%74 = load i8, i8* %73
%75 = zext i8 %74 to i32
%76 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %55, i32 %72, i32 %75)
%77 = getelementptr inbounds i8, i8* %0, i64 18
%78 = load i8, i8* %77
%79 = zext i8 %78 to i32
%80 = and i32 %79, 8
%81 = icmp eq i32 %80, 0
%82 = select i1 %81, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0)
%83 = and i32 %79, 4
%84 = icmp eq i32 %83, 0
%85 = select i1 %84, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0)
%86 = and i32 %79, 2
%87 = icmp eq i32 %86, 0
%88 = select i1 %87, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0)
%89 = and i32 %79, 1
%90 = icmp eq i32 %89, 0
%91 = select i1 %90, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0)
%92 = and i32 %79, 240
%93 = icmp eq i32 %92, 0
%94 = select i1 %93, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0)
%95 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i32 %79, i8* %82, i8* %85, i8* %88, i8* %91, i8* %94)
%96 = getelementptr inbounds i8, i8* %0, i64 19
%97 = load i8, i8* %96
%98 = zext i8 %97 to i32
%99 = and i32 %98, 64
%100 = icmp eq i32 %99, 0
%101 = select i1 %100, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0)
%102 = and i32 %98, 32
%103 = icmp eq i32 %102, 0
%104 = select i1 %103, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0)
%105 = and i32 %98, 16
%106 = icmp eq i32 %105, 0
%107 = select i1 %106, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0)
%108 = and i32 %98, 8
%109 = icmp eq i32 %108, 0
%110 = select i1 %109, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0)
%111 = and i32 %98, 4
%112 = icmp eq i32 %111, 0
%113 = select i1 %112, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0)
%114 = and i32 %98, 2
%115 = icmp eq i32 %114, 0
%116 = select i1 %115, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0)
%117 = and i32 %98, 1
%118 = icmp eq i32 %117, 0
%119 = select i1 %118, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0)
%120 = and i32 %98, 128
%121 = icmp eq i32 %120, 0
%122 = select i1 %121, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0)
%123 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0), i32 %98, i8* %101, i8* %104, i8* %107, i8* %110, i8* %113, i8* %116, i8* %119, i8* %122)
%124 = load i8, i8* %58
%125 = zext i8 %124 to i32
%126 = lshr i32 %37, %125
%127 = zext i8 %124 to i64
%128 = shl nsw i64 -1, %127
%129 = xor i64 %128, -1
%130 = zext i32 %19 to i64
%131 = and i64 %129, %130
%132 = icmp ne i64 %131, 0
%133 = zext i1 %132 to i32
%134 = add i32 %55, -1
%135 = add i32 %134, %126
%136 = add i32 %135, %133
%137 = udiv i32 %136, %55
%138 = load i8, i8* %0
%139 = zext i8 %138 to i32
%140 = sub nsw i32 %125, %139
%141 = load i8, i8* %61
%142 = zext i8 %141 to i32
%143 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.18, i64 0, i64 0), i32 %137, i32 %140, i32 %142)
ret void
}