#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 */
typedef struct TYPE_4__ TYPE_2__;
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  long d_val;
};
struct TYPE_4__ {
  long d_tag;
  TYPE_1__ d_un;
};
typedef TYPE_2__ Elf64_Dyn;

/* Variables and functions */
#define DT_BIND_NOW 151
#define DT_FINI_ARRAYSZ 150
#define DT_FLAGS 149
#define DT_FLAGS_1 148
#define DT_INIT_ARRAYSZ 147
#define DT_NEEDED 146
#define DT_NULL 145
#define DT_PLTREL 144
#define DT_PLTRELSZ 143
#define DT_PREINIT_ARRAYSZ 142
#define DT_RELACOUNT 141
#define DT_RELAENT 140
#define DT_RELASZ 139
#define DT_RELCOUNT 138
#define DT_RELENT 137
#define DT_RELSZ 136
#define DT_RPATH 135
#define DT_RUNPATH 134
#define DT_SONAME 133
#define DT_STRSZ 132
#define DT_SYMBOLIC 131
#define DT_SYMENT 130
#define DT_SYMINSZ 129
#define DT_TEXTREL 128
int /*<<< orphan*/ beginblock(int);
int /*<<< orphan*/ endblock();
char *getpiecestrtable(int, long *);
int /*<<< orphan*/ out(long);
int /*<<< orphan*/ outcomment(char const *);
int /*<<< orphan*/ outf(char *, ...);
long straddress(long);
long strdefflags(long, char *);
long strdefint(long, char *);
char *strdynamicvalue(long, long);
void outdyn64(void const *ptr, long size, int ndx) {
  Elf64_Dyn const *dyns = ptr;
  long count = size / sizeof *dyns;
  char const *strtab;
  char const *str = NULL;
  long value;
  long i;
  strtab = getpiecestrtable(ndx, &size);
  beginblock(1);
  for (i = 0; i < count; ++i) {
    beginblock(0);
    (out(strdefint(dyns[i].d_tag, "DT_")));
    value = dyns[i].d_un.d_val;
    str = strdynamicvalue(dyns[i].d_tag, value);
    if (str) {
      outf("{ %s }", str);
      endblock();
      continue;
    }
    switch (dyns[i].d_tag) {
    case DT_NEEDED:
    case DT_RPATH:
    case DT_RUNPATH:
    case DT_SONAME:
      outf("{ %ld }", value);
      if (strtab && value < size && strtab[value])
        str = strtab + value;
      break;
    case DT_FLAGS:
      outf("{ %s }", strdefflags(value, "DF_"));
      break;
    case DT_FLAGS_1:
      outf("{ %s }", strdefflags(value, "DF_1_"));
      break;
    case DT_PLTREL:
      outf("{ %s }", strdefint(value, "DT_"));
      break;
    case DT_NULL:
    case DT_STRSZ:
    case DT_SYMENT:
    case DT_SYMINSZ:
    case DT_RELENT:
    case DT_RELSZ:
    case DT_RELAENT:
    case DT_RELASZ:
    case DT_SYMBOLIC:
    case DT_PLTRELSZ:
    case DT_BIND_NOW:
    case DT_INIT_ARRAYSZ:
    case DT_TEXTREL:
    case DT_FINI_ARRAYSZ:
    case DT_RELCOUNT:
    case DT_PREINIT_ARRAYSZ:
    case DT_RELACOUNT:
      outf("{ %ld }", value);
      break;
    default:
      outf("{ %s }", straddress(value));
      break;
    }
    endblock();
    if (str)
      outcomment(str);
  }
  endblock();
}


x86 assembly (clang, -O0):
<outdyn64>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
shr    $0x4,%rax
mov    %rax,-0x28(%rbp)
movq   $0x0,-0x38(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x10(%rbp),%rsi
call   10a0 <getpiecestrtable@plt>
mov    %rax,-0x30(%rbp)
mov    $0x1,%edi
call   1070 <beginblock@plt>
movq   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%rax
cmp    -0x28(%rbp),%rax
jge    13e6 <outdyn64+0x246>
xor    %edi,%edi
call   1070 <beginblock@plt>
mov    -0x20(%rbp),%rax
mov    -0x48(%rbp),%rcx
shl    $0x4,%rcx
add    %rcx,%rax
mov    (%rax),%rdi
lea    0xe41(%rip),%rsi
call   1030 <strdefint@plt>
mov    %rax,%rdi
call   10b0 <out@plt>
mov    -0x20(%rbp),%rax
mov    -0x48(%rbp),%rcx
shl    $0x4,%rcx
add    %rcx,%rax
mov    0x8(%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x48(%rbp),%rcx
shl    $0x4,%rcx
add    %rcx,%rax
mov    (%rax),%rdi
mov    -0x40(%rbp),%rsi
call   1090 <strdynamicvalue@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     128b <outdyn64+0xeb>
mov    -0x38(%rbp),%rsi
lea    0xdec(%rip),%rdi
mov    $0x0,%al
call   1060 <outf@plt>
mov    $0x0,%al
call   1050 <endblock@plt>
jmp    13d5 <outdyn64+0x235>
mov    -0x20(%rbp),%rax
mov    -0x48(%rbp),%rcx
shl    $0x4,%rcx
mov    (%rax,%rcx,1),%rax
add    $0xffffffffffffff80,%rax
mov    %rax,-0x50(%rbp)
sub    $0x17,%rax
ja     139b <outdyn64+0x1fb>
mov    -0x50(%rbp),%rax
lea    0xd48(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x40(%rbp),%rsi
lea    0xd9f(%rip),%rdi
mov    $0x0,%al
call   1060 <outf@plt>
cmpq   $0x0,-0x30(%rbp)
je     130d <outdyn64+0x16d>
mov    -0x40(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    130d <outdyn64+0x16d>
mov    -0x30(%rbp),%rax
mov    -0x40(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     130d <outdyn64+0x16d>
mov    -0x30(%rbp),%rax
add    -0x40(%rbp),%rax
mov    %rax,-0x38(%rbp)
jmp    13b5 <outdyn64+0x215>
mov    -0x40(%rbp),%rdi
lea    0xd56(%rip),%rsi
call   1040 <strdefflags@plt>
mov    %rax,%rsi
lea    0xd38(%rip),%rdi
mov    $0x0,%al
call   1060 <outf@plt>
jmp    13b5 <outdyn64+0x215>
mov    -0x40(%rbp),%rdi
lea    0xd34(%rip),%rsi
call   1040 <strdefflags@plt>
mov    %rax,%rsi
lea    0xd12(%rip),%rdi
mov    $0x0,%al
call   1060 <outf@plt>
jmp    13b5 <outdyn64+0x215>
mov    -0x40(%rbp),%rdi
lea    0xcf7(%rip),%rsi
call   1030 <strdefint@plt>
mov    %rax,%rsi
lea    0xcec(%rip),%rdi
mov    $0x0,%al
call   1060 <outf@plt>
jmp    13b5 <outdyn64+0x215>
mov    -0x40(%rbp),%rsi
lea    0xcdc(%rip),%rdi
mov    $0x0,%al
call   1060 <outf@plt>
jmp    13b5 <outdyn64+0x215>
mov    -0x40(%rbp),%rdi
call   10c0 <straddress@plt>
mov    %rax,%rsi
lea    0xcb6(%rip),%rdi
mov    $0x0,%al
call   1060 <outf@plt>
mov    $0x0,%al
call   1050 <endblock@plt>
cmpq   $0x0,-0x38(%rbp)
je     13d0 <outdyn64+0x230>
mov    -0x38(%rbp),%rdi
call   1080 <outcomment@plt>
jmp    13d5 <outdyn64+0x235>
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    11f1 <outdyn64+0x51>
mov    $0x0,%al
call   1050 <endblock@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<outdyn64>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
mov    %rsi,0x10(%rsp)
lea    0x10(%rsp),%rsi
mov    %edx,%edi
call   10a0 <getpiecestrtable@plt>
mov    %rax,0x8(%rsp)
mov    $0x1,%edi
call   1070 <beginblock@plt>
cmp    $0x10,%r14
jae    11f0 <outdyn64+0x50>
xor    %eax,%eax
call   1050 <endblock@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
shr    $0x4,%r14
lea    0xe65(%rip),%r12
lea    0xe62(%rip),%r13
lea    0xdf7(%rip),%rbp
nopl   0x0(%rax)
xor    %edi,%edi
call   1070 <beginblock@plt>
mov    (%rbx),%rdi
mov    %r12,%rsi
call   1030 <strdefint@plt>
mov    %rax,%rdi
call   10b0 <out@plt>
mov    (%rbx),%rdi
mov    0x8(%rbx),%r15
mov    %r15,%rsi
call   1090 <strdynamicvalue@plt>
test   %rax,%rax
je     1250 <outdyn64+0xb0>
mov    %r13,%rdi
mov    %rax,%rsi
jmp    1275 <outdyn64+0xd5>
cs nopw 0x0(%rax,%rax,1)
mov    (%rbx),%rax
add    $0xffffffffffffff80,%rax
cmp    $0x17,%rax
ja     130c <outdyn64+0x16c>
movslq 0x0(%rbp,%rax,4),%rax
add    %rbp,%rax
jmp    *%rax
lea    0xdf9(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <outf@plt>
xor    %eax,%eax
call   1050 <endblock@plt>
add    $0x10,%rbx
add    $0xffffffffffffffff,%r14
jne    1210 <outdyn64+0x70>
jmp    11da <outdyn64+0x3a>
lea    0xdd2(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <outf@plt>
cmpq   $0x0,0x8(%rsp)
je     127c <outdyn64+0xdc>
cmp    0x10(%rsp),%r15
jge    127c <outdyn64+0xdc>
mov    0x8(%rsp),%rax
cmpb   $0x0,(%rax,%r15,1)
je     127c <outdyn64+0xdc>
add    0x8(%rsp),%r15
xor    %eax,%eax
call   1050 <endblock@plt>
mov    %r15,%rdi
call   1080 <outcomment@plt>
jmp    1283 <outdyn64+0xe3>
mov    %r15,%rdi
mov    %r12,%rsi
call   1030 <strdefint@plt>
jmp    123e <outdyn64+0x9e>
mov    %r15,%rdi
lea    0xd89(%rip),%rsi
call   1040 <strdefflags@plt>
jmp    123e <outdyn64+0x9e>
mov    %r15,%rdi
lea    0xd71(%rip),%rsi
call   1040 <strdefflags@plt>
jmp    123e <outdyn64+0x9e>
mov    %r15,%rdi
call   10c0 <straddress@plt>
jmp    123e <outdyn64+0x9e>

LLVM IR (-O0):
%struct.TYPE_4__ = type { i64, %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i64 }
@.str = [4 x i8] c"DT_\00"
@.str.1 = [7 x i8] c"{ %s }\00"
@.str.2 = [8 x i8] c"{ %ld }\00"
@.str.3 = [4 x i8] c"DF_\00"
@.str.4 = [6 x i8] c"DF_1_\00"
define void @outdyn64(i8* %0, i64 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i32
%7 = alloca %struct.TYPE_4__*
%8 = alloca i64
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i64
store i8* %0, i8** %4
store i64 %1, i64* %5
store i32 %2, i32* %6
%13 = load i8*, i8** %4
%14 = bitcast i8* %13 to %struct.TYPE_4__*
store %struct.TYPE_4__* %14, %struct.TYPE_4__** %7
%15 = load i64, i64* %5
%16 = udiv i64 %15, 16
store i64 %16, i64* %8
store i8* null, i8** %10
%17 = load i32, i32* %6
%18 = call i8* @getpiecestrtable(i32 %17, i64* %5)
store i8* %18, i8** %9
%19 = call i32 @beginblock(i32 1)
store i64 0, i64* %12
br label %20
20: ; preds = %106, %3
%21 = load i64, i64* %12
%22 = load i64, i64* %8
%23 = icmp slt i64 %21, %22
br i1 %23, label %24, label %109
24: ; preds = %20
%25 = call i32 @beginblock(i32 0)
%26 = load %struct.TYPE_4__*, %struct.TYPE_4__** %7
%27 = load i64, i64* %12
%28 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %26, i64 %27
%29 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %28, i32 0, i32 0
%30 = load i64, i64* %29
%31 = call i64 @strdefint(i64 %30, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%32 = call i32 @out(i64 %31)
%33 = load %struct.TYPE_4__*, %struct.TYPE_4__** %7
%34 = load i64, i64* %12
%35 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %33, i64 %34
%36 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %35, i32 0, i32 1
%37 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %36, i32 0, i32 0
%38 = load i64, i64* %37
store i64 %38, i64* %11
%39 = load %struct.TYPE_4__*, %struct.TYPE_4__** %7
%40 = load i64, i64* %12
%41 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %39, i64 %40
%42 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %41, i32 0, i32 0
%43 = load i64, i64* %42
%44 = load i64, i64* %11
%45 = call i8* @strdynamicvalue(i64 %43, i64 %44)
store i8* %45, i8** %10
%46 = load i8*, i8** %10
%47 = icmp ne i8* %46, null
br i1 %47, label %48, label %52
48: ; preds = %24
%49 = load i8*, i8** %10
%50 = call i32 (i8*, ...) @outf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %49)
%51 = call i32 (...) @endblock()
br label %106
52: ; preds = %24
%53 = load %struct.TYPE_4__*, %struct.TYPE_4__** %7
%54 = load i64, i64* %12
%55 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %53, i64 %54
%56 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %55, i32 0, i32 0
%57 = load i64, i64* %56
switch i64 %57, label %94 [
i64 146, label %58
i64 135, label %58
i64 134, label %58
i64 133, label %58
i64 149, label %79
i64 148, label %83
i64 144, label %87
i64 145, label %91
i64 132, label %91
i64 130, label %91
i64 129, label %91
i64 137, label %91
i64 136, label %91
i64 140, label %91
i64 139, label %91
i64 131, label %91
i64 143, label %91
i64 151, label %91
i64 147, label %91
i64 128, label %91
i64 150, label %91
i64 138, label %91
i64 142, label %91
i64 141, label %91
]
58: ; preds = %52, %52, %52, %52
%59 = load i64, i64* %11
%60 = call i32 (i8*, ...) @outf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i64 %59)
%61 = load i8*, i8** %9
%62 = icmp ne i8* %61, null
br i1 %62, label %63, label %78
63: ; preds = %58
%64 = load i64, i64* %11
%65 = load i64, i64* %5
%66 = icmp slt i64 %64, %65
br i1 %66, label %67, label %78
67: ; preds = %63
%68 = load i8*, i8** %9
%69 = load i64, i64* %11
%70 = getelementptr inbounds i8, i8* %68, i64 %69
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = icmp ne i32 %72, 0
br i1 %73, label %74, label %78
74: ; preds = %67
%75 = load i8*, i8** %9
%76 = load i64, i64* %11
%77 = getelementptr inbounds i8, i8* %75, i64 %76
store i8* %77, i8** %10
br label %78
78: ; preds = %74, %67, %63, %58
br label %98
79: ; preds = %52
%80 = load i64, i64* %11
%81 = call i64 @strdefflags(i64 %80, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%82 = call i32 (i8*, ...) @outf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i64 %81)
br label %98
83: ; preds = %52
%84 = load i64, i64* %11
%85 = call i64 @strdefflags(i64 %84, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%86 = call i32 (i8*, ...) @outf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i64 %85)
br label %98
87: ; preds = %52
%88 = load i64, i64* %11
%89 = call i64 @strdefint(i64 %88, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%90 = call i32 (i8*, ...) @outf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i64 %89)
br label %98
91: ; preds = %52, %52, %52, %52, %52, %52, %52, %52, %52, %52, %52, %52, %52, %52, %52, %52, %52
%92 = load i64, i64* %11
%93 = call i32 (i8*, ...) @outf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i64 %92)
br label %98
94: ; preds = %52
%95 = load i64, i64* %11
%96 = call i64 @straddress(i64 %95)
%97 = call i32 (i8*, ...) @outf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i64 %96)
br label %98
98: ; preds = %94, %91, %87, %83, %79, %78
%99 = call i32 (...) @endblock()
%100 = load i8*, i8** %10
%101 = icmp ne i8* %100, null
br i1 %101, label %102, label %105
102: ; preds = %98
%103 = load i8*, i8** %10
%104 = call i32 @outcomment(i8* %103)
br label %105
105: ; preds = %102, %98
br label %106
106: ; preds = %105, %48
%107 = load i64, i64* %12
%108 = add nsw i64 %107, 1
store i64 %108, i64* %12
br label %20
109: ; preds = %20
%110 = call i32 (...) @endblock()
ret void
}

LLVM IR (-O2):
%struct.TYPE_4__ = type { i64, %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i64 }
@.str = [4 x i8] c"DT_\00"
@.str.1 = [7 x i8] c"{ %s }\00"
@.str.2 = [8 x i8] c"{ %ld }\00"
@.str.3 = [4 x i8] c"DF_\00"
@.str.4 = [6 x i8] c"DF_1_\00"
define void @outdyn64(i8* nocapture %0, i64 %1, i32 %2) {
%4 = alloca i64
store i64 %1, i64* %4
%5 = bitcast i8* %0 to %struct.TYPE_4__*
%6 = call i8* @getpiecestrtable(i32 %2, i64* %4)
%7 = call i32 @beginblock(i32 1)
%8 = icmp ult i64 %1, 16
br i1 %8, label %60, label %9
9: ; preds = %3
%10 = lshr i64 %1, 4
%11 = icmp ne i8* %6, null
br label %12
12: ; preds = %9, %57
%13 = phi i64 [ 0, %9 ], [ %58, %57 ]
%14 = call i32 @beginblock(i32 0)
%15 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %5, i64 %13, i32 0
%16 = load i64, i64* %15
%17 = call i64 @strdefint(i64 %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%18 = call i32 @out(i64 %17)
%19 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %5, i64 %13, i32 1, i32 0
%20 = load i64, i64* %19
%21 = load i64, i64* %15
%22 = call i8* @strdynamicvalue(i64 %21, i64 %20)
%23 = icmp eq i8* %22, null
br i1 %23, label %27, label %24
24: ; preds = %12
%25 = call i32 (i8*, ...) @outf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %22)
%26 = call i32 (...) @endblock()
br label %57
27: ; preds = %12
%28 = load i64, i64* %15
switch i64 %28, label %49 [
i64 146, label %29
i64 135, label %29
i64 134, label %29
i64 133, label %29
i64 149, label %38
i64 148, label %41
i64 144, label %44
i64 145, label %47
i64 132, label %47
i64 130, label %47
i64 129, label %47
i64 137, label %47
i64 136, label %47
i64 140, label %47
i64 139, label %47
i64 131, label %47
i64 143, label %47
i64 151, label %47
i64 147, label %47
i64 128, label %47
i64 150, label %47
i64 138, label %47
i64 142, label %47
i64 141, label %47
]
29: ; preds = %27, %27, %27, %27
%30 = call i32 (i8*, ...) @outf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i64 %20)
%31 = load i64, i64* %4
%32 = icmp slt i64 %20, %31
%33 = select i1 %11, i1 %32, i1 false
br i1 %33, label %34, label %52
34: ; preds = %29
%35 = getelementptr inbounds i8, i8* %6, i64 %20
%36 = load i8, i8* %35
%37 = icmp eq i8 %36, 0
br i1 %37, label %52, label %54
38: ; preds = %27
%39 = call i64 @strdefflags(i64 %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%40 = call i32 (i8*, ...) @outf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i64 %39)
br label %52
41: ; preds = %27
%42 = call i64 @strdefflags(i64 %20, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%43 = call i32 (i8*, ...) @outf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i64 %42)
br label %52
44: ; preds = %27
%45 = call i64 @strdefint(i64 %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%46 = call i32 (i8*, ...) @outf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i64 %45)
br label %52
47: ; preds = %27, %27, %27, %27, %27, %27, %27, %27, %27, %27, %27, %27, %27, %27, %27, %27, %27
%48 = call i32 (i8*, ...) @outf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i64 %20)
br label %52
49: ; preds = %27
%50 = call i64 @straddress(i64 %20)
%51 = call i32 (i8*, ...) @outf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i64 %50)
br label %52
52: ; preds = %49, %47, %44, %41, %38, %29, %34
%53 = call i32 (...) @endblock()
br label %57
54: ; preds = %34
%55 = call i32 (...) @endblock()
%56 = call i32 @outcomment(i8* %35)
br label %57
57: ; preds = %52, %54, %24
%58 = add nuw nsw i64 %13, 1
%59 = icmp eq i64 %58, %10
br i1 %59, label %60, label %12
60: ; preds = %57, %3
%61 = call i32 (...) @endblock()
ret void
}