#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ folderview_print_item(int /*<<< orphan*/ *, char *, char *,
                                         char *);
void folderview_print(const char *path, FILE *out) {
  folderview_print_item(out, "", "/", "Grebo IK");
  folderview_print_item(out, "-", "/fotboll", "Fotboll");
  folderview_print_item(out, "|/", "/fotboll/ungdom", "Ungdom");
  folderview_print_item(out, "| \\", "/fotboll/ungdom/boll-lek", "Boll-lek");
  folderview_print_item(out, "+", "/tennis", "Tennis");
  folderview_print_item(out, "+", "/innebandy", "Innebandy");
  folderview_print_item(out, "x", "/isbanan", "Isbanan");
}


x86 assembly (clang, -O0):
<folderview_print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xf32(%rip),%rsi
lea    0xeeb(%rip),%rdx
lea    0xec7(%rip),%rcx
call   1030 <folderview_print_item@plt>
mov    -0x10(%rbp),%rdi
lea    0xec0(%rip),%rsi
lea    0xebb(%rip),%rdx
lea    0xebd(%rip),%rcx
call   1030 <folderview_print_item@plt>
mov    -0x10(%rbp),%rdi
lea    0xeb5(%rip),%rsi
lea    0xeb1(%rip),%rdx
lea    0xeba(%rip),%rcx
call   1030 <folderview_print_item@plt>
mov    -0x10(%rbp),%rdi
lea    0xeb1(%rip),%rsi
lea    0xeae(%rip),%rdx
lea    0xec0(%rip),%rcx
call   1030 <folderview_print_item@plt>
mov    -0x10(%rbp),%rdi
lea    0xeb9(%rip),%rsi
lea    0xeb4(%rip),%rdx
lea    0xeb5(%rip),%rcx
call   1030 <folderview_print_item@plt>
mov    -0x10(%rbp),%rdi
lea    0xe9b(%rip),%rsi
lea    0xea5(%rip),%rdx
lea    0xea9(%rip),%rcx
call   1030 <folderview_print_item@plt>
mov    -0x10(%rbp),%rdi
lea    0xea3(%rip),%rsi
lea    0xe9e(%rip),%rdx
lea    0xea0(%rip),%rcx
call   1030 <folderview_print_item@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<folderview_print>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
lea    0xf3f(%rip),%rsi
lea    0xef8(%rip),%rdx
lea    0xed4(%rip),%rcx
mov    %rbx,%rdi
call   1030 <folderview_print_item@plt>
lea    0xece(%rip),%rsi
lea    0xec9(%rip),%rdx
lea    0xecb(%rip),%rcx
mov    %rbx,%rdi
call   1030 <folderview_print_item@plt>
lea    0xec4(%rip),%rsi
lea    0xec0(%rip),%rdx
lea    0xec9(%rip),%rcx
mov    %rbx,%rdi
call   1030 <folderview_print_item@plt>
lea    0xec1(%rip),%rsi
lea    0xebe(%rip),%rdx
lea    0xed0(%rip),%rcx
mov    %rbx,%rdi
call   1030 <folderview_print_item@plt>
lea    0xeca(%rip),%r14
lea    0xec5(%rip),%rdx
lea    0xec6(%rip),%rcx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <folderview_print_item@plt>
lea    0xebb(%rip),%rdx
lea    0xebf(%rip),%rcx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <folderview_print_item@plt>
lea    0xeb7(%rip),%rsi
lea    0xeb2(%rip),%rdx
lea    0xeb4(%rip),%rcx
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <folderview_print_item@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [2 x i8] c"/\00"
@.str.2 = [9 x i8] c"Grebo IK\00"
@.str.3 = [2 x i8] c"-\00"
@.str.4 = [9 x i8] c"/fotboll\00"
@.str.5 = [8 x i8] c"Fotboll\00"
@.str.6 = [3 x i8] c"|/\00"
@.str.7 = [16 x i8] c"/fotboll/ungdom\00"
@.str.8 = [7 x i8] c"Ungdom\00"
@.str.9 = [4 x i8] c"| \\\00"
@.str.10 = [25 x i8] c"/fotboll/ungdom/boll-lek\00"
@.str.11 = [9 x i8] c"Boll-lek\00"
@.str.12 = [2 x i8] c"+\00"
@.str.13 = [8 x i8] c"/tennis\00"
@.str.14 = [7 x i8] c"Tennis\00"
@.str.15 = [11 x i8] c"/innebandy\00"
@.str.16 = [10 x i8] c"Innebandy\00"
@.str.17 = [2 x i8] c"x\00"
@.str.18 = [9 x i8] c"/isbanan\00"
@.str.19 = [8 x i8] c"Isbanan\00"
define void @folderview_print(i8* %0, i32* %1) {
%3 = alloca i8*
%4 = alloca i32*
store i8* %0, i8** %3
store i32* %1, i32** %4
%5 = load i32*, i32** %4
%6 = call i32 @folderview_print_item(i32* %5, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32*, i32** %4
%8 = call i32 @folderview_print_item(i32* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%9 = load i32*, i32** %4
%10 = call i32 @folderview_print_item(i32* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%11 = load i32*, i32** %4
%12 = call i32 @folderview_print_item(i32* %11, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%13 = load i32*, i32** %4
%14 = call i32 @folderview_print_item(i32* %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
%15 = load i32*, i32** %4
%16 = call i32 @folderview_print_item(i32* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0))
%17 = load i32*, i32** %4
%18 = call i32 @folderview_print_item(i32* %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.19, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [2 x i8] c"/\00"
@.str.2 = [9 x i8] c"Grebo IK\00"
@.str.3 = [2 x i8] c"-\00"
@.str.4 = [9 x i8] c"/fotboll\00"
@.str.5 = [8 x i8] c"Fotboll\00"
@.str.6 = [3 x i8] c"|/\00"
@.str.7 = [16 x i8] c"/fotboll/ungdom\00"
@.str.8 = [7 x i8] c"Ungdom\00"
@.str.9 = [4 x i8] c"| \\\00"
@.str.10 = [25 x i8] c"/fotboll/ungdom/boll-lek\00"
@.str.11 = [9 x i8] c"Boll-lek\00"
@.str.12 = [2 x i8] c"+\00"
@.str.13 = [8 x i8] c"/tennis\00"
@.str.14 = [7 x i8] c"Tennis\00"
@.str.15 = [11 x i8] c"/innebandy\00"
@.str.16 = [10 x i8] c"Innebandy\00"
@.str.17 = [2 x i8] c"x\00"
@.str.18 = [9 x i8] c"/isbanan\00"
@.str.19 = [8 x i8] c"Isbanan\00"
define void @folderview_print(i8* nocapture readnone %0, i32* %1) {
%3 = tail call i32 @folderview_print_item(i32* %1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @folderview_print_item(i32* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%5 = tail call i32 @folderview_print_item(i32* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%6 = tail call i32 @folderview_print_item(i32* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%7 = tail call i32 @folderview_print_item(i32* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
%8 = tail call i32 @folderview_print_item(i32* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0))
%9 = tail call i32 @folderview_print_item(i32* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.19, i64 0, i64 0))
ret void
}