#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 */
struct szl_obj {
  int dummy;
};
struct szl_interp {
  int dummy;
};

/* Variables and functions */
int asprintf(char **, char *, char *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ szl_as_str(struct szl_interp *, struct szl_obj *, char **,
                              size_t *);
scalar_t__ szl_isspace(char);
struct szl_obj *szl_new_str(struct szl_interp *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ szl_str_append_str(struct szl_interp *, struct szl_obj *,
                                      char *, size_t);
int /*<<< orphan*/ szl_unref(struct szl_obj *);
__attribute__((nonnull(1, 2, 3))) struct szl_obj *
szl_join(struct szl_interp *interp, struct szl_obj *delim,
         struct szl_obj **objv, const size_t objc, const int wrap) {
  struct szl_obj *obj;
  char *delims, *s, *ws;
  size_t slen, dlen, i, j, last = objc - 1;
  int mw = 0, wlen;
  if (!szl_as_str(interp, delim, &delims, &dlen))
    return NULL;
  obj = szl_new_str(interp, "", 0);
  if (!obj)
    return NULL;
  for (i = 0; i < objc; ++i) {
    if (!szl_as_str(interp, objv[i], &s, &slen)) {
      szl_unref(obj);
      return NULL;
    }
    if (wrap) {
      mw = 0;
      if (slen) {
        for (j = 0; j < slen; ++j) {
          if (szl_isspace(s[j])) {
            mw = 1;
            break;
          }
        }
      } else
        mw = 1;
    }
    if (mw) {
      wlen = asprintf(&ws, "{%s}", s);
      if (wlen < 0) {
        szl_unref(obj);
        return NULL;
      }
      if (!szl_str_append_str(interp, obj, ws, (size_t)wlen)) {
        free(ws);
        szl_unref(obj);
        return NULL;
      }
      free(ws);
    } else if (!szl_str_append_str(interp, obj, s, slen)) {
      szl_unref(obj);
      return NULL;
    }
    if (dlen && (i != last)) {
      if (!szl_str_append_str(interp, obj, delims, dlen)) {
        szl_unref(obj);
        return NULL;
      }
    }
  }
  return obj;
}


x86 assembly (clang, -O0):
<szl_join>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
mov    -0x28(%rbp),%rax
sub    $0x1,%rax
mov    %rax,-0x78(%rbp)
movl   $0x0,-0x7c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    -0x40(%rbp),%rdx
lea    -0x60(%rbp),%rcx
call   1070 <szl_as_str@plt>
cmp    $0x0,%eax
jne    11cd <szl_join+0x5d>
movq   $0x0,-0x8(%rbp)
jmp    1402 <szl_join+0x292>
mov    -0x10(%rbp),%rdi
lea    0xe2c(%rip),%rsi
xor    %edx,%edx
call   1040 <szl_new_str@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    11fb <szl_join+0x8b>
movq   $0x0,-0x8(%rbp)
jmp    1402 <szl_join+0x292>
movq   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%rax
cmp    -0x28(%rbp),%rax
jae    13fa <szl_join+0x28a>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    -0x68(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    -0x48(%rbp),%rdx
lea    -0x58(%rbp),%rcx
call   1070 <szl_as_str@plt>
cmp    $0x0,%eax
jne    124d <szl_join+0xdd>
mov    -0x38(%rbp),%rdi
call   1090 <szl_unref@plt>
movq   $0x0,-0x8(%rbp)
jmp    1402 <szl_join+0x292>
cmpl   $0x0,-0x2c(%rbp)
je     12cd <szl_join+0x15d>
movl   $0x0,-0x7c(%rbp)
cmpq   $0x0,-0x58(%rbp)
je     12c1 <szl_join+0x151>
movq   $0x0,-0x70(%rbp)
mov    -0x70(%rbp),%rax
cmp    -0x58(%rbp),%rax
jae    12bc <szl_join+0x14c>
mov    -0x48(%rbp),%rax
mov    -0x70(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1050 <szl_isspace@plt>
cmp    $0x0,%rax
je     12a6 <szl_join+0x136>
movl   $0x1,-0x7c(%rbp)
jmp    12bc <szl_join+0x14c>
jmp    12ab <szl_join+0x13b>
mov    -0x70(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x70(%rbp)
jmp    1271 <szl_join+0x101>
jmp    12c8 <szl_join+0x158>
movl   $0x1,-0x7c(%rbp)
jmp    12cd <szl_join+0x15d>
cmpl   $0x0,-0x7c(%rbp)
je     1359 <szl_join+0x1e9>
mov    -0x48(%rbp),%rdx
lea    -0x50(%rbp),%rdi
lea    0xd1a(%rip),%rsi
call   1060 <asprintf@plt>
mov    %eax,-0x80(%rbp)
cmpl   $0x0,-0x80(%rbp)
jge    130e <szl_join+0x19e>
mov    -0x38(%rbp),%rdi
call   1090 <szl_unref@plt>
movq   $0x0,-0x8(%rbp)
jmp    1402 <szl_join+0x292>
mov    -0x10(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x50(%rbp),%rdx
movslq -0x80(%rbp),%rcx
call   1080 <szl_str_append_str@plt>
cmp    $0x0,%eax
jne    134b <szl_join+0x1db>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1090 <szl_unref@plt>
movq   $0x0,-0x8(%rbp)
jmp    1402 <szl_join+0x292>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
jmp    1392 <szl_join+0x222>
mov    -0x10(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x48(%rbp),%rdx
mov    -0x58(%rbp),%rcx
call   1080 <szl_str_append_str@plt>
cmp    $0x0,%eax
jne    138d <szl_join+0x21d>
mov    -0x38(%rbp),%rdi
call   1090 <szl_unref@plt>
movq   $0x0,-0x8(%rbp)
jmp    1402 <szl_join+0x292>
jmp    1392 <szl_join+0x222>
cmpq   $0x0,-0x60(%rbp)
je     13e4 <szl_join+0x274>
mov    -0x68(%rbp),%rax
cmp    -0x78(%rbp),%rax
je     13e4 <szl_join+0x274>
mov    -0x10(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x60(%rbp),%rcx
call   1080 <szl_str_append_str@plt>
cmp    $0x0,%eax
jne    13df <szl_join+0x26f>
mov    -0x38(%rbp),%rdi
call   1090 <szl_unref@plt>
movq   $0x0,-0x8(%rbp)
jmp    1402 <szl_join+0x292>
jmp    13e4 <szl_join+0x274>
jmp    13e9 <szl_join+0x279>
mov    -0x68(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x68(%rbp)
jmp    1203 <szl_join+0x93>
mov    -0x38(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<szl_join>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r8d,%ebx
mov    %rcx,%rbp
mov    %rdx,%r13
mov    %rdi,%r15
lea    0x40(%rsp),%rdx
lea    0x38(%rsp),%rcx
call   1070 <szl_as_str@plt>
test   %eax,%eax
je     1332 <szl_join+0x1c2>
lea    0xe5c(%rip),%rsi
mov    %r15,%rdi
xor    %edx,%edx
call   1040 <szl_new_str@plt>
test   %rax,%rax
je     1332 <szl_join+0x1c2>
mov    %rax,%r12
test   %rbp,%rbp
je     1335 <szl_join+0x1c5>
lea    -0x1(%rbp),%rax
mov    %rax,0x30(%rsp)
xor    %eax,%eax
mov    %rax,0x8(%rsp)
xor    %r14d,%r14d
mov    %ebx,0x4(%rsp)
mov    %r15,0x28(%rsp)
jmp    11fd <szl_join+0x8d>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%r14
cmp    %rbp,%r14
je     1335 <szl_join+0x1c5>
mov    0x0(%r13,%r14,8),%rsi
mov    %r15,%rdi
lea    0x18(%rsp),%rdx
lea    0x10(%rsp),%rcx
call   1070 <szl_as_str@plt>
test   %eax,%eax
je     132a <szl_join+0x1ba>
test   %ebx,%ebx
je     1270 <szl_join+0x100>
mov    $0x1,%eax
mov    %rax,0x8(%rsp)
cmpq   $0x0,0x10(%rsp)
je     12a4 <szl_join+0x134>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x18(%rsp),%rax
movsbl (%rax,%rbx,1),%edi
call   1050 <szl_isspace@plt>
test   %rax,%rax
jne    12a0 <szl_join+0x130>
add    $0x1,%rbx
mov    0x10(%rsp),%rcx
cmp    %rcx,%rbx
jb     1240 <szl_join+0xd0>
jmp    127c <szl_join+0x10c>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmpl   $0x0,0x8(%rsp)
jne    12a4 <szl_join+0x134>
mov    0x10(%rsp),%rcx
mov    0x18(%rsp),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
call   1080 <szl_str_append_str@plt>
xor    %ecx,%ecx
mov    %rcx,0x8(%rsp)
test   %eax,%eax
mov    0x4(%rsp),%ebx
jne    12f9 <szl_join+0x189>
jmp    132a <szl_join+0x1ba>
mov    0x4(%rsp),%ebx
mov    0x18(%rsp),%rdx
lea    0x20(%rsp),%rdi
lea    0xd4b(%rip),%rsi
call   1060 <asprintf@plt>
test   %eax,%eax
js     132a <szl_join+0x1ba>
mov    0x20(%rsp),%rdx
mov    %eax,%ecx
mov    %r15,%rdi
mov    %r12,%rsi
call   1080 <szl_str_append_str@plt>
mov    %ebx,%r15d
mov    %r12,%rbx
mov    %r13,%r12
mov    %eax,%r13d
mov    0x20(%rsp),%rdi
call   1030 <free@plt>
test   %r13d,%r13d
mov    %r12,%r13
mov    %rbx,%r12
mov    %r15d,%ebx
mov    0x28(%rsp),%r15
je     132a <szl_join+0x1ba>
mov    0x38(%rsp),%rcx
test   %rcx,%rcx
je     11f0 <szl_join+0x80>
cmp    0x30(%rsp),%r14
je     11f0 <szl_join+0x80>
mov    0x40(%rsp),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
call   1080 <szl_str_append_str@plt>
test   %eax,%eax
jne    11f0 <szl_join+0x80>
mov    %r12,%rdi
call   1090 <szl_unref@plt>
xor    %r12d,%r12d
mov    %r12,%rax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.szl_interp = type { i32 }
%struct.szl_obj = type { i32 }
@.str = [1 x i8] zeroinitializer
@.str.1 = [5 x i8] c"{%s}\00"
define %struct.szl_obj* @szl_join(%struct.szl_interp* %0, %struct.szl_obj* %1, %struct.szl_obj** %2, i64 %3, i32 %4) {
%6 = alloca %struct.szl_obj*
%7 = alloca %struct.szl_interp*
%8 = alloca %struct.szl_obj*
%9 = alloca %struct.szl_obj**
%10 = alloca i64
%11 = alloca i32
%12 = alloca %struct.szl_obj*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i64
%17 = alloca i64
%18 = alloca i64
%19 = alloca i64
%20 = alloca i64
%21 = alloca i32
%22 = alloca i32
store %struct.szl_interp* %0, %struct.szl_interp** %7
store %struct.szl_obj* %1, %struct.szl_obj** %8
store %struct.szl_obj** %2, %struct.szl_obj*** %9
store i64 %3, i64* %10
store i32 %4, i32* %11
%23 = load i64, i64* %10
%24 = sub i64 %23, 1
store i64 %24, i64* %20
store i32 0, i32* %21
%25 = load %struct.szl_interp*, %struct.szl_interp** %7
%26 = load %struct.szl_obj*, %struct.szl_obj** %8
%27 = call i32 @szl_as_str(%struct.szl_interp* %25, %struct.szl_obj* %26, i8** %13, i64* %17)
%28 = icmp ne i32 %27, 0
br i1 %28, label %30, label %29
29: ; preds = %5
store %struct.szl_obj* null, %struct.szl_obj** %6
br label %140
30: ; preds = %5
%31 = load %struct.szl_interp*, %struct.szl_interp** %7
%32 = call %struct.szl_obj* @szl_new_str(%struct.szl_interp* %31, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i32 0)
store %struct.szl_obj* %32, %struct.szl_obj** %12
%33 = load %struct.szl_obj*, %struct.szl_obj** %12
%34 = icmp ne %struct.szl_obj* %33, null
br i1 %34, label %36, label %35
35: ; preds = %30
store %struct.szl_obj* null, %struct.szl_obj** %6
br label %140
36: ; preds = %30
store i64 0, i64* %18
br label %37
37: ; preds = %135, %36
%38 = load i64, i64* %18
%39 = load i64, i64* %10
%40 = icmp ult i64 %38, %39
br i1 %40, label %41, label %138
41: ; preds = %37
%42 = load %struct.szl_interp*, %struct.szl_interp** %7
%43 = load %struct.szl_obj**, %struct.szl_obj*** %9
%44 = load i64, i64* %18
%45 = getelementptr inbounds %struct.szl_obj*, %struct.szl_obj** %43, i64 %44
%46 = load %struct.szl_obj*, %struct.szl_obj** %45
%47 = call i32 @szl_as_str(%struct.szl_interp* %42, %struct.szl_obj* %46, i8** %14, i64* %16)
%48 = icmp ne i32 %47, 0
br i1 %48, label %52, label %49
49: ; preds = %41
%50 = load %struct.szl_obj*, %struct.szl_obj** %12
%51 = call i32 @szl_unref(%struct.szl_obj* %50)
store %struct.szl_obj* null, %struct.szl_obj** %6
br label %140
52: ; preds = %41
%53 = load i32, i32* %11
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %78
55: ; preds = %52
store i32 0, i32* %21
%56 = load i64, i64* %16
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %76
58: ; preds = %55
store i64 0, i64* %19
br label %59
59: ; preds = %72, %58
%60 = load i64, i64* %19
%61 = load i64, i64* %16
%62 = icmp ult i64 %60, %61
br i1 %62, label %63, label %75
63: ; preds = %59
%64 = load i8*, i8** %14
%65 = load i64, i64* %19
%66 = getelementptr inbounds i8, i8* %64, i64 %65
%67 = load i8, i8* %66
%68 = call i64 @szl_isspace(i8 signext %67)
%69 = icmp ne i64 %68, 0
br i1 %69, label %70, label %71
70: ; preds = %63
store i32 1, i32* %21
br label %75
71: ; preds = %63
br label %72
72: ; preds = %71
%73 = load i64, i64* %19
%74 = add i64 %73, 1
store i64 %74, i64* %19
br label %59
75: ; preds = %70, %59
br label %77
76: ; preds = %55
store i32 1, i32* %21
br label %77
77: ; preds = %76, %75
br label %78
78: ; preds = %77, %52
%79 = load i32, i32* %21
%80 = icmp ne i32 %79, 0
br i1 %80, label %81, label %105
81: ; preds = %78
%82 = load i8*, i8** %14
%83 = call i32 @asprintf(i8** %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %82)
store i32 %83, i32* %22
%84 = load i32, i32* %22
%85 = icmp slt i32 %84, 0
br i1 %85, label %86, label %89
86: ; preds = %81
%87 = load %struct.szl_obj*, %struct.szl_obj** %12
%88 = call i32 @szl_unref(%struct.szl_obj* %87)
store %struct.szl_obj* null, %struct.szl_obj** %6
br label %140
89: ; preds = %81
%90 = load %struct.szl_interp*, %struct.szl_interp** %7
%91 = load %struct.szl_obj*, %struct.szl_obj** %12
%92 = load i8*, i8** %15
%93 = load i32, i32* %22
%94 = sext i32 %93 to i64
%95 = call i32 @szl_str_append_str(%struct.szl_interp* %90, %struct.szl_obj* %91, i8* %92, i64 %94)
%96 = icmp ne i32 %95, 0
br i1 %96, label %102, label %97
97: ; preds = %89
%98 = load i8*, i8** %15
%99 = call i32 @free(i8* %98)
%100 = load %struct.szl_obj*, %struct.szl_obj** %12
%101 = call i32 @szl_unref(%struct.szl_obj* %100)
store %struct.szl_obj* null, %struct.szl_obj** %6
br label %140
102: ; preds = %89
%103 = load i8*, i8** %15
%104 = call i32 @free(i8* %103)
br label %116
105: ; preds = %78
%106 = load %struct.szl_interp*, %struct.szl_interp** %7
%107 = load %struct.szl_obj*, %struct.szl_obj** %12
%108 = load i8*, i8** %14
%109 = load i64, i64* %16
%110 = call i32 @szl_str_append_str(%struct.szl_interp* %106, %struct.szl_obj* %107, i8* %108, i64 %109)
%111 = icmp ne i32 %110, 0
br i1 %111, label %115, label %112
112: ; preds = %105
%113 = load %struct.szl_obj*, %struct.szl_obj** %12
%114 = call i32 @szl_unref(%struct.szl_obj* %113)
store %struct.szl_obj* null, %struct.szl_obj** %6
br label %140
115: ; preds = %105
br label %116
116: ; preds = %115, %102
%117 = load i64, i64* %17
%118 = icmp ne i64 %117, 0
br i1 %118, label %119, label %134
119: ; preds = %116
%120 = load i64, i64* %18
%121 = load i64, i64* %20
%122 = icmp ne i64 %120, %121
br i1 %122, label %123, label %134
123: ; preds = %119
%124 = load %struct.szl_interp*, %struct.szl_interp** %7
%125 = load %struct.szl_obj*, %struct.szl_obj** %12
%126 = load i8*, i8** %13
%127 = load i64, i64* %17
%128 = call i32 @szl_str_append_str(%struct.szl_interp* %124, %struct.szl_obj* %125, i8* %126, i64 %127)
%129 = icmp ne i32 %128, 0
br i1 %129, label %133, label %130
130: ; preds = %123
%131 = load %struct.szl_obj*, %struct.szl_obj** %12
%132 = call i32 @szl_unref(%struct.szl_obj* %131)
store %struct.szl_obj* null, %struct.szl_obj** %6
br label %140
133: ; preds = %123
br label %134
134: ; preds = %133, %119, %116
br label %135
135: ; preds = %134
%136 = load i64, i64* %18
%137 = add i64 %136, 1
store i64 %137, i64* %18
br label %37
138: ; preds = %37
%139 = load %struct.szl_obj*, %struct.szl_obj** %12
store %struct.szl_obj* %139, %struct.szl_obj** %6
br label %140
140: ; preds = %138, %130, %112, %97, %86, %49, %35, %29
%141 = load %struct.szl_obj*, %struct.szl_obj** %6
ret %struct.szl_obj* %141
}

LLVM IR (-O2):
%struct.szl_interp = type { i32 }
%struct.szl_obj = type { i32 }
@.str = [1 x i8] zeroinitializer
@.str.1 = [5 x i8] c"{%s}\00"
define %struct.szl_obj* @szl_join(%struct.szl_interp* %0, %struct.szl_obj* %1, %struct.szl_obj** nocapture %2, i64 %3, i32 %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i64
%10 = alloca i64
%11 = bitcast i8** %6 to i8*
%12 = bitcast i8** %7 to i8*
%13 = bitcast i8** %8 to i8*
%14 = bitcast i64* %9 to i8*
%15 = bitcast i64* %10 to i8*
%16 = add i64 %3, -1
%17 = call i32 @szl_as_str(%struct.szl_interp* %0, %struct.szl_obj* %1, i8** %6, i64* %10)
%18 = icmp eq i32 %17, 0
br i1 %18, label %84, label %19
19: ; preds = %5
%20 = call %struct.szl_obj* @szl_new_str(%struct.szl_interp* %0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i32 0)
%21 = icmp eq %struct.szl_obj* %20, null
br i1 %21, label %84, label %22
22: ; preds = %19
%23 = icmp eq i64 %3, 0
br i1 %23, label %84, label %24
24: ; preds = %22
%25 = icmp eq i32 %4, 0
br label %26
26: ; preds = %24, %79
%27 = phi i32 [ 0, %24 ], [ %70, %79 ]
%28 = phi i64 [ 0, %24 ], [ %80, %79 ]
%29 = getelementptr inbounds %struct.szl_obj*, %struct.szl_obj** %2, i64 %28
%30 = load %struct.szl_obj*, %struct.szl_obj** %29
%31 = call i32 @szl_as_str(%struct.szl_interp* %0, %struct.szl_obj* %30, i8** %7, i64* %9)
%32 = icmp eq i32 %31, 0
br i1 %32, label %82, label %33
33: ; preds = %26
br i1 %25, label %48, label %34
34: ; preds = %33
%35 = load i64, i64* %9
%36 = icmp eq i64 %35, 0
br i1 %36, label %52, label %40
37: ; preds = %40
%38 = load i64, i64* %9
%39 = icmp ult i64 %47, %38
br i1 %39, label %40, label %64
40: ; preds = %34, %37
%41 = phi i64 [ %47, %37 ], [ 0, %34 ]
%42 = load i8*, i8** %7
%43 = getelementptr inbounds i8, i8* %42, i64 %41
%44 = load i8, i8* %43
%45 = call i64 @szl_isspace(i8 signext %44)
%46 = icmp eq i64 %45, 0
%47 = add nuw i64 %41, 1
br i1 %46, label %37, label %52
48: ; preds = %33
%49 = icmp eq i32 %27, 0
br i1 %49, label %50, label %52
50: ; preds = %48
%51 = load i64, i64* %9
br label %64
52: ; preds = %40, %34, %48
%53 = phi i32 [ %27, %48 ], [ 1, %34 ], [ 1, %40 ]
%54 = load i8*, i8** %7
%55 = call i32 @asprintf(i8** %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %54)
%56 = icmp slt i32 %55, 0
br i1 %56, label %82, label %57
57: ; preds = %52
%58 = load i8*, i8** %8
%59 = zext i32 %55 to i64
%60 = call i32 @szl_str_append_str(%struct.szl_interp* %0, %struct.szl_obj* %20, i8* %58, i64 %59)
%61 = icmp eq i32 %60, 0
%62 = load i8*, i8** %8
%63 = call i32 @free(i8* %62)
br i1 %61, label %82, label %69
64: ; preds = %37, %50
%65 = phi i64 [ %51, %50 ], [ %38, %37 ]
%66 = load i8*, i8** %7
%67 = call i32 @szl_str_append_str(%struct.szl_interp* %0, %struct.szl_obj* %20, i8* %66, i64 %65)
%68 = icmp eq i32 %67, 0
br i1 %68, label %82, label %69
69: ; preds = %57, %64
%70 = phi i32 [ 0, %64 ], [ %53, %57 ]
%71 = load i64, i64* %10
%72 = icmp eq i64 %71, 0
%73 = icmp eq i64 %28, %16
%74 = select i1 %72, i1 true, i1 %73
br i1 %74, label %79, label %75
75: ; preds = %69
%76 = load i8*, i8** %6
%77 = call i32 @szl_str_append_str(%struct.szl_interp* %0, %struct.szl_obj* %20, i8* %76, i64 %71)
%78 = icmp eq i32 %77, 0
br i1 %78, label %82, label %79
79: ; preds = %69, %75
%80 = add nuw i64 %28, 1
%81 = icmp eq i64 %80, %3
br i1 %81, label %84, label %26
82: ; preds = %75, %64, %57, %52, %26
%83 = call i32 @szl_unref(%struct.szl_obj* %20)
br label %84
84: ; preds = %79, %82, %22, %19, %5
%85 = phi %struct.szl_obj* [ null, %5 ], [ null, %19 ], [ %20, %22 ], [ null, %82 ], [ %20, %79 ]
ret %struct.szl_obj* %85
}