#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 */
scalar_t__ ccnl_ccnb_mkHeader(unsigned char *, int, int);
scalar_t__ ccnl_ccnb_mkStrBlob(unsigned char *, int, int, char *);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ sprintf(char *, char *, ...);
int ccnl_mgmt_create_interface_stmt(int num_interfaces, int *interfaceifndx,
                                    long *interfacedev, int *interfacedevtype,
                                    int *interfacereflect, char **interfaceaddr,
                                    unsigned char *stmt, int len3) {
  int it;
  char str[100];
  for (it = 0; it < num_interfaces; ++it) {
    len3 += ccnl_ccnb_mkHeader(stmt + len3, 99202, 2);
    memset(str, 0, 100);
    sprintf(str, "%d", interfaceifndx[it]);
    len3 += ccnl_ccnb_mkStrBlob(stmt + len3, 99205, 2, str);
    memset(str, 0, 100);
    sprintf(str, "%s", interfaceaddr[it]);
    len3 += ccnl_ccnb_mkStrBlob(stmt + len3, 99212, 2, str);
    memset(str, 0, 100);
    if (interfacedevtype[it] == 1) {
      sprintf(str, "%p", (void *)interfacedev[it]);
      len3 += ccnl_ccnb_mkStrBlob(stmt + len3, 99207, 2, str);
    } else if (interfacedevtype[it] == 2) {
      sprintf(str, "%p", (void *)interfacedev[it]);
      len3 += ccnl_ccnb_mkStrBlob(stmt + len3, 99213, 2, str);
    } else {
      sprintf(str, "%p", (void *)interfacedev[it]);
      len3 += ccnl_ccnb_mkStrBlob(stmt + len3, 99213, 2, str);
    }
    memset(str, 0, 100);
    sprintf(str, "%d", interfacereflect[it]);
    len3 += ccnl_ccnb_mkStrBlob(stmt + len3, 99214, 2, str);
    stmt[len3++] = 0;
  }
  return len3;
}


x86 assembly (clang, -O0):
<ccnl_mgmt_create_interface_stmt>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    141e <ccnl_mgmt_create_interface_stmt+0x2de>
mov    0x10(%rbp),%rdi
movslq 0x18(%rbp),%rax
add    %rax,%rdi
mov    $0x18382,%esi
mov    $0x2,%edx
call   1060 <ccnl_ccnb_mkHeader@plt>
mov    %rax,%rcx
movslq 0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,0x18(%rbp)
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1030 <memset@plt>
lea    -0xa0(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
lea    0xe31(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
mov    0x10(%rbp),%rdi
movslq 0x18(%rbp),%rax
add    %rax,%rdi
lea    -0xa0(%rbp),%rcx
mov    $0x18385,%esi
mov    $0x2,%edx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
mov    %rax,%rcx
movslq 0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,0x18(%rbp)
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1030 <memset@plt>
lea    -0xa0(%rbp),%rdi
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xdd2(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
mov    0x10(%rbp),%rdi
movslq 0x18(%rbp),%rax
add    %rax,%rdi
lea    -0xa0(%rbp),%rcx
mov    $0x1838c,%esi
mov    $0x2,%edx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
mov    %rax,%rcx
movslq 0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,0x18(%rbp)
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1030 <memset@plt>
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    12df <ccnl_mgmt_create_interface_stmt+0x19f>
lea    -0xa0(%rbp),%rdi
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xd61(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
mov    0x10(%rbp),%rdi
movslq 0x18(%rbp),%rax
add    %rax,%rdi
lea    -0xa0(%rbp),%rcx
mov    $0x18387,%esi
mov    $0x2,%edx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
mov    %rax,%rcx
movslq 0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,0x18(%rbp)
jmp    1399 <ccnl_mgmt_create_interface_stmt+0x259>
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
cmpl   $0x2,(%rax,%rcx,4)
jne    1345 <ccnl_mgmt_create_interface_stmt+0x205>
lea    -0xa0(%rbp),%rdi
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xcfb(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
mov    0x10(%rbp),%rdi
movslq 0x18(%rbp),%rax
add    %rax,%rdi
lea    -0xa0(%rbp),%rcx
mov    $0x1838d,%esi
mov    $0x2,%edx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
mov    %rax,%rcx
movslq 0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,0x18(%rbp)
jmp    1394 <ccnl_mgmt_create_interface_stmt+0x254>
lea    -0xa0(%rbp),%rdi
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xca7(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
mov    0x10(%rbp),%rdi
movslq 0x18(%rbp),%rax
add    %rax,%rdi
lea    -0xa0(%rbp),%rcx
mov    $0x1838d,%esi
mov    $0x2,%edx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
mov    %rax,%rcx
movslq 0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,0x18(%rbp)
jmp    1399 <ccnl_mgmt_create_interface_stmt+0x259>
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1030 <memset@plt>
lea    -0xa0(%rbp),%rdi
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
lea    0xc3b(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
mov    0x10(%rbp),%rdi
movslq 0x18(%rbp),%rax
add    %rax,%rdi
lea    -0xa0(%rbp),%rcx
mov    $0x1838e,%esi
mov    $0x2,%edx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
mov    %rax,%rcx
movslq 0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,0x18(%rbp)
mov    0x10(%rbp),%rax
mov    0x18(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,0x18(%rbp)
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1170 <ccnl_mgmt_create_interface_stmt+0x30>
mov    0x18(%rbp),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ccnl_mgmt_create_interface_stmt>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %r9,0x28(%rsp)
mov    %r8,0x20(%rsp)
mov    0xd8(%rsp),%eax
test   %edi,%edi
jle    130c <ccnl_mgmt_create_interface_stmt+0x1bc>
mov    %rcx,%r15
mov    %rsi,%r13
mov    %edi,%ecx
mov    %rcx,0x8(%rsp)
xor    %r12d,%r12d
mov    %rdx,(%rsp)
mov    %r15,0x18(%rsp)
mov    %rsi,0x10(%rsp)
nopl   0x0(%rax,%rax,1)
movslq %eax,%rbp
mov    0xd0(%rsp),%rbx
lea    (%rbx,%rbp,1),%rdi
mov    $0x18382,%esi
mov    $0x2,%edx
call   1070 <ccnl_ccnb_mkHeader@plt>
add    %eax,%ebp
lea    0x30(%rsp),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
mov    0x0(%r13,%r12,4),%edx
mov    %r14,%rdi
lea    0xe1d(%rip),%rsi
xor    %eax,%eax
call   1060 <sprintf@plt>
movslq %ebp,%rbp
lea    (%rbx,%rbp,1),%rdi
mov    $0x18385,%esi
mov    $0x2,%edx
mov    %r14,%rcx
call   1050 <ccnl_ccnb_mkStrBlob@plt>
add    %eax,%ebp
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
mov    0x28(%rsp),%rax
mov    (%rax,%r12,8),%rsi
mov    %r14,%rdi
call   1030 <strcpy@plt>
movslq %ebp,%r13
lea    (%rbx,%r13,1),%rdi
mov    $0x1838c,%esi
mov    $0x2,%edx
mov    %r14,%rcx
call   1050 <ccnl_ccnb_mkStrBlob@plt>
add    %eax,%r13d
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
cmpl   $0x1,(%r15,%r12,4)
mov    $0x1838d,%r15d
mov    $0x18387,%eax
cmove  %eax,%r15d
mov    (%rsp),%rax
mov    (%rax,%r12,8),%rdx
mov    %r14,%rdi
lea    0xd8d(%rip),%rsi
xor    %eax,%eax
call   1060 <sprintf@plt>
movslq %r13d,%rbp
mov    0x10(%rsp),%r13
lea    (%rbx,%rbp,1),%rdi
mov    %r15d,%esi
mov    0x20(%rsp),%rbx
mov    0x18(%rsp),%r15
mov    $0x2,%edx
mov    %r14,%rcx
call   1050 <ccnl_ccnb_mkStrBlob@plt>
add    %eax,%ebp
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
mov    (%rbx,%r12,4),%edx
mov    %r14,%rdi
lea    0xd3e(%rip),%rsi
xor    %eax,%eax
call   1060 <sprintf@plt>
movslq %ebp,%rbp
mov    0xd0(%rsp),%rax
lea    (%rax,%rbp,1),%rdi
mov    %rax,%rbx
mov    $0x1838e,%esi
mov    $0x2,%edx
mov    %r14,%rcx
call   1050 <ccnl_ccnb_mkStrBlob@plt>
mov    %ebp,%ecx
add    %eax,%ecx
add    %ebp,%eax
add    $0x1,%eax
movslq %ecx,%rcx
movb   $0x0,(%rbx,%rcx,1)
add    $0x1,%r12
cmp    %r12,0x8(%rsp)
jne    11a0 <ccnl_mgmt_create_interface_stmt+0x50>
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [3 x i8] c"%p\00"
define i32 @ccnl_mgmt_create_interface_stmt(i32 %0, i32* %1, i64* %2, i32* %3, i32* %4, i8** %5, i8* %6, i32 %7) {
%9 = alloca i32
%10 = alloca i32*
%11 = alloca i64*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i8**
%15 = alloca i8*
%16 = alloca i32
%17 = alloca i32
%18 = alloca [100 x i8]
store i32 %0, i32* %9
store i32* %1, i32** %10
store i64* %2, i64** %11
store i32* %3, i32** %12
store i32* %4, i32** %13
store i8** %5, i8*** %14
store i8* %6, i8** %15
store i32 %7, i32* %16
store i32 0, i32* %17
br label %19
19: ; preds = %169, %8
%20 = load i32, i32* %17
%21 = load i32, i32* %9
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %172
23: ; preds = %19
%24 = load i8*, i8** %15
%25 = load i32, i32* %16
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, i8* %24, i64 %26
%28 = call i64 @ccnl_ccnb_mkHeader(i8* %27, i32 99202, i32 2)
%29 = load i32, i32* %16
%30 = sext i32 %29 to i64
%31 = add nsw i64 %30, %28
%32 = trunc i64 %31 to i32
store i32 %32, i32* %16
%33 = getelementptr inbounds [100 x i8], [100 x i8]* %18, i64 0, i64 0
%34 = call i32 @memset(i8* %33, i32 0, i32 100)
%35 = getelementptr inbounds [100 x i8], [100 x i8]* %18, i64 0, i64 0
%36 = load i32*, i32** %10
%37 = load i32, i32* %17
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, i32* %36, i64 %38
%40 = load i32, i32* %39
%41 = call i32 (i8*, i8*, ...) @sprintf(i8* %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %40)
%42 = load i8*, i8** %15
%43 = load i32, i32* %16
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, i8* %42, i64 %44
%46 = getelementptr inbounds [100 x i8], [100 x i8]* %18, i64 0, i64 0
%47 = call i64 @ccnl_ccnb_mkStrBlob(i8* %45, i32 99205, i32 2, i8* %46)
%48 = load i32, i32* %16
%49 = sext i32 %48 to i64
%50 = add nsw i64 %49, %47
%51 = trunc i64 %50 to i32
store i32 %51, i32* %16
%52 = getelementptr inbounds [100 x i8], [100 x i8]* %18, i64 0, i64 0
%53 = call i32 @memset(i8* %52, i32 0, i32 100)
%54 = getelementptr inbounds [100 x i8], [100 x i8]* %18, i64 0, i64 0
%55 = load i8**, i8*** %14
%56 = load i32, i32* %17
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8*, i8** %55, i64 %57
%59 = load i8*, i8** %58
%60 = call i32 (i8*, i8*, ...) @sprintf(i8* %54, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %59)
%61 = load i8*, i8** %15
%62 = load i32, i32* %16
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, i8* %61, i64 %63
%65 = getelementptr inbounds [100 x i8], [100 x i8]* %18, i64 0, i64 0
%66 = call i64 @ccnl_ccnb_mkStrBlob(i8* %64, i32 99212, i32 2, i8* %65)
%67 = load i32, i32* %16
%68 = sext i32 %67 to i64
%69 = add nsw i64 %68, %66
%70 = trunc i64 %69 to i32
store i32 %70, i32* %16
%71 = getelementptr inbounds [100 x i8], [100 x i8]* %18, i64 0, i64 0
%72 = call i32 @memset(i8* %71, i32 0, i32 100)
%73 = load i32*, i32** %12
%74 = load i32, i32* %17
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, i32* %73, i64 %75
%77 = load i32, i32* %76
%78 = icmp eq i32 %77, 1
br i1 %78, label %79, label %98
79: ; preds = %23
%80 = getelementptr inbounds [100 x i8], [100 x i8]* %18, i64 0, i64 0
%81 = load i64*, i64** %11
%82 = load i32, i32* %17
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i64, i64* %81, i64 %83
%85 = load i64, i64* %84
%86 = inttoptr i64 %85 to i8*
%87 = call i32 (i8*, i8*, ...) @sprintf(i8* %80, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %86)
%88 = load i8*, i8** %15
%89 = load i32, i32* %16
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i8, i8* %88, i64 %90
%92 = getelementptr inbounds [100 x i8], [100 x i8]* %18, i64 0, i64 0
%93 = call i64 @ccnl_ccnb_mkStrBlob(i8* %91, i32 99207, i32 2, i8* %92)
%94 = load i32, i32* %16
%95 = sext i32 %94 to i64
%96 = add nsw i64 %95, %93
%97 = trunc i64 %96 to i32
store i32 %97, i32* %16
br label %144
98: ; preds = %23
%99 = load i32*, i32** %12
%100 = load i32, i32* %17
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i32, i32* %99, i64 %101
%103 = load i32, i32* %102
%104 = icmp eq i32 %103, 2
br i1 %104, label %105, label %124
105: ; preds = %98
%106 = getelementptr inbounds [100 x i8], [100 x i8]* %18, i64 0, i64 0
%107 = load i64*, i64** %11
%108 = load i32, i32* %17
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i64, i64* %107, i64 %109
%111 = load i64, i64* %110
%112 = inttoptr i64 %111 to i8*
%113 = call i32 (i8*, i8*, ...) @sprintf(i8* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %112)
%114 = load i8*, i8** %15
%115 = load i32, i32* %16
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i8, i8* %114, i64 %116
%118 = getelementptr inbounds [100 x i8], [100 x i8]* %18, i64 0, i64 0
%119 = call i64 @ccnl_ccnb_mkStrBlob(i8* %117, i32 99213, i32 2, i8* %118)
%120 = load i32, i32* %16
%121 = sext i32 %120 to i64
%122 = add nsw i64 %121, %119
%123 = trunc i64 %122 to i32
store i32 %123, i32* %16
br label %143
124: ; preds = %98
%125 = getelementptr inbounds [100 x i8], [100 x i8]* %18, i64 0, i64 0
%126 = load i64*, i64** %11
%127 = load i32, i32* %17
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds i64, i64* %126, i64 %128
%130 = load i64, i64* %129
%131 = inttoptr i64 %130 to i8*
%132 = call i32 (i8*, i8*, ...) @sprintf(i8* %125, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %131)
%133 = load i8*, i8** %15
%134 = load i32, i32* %16
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i8, i8* %133, i64 %135
%137 = getelementptr inbounds [100 x i8], [100 x i8]* %18, i64 0, i64 0
%138 = call i64 @ccnl_ccnb_mkStrBlob(i8* %136, i32 99213, i32 2, i8* %137)
%139 = load i32, i32* %16
%140 = sext i32 %139 to i64
%141 = add nsw i64 %140, %138
%142 = trunc i64 %141 to i32
store i32 %142, i32* %16
br label %143
143: ; preds = %124, %105
br label %144
144: ; preds = %143, %79
%145 = getelementptr inbounds [100 x i8], [100 x i8]* %18, i64 0, i64 0
%146 = call i32 @memset(i8* %145, i32 0, i32 100)
%147 = getelementptr inbounds [100 x i8], [100 x i8]* %18, i64 0, i64 0
%148 = load i32*, i32** %13
%149 = load i32, i32* %17
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds i32, i32* %148, i64 %150
%152 = load i32, i32* %151
%153 = call i32 (i8*, i8*, ...) @sprintf(i8* %147, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %152)
%154 = load i8*, i8** %15
%155 = load i32, i32* %16
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds i8, i8* %154, i64 %156
%158 = getelementptr inbounds [100 x i8], [100 x i8]* %18, i64 0, i64 0
%159 = call i64 @ccnl_ccnb_mkStrBlob(i8* %157, i32 99214, i32 2, i8* %158)
%160 = load i32, i32* %16
%161 = sext i32 %160 to i64
%162 = add nsw i64 %161, %159
%163 = trunc i64 %162 to i32
store i32 %163, i32* %16
%164 = load i8*, i8** %15
%165 = load i32, i32* %16
%166 = add nsw i32 %165, 1
store i32 %166, i32* %16
%167 = sext i32 %165 to i64
%168 = getelementptr inbounds i8, i8* %164, i64 %167
store i8 0, i8* %168
br label %169
169: ; preds = %144
%170 = load i32, i32* %17
%171 = add nsw i32 %170, 1
store i32 %171, i32* %17
br label %19
172: ; preds = %19
%173 = load i32, i32* %16
ret i32 %173
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.2 = [3 x i8] c"%p\00"
define i32 @ccnl_mgmt_create_interface_stmt(i32 %0, i32* nocapture %1, i64* nocapture %2, i32* nocapture %3, i32* nocapture %4, i8** nocapture %5, i8* %6, i32 %7) {
%9 = alloca [100 x i8]
%10 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%11 = icmp sgt i32 %0, 0
br i1 %11, label %12, label %68
12: ; preds = %8
%13 = zext i32 %0 to i64
br label %14
14: ; preds = %12, %14
%15 = phi i64 [ 0, %12 ], [ %66, %14 ]
%16 = phi i32 [ %7, %12 ], [ %63, %14 ]
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, i8* %6, i64 %17
%19 = call i64 @ccnl_ccnb_mkHeader(i8* %18, i32 99202, i32 2)
%20 = trunc i64 %19 to i32
%21 = add i32 %16, %20
%22 = call i32 @memset(i8* %10, i32 0, i32 100)
%23 = getelementptr inbounds i32, i32* %1, i64 %15
%24 = load i32, i32* %23
%25 = call i32 (i8*, i8*, ...) @sprintf(i8* %10, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %24)
%26 = sext i32 %21 to i64
%27 = getelementptr inbounds i8, i8* %6, i64 %26
%28 = call i64 @ccnl_ccnb_mkStrBlob(i8* %27, i32 99205, i32 2, i8* %10)
%29 = trunc i64 %28 to i32
%30 = add i32 %21, %29
%31 = call i32 @memset(i8* %10, i32 0, i32 100)
%32 = getelementptr inbounds i8*, i8** %5, i64 %15
%33 = load i8*, i8** %32
%34 = call i8* @strcpy(i8* %10, i8* dereferenceable(1) %33)
%35 = sext i32 %30 to i64
%36 = getelementptr inbounds i8, i8* %6, i64 %35
%37 = call i64 @ccnl_ccnb_mkStrBlob(i8* %36, i32 99212, i32 2, i8* %10)
%38 = trunc i64 %37 to i32
%39 = add i32 %30, %38
%40 = call i32 @memset(i8* %10, i32 0, i32 100)
%41 = getelementptr inbounds i32, i32* %3, i64 %15
%42 = load i32, i32* %41
%43 = icmp eq i32 %42, 1
%44 = select i1 %43, i32 99207, i32 99213
%45 = getelementptr inbounds i64, i64* %2, i64 %15
%46 = load i64, i64* %45
%47 = inttoptr i64 %46 to i8*
%48 = call i32 (i8*, i8*, ...) @sprintf(i8* %10, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %47)
%49 = sext i32 %39 to i64
%50 = getelementptr inbounds i8, i8* %6, i64 %49
%51 = call i64 @ccnl_ccnb_mkStrBlob(i8* %50, i32 %44, i32 2, i8* %10)
%52 = trunc i64 %51 to i32
%53 = add i32 %39, %52
%54 = call i32 @memset(i8* %10, i32 0, i32 100)
%55 = getelementptr inbounds i32, i32* %4, i64 %15
%56 = load i32, i32* %55
%57 = call i32 (i8*, i8*, ...) @sprintf(i8* %10, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %56)
%58 = sext i32 %53 to i64
%59 = getelementptr inbounds i8, i8* %6, i64 %58
%60 = call i64 @ccnl_ccnb_mkStrBlob(i8* %59, i32 99214, i32 2, i8* %10)
%61 = trunc i64 %60 to i32
%62 = add i32 %53, %61
%63 = add nsw i32 %62, 1
%64 = sext i32 %62 to i64
%65 = getelementptr inbounds i8, i8* %6, i64 %64
store i8 0, i8* %65
%66 = add nuw nsw i64 %15, 1
%67 = icmp eq i64 %66, %13
br i1 %67, label %68, label %14
68: ; preds = %14, %8
%69 = phi i32 [ %7, %8 ], [ %63, %14 ]
ret i32 %69
}