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

/* Variables and functions */
int /*<<< orphan*/ errno;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
char *getcwd(int /*<<< orphan*/ *, int);
int mkdir(char *, int);
int /*<<< orphan*/ mkpage();
int optind;
int /*<<< orphan*/ printf(char *, char *, ...);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ snprintf(char *, int, char *, char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, char *, char *);
char *strerror(int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char *);
int /*<<< orphan*/ strncmp(char *, char *, int);
int /*<<< orphan*/ strncpy(char *, char *, int);
int cmd_init(int argc, char **argv) {
  char *cwd;
  cwd = getcwd(NULL, 64);
  if (argv[optind + 1] != NULL) {
    if (!strncmp(&argv[optind + 1][0], "/", 1)) {
      cwd = argv[optind + 1];
    } else {
      if (!strncmp(&argv[optind + 1][1], "/", 1)) {
        sprintf(cwd, "%s/%s", cwd, argv[optind + 1] + 2);
      } else {
        sprintf(cwd, "%s/%s", cwd, argv[optind + 1]);
      }
    }
  }
  printf("Initializing new journal in '%s'\n", cwd);
  char target[strlen(cwd) + 10];
  strncpy(target, cwd, sizeof(target));
  snprintf(target, sizeof(target), "%s/%s", target, ".journal");
  int result = mkdir(target, 0755);
  if (result < 0) {
    printf("Error: %s in '%s'\n", strerror(errno), cwd);
    return 1;
  }
  FILE *fp = fopen(".journal/.htaccess", "w+");
  fputs("order deny,allow\n"
        "deny from all\n"
        "allow from 127.0.0.1\n",
        fp);
  fclose(fp);
  mkdir(".journal/posts", 0755);
  mkdir(".journal/pages", 0755);
  mkdir(".journal/templates", 0755);
  mkdir(".journal/hooks", 0755);
  mkpage();
  puts("Successfully initialized a new journal.");
  return 0;
}


x86 assembly (clang, -O0):
<cmd_init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
mov    %eax,%edi
mov    $0x40,%esi
call   10d0 <getcwd@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x2ddc(%rip),%rcx
mov    (%rcx),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     130e <cmd_init+0x12e>
mov    -0x10(%rbp),%rax
mov    0x2dbe(%rip),%rcx
mov    (%rcx),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdc3(%rip),%rsi
mov    $0x1,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%eax
jne    1270 <cmd_init+0x90>
mov    -0x10(%rbp),%rax
mov    0x2d8d(%rip),%rcx
mov    (%rcx),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x18(%rbp)
jmp    1309 <cmd_init+0x129>
mov    -0x10(%rbp),%rax
mov    0x2d6d(%rip),%rcx
mov    (%rcx),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
add    $0x1,%rdi
lea    0xd6e(%rip),%rsi
mov    $0x1,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%eax
jne    12d9 <cmd_init+0xf9>
mov    -0x18(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x10(%rbp),%rax
mov    0x2d30(%rip),%rcx
mov    (%rcx),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rcx
add    $0x2,%rcx
lea    0xd33(%rip),%rsi
call   10f0 <sprintf@plt>
jmp    1304 <cmd_init+0x124>
mov    -0x18(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x10(%rbp),%rax
mov    0x2cfc(%rip),%rcx
mov    (%rcx),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rcx
lea    0xd03(%rip),%rsi
call   10f0 <sprintf@plt>
jmp    1309 <cmd_init+0x129>
jmp    130e <cmd_init+0x12e>
mov    -0x18(%rbp),%rsi
lea    0xcef(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1080 <strlen@plt>
add    $0xa,%eax
mov    %rax,-0x48(%rbp)
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,-0x40(%rbp)
mov    %rdi,%rsp
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rsi
mov    %eax,%edx
call   1030 <strncpy@plt>
mov    -0x40(%rbp),%rcx
mov    -0x48(%rbp),%rax
mov    %eax,%esi
lea    0xc93(%rip),%rdx
lea    0xcb4(%rip),%r8
mov    %rcx,%rdi
call   10a0 <snprintf@plt>
mov    -0x40(%rbp),%rdi
mov    $0x1ed,%esi
call   1050 <mkdir@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jge    13cf <cmd_init+0x1ef>
mov    0x2c38(%rip),%rax
mov    (%rax),%edi
call   1100 <strerror@plt>
mov    %rax,%rsi
mov    -0x18(%rbp),%rdx
lea    0xc7e(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x1,-0x30(%rbp)
jmp    1464 <cmd_init+0x284>
lea    0xc70(%rip),%rdi
lea    0xc7c(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rsi
lea    0xc6b(%rip),%rdi
call   10c0 <fputs@plt>
mov    -0x38(%rbp),%rdi
call   1070 <fclose@plt>
lea    0xc8b(%rip),%rdi
mov    $0x1ed,%esi
call   1050 <mkdir@plt>
lea    0xc89(%rip),%rdi
mov    $0x1ed,%esi
call   1050 <mkdir@plt>
lea    0xc87(%rip),%rdi
mov    $0x1ed,%esi
call   1050 <mkdir@plt>
lea    0xc89(%rip),%rdi
mov    $0x1ed,%esi
call   1050 <mkdir@plt>
mov    $0x0,%al
call   10b0 <mkpage@plt>
lea    0xc80(%rip),%rdi
call   1060 <puts@plt>
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x30(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmd_init>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rsi,%rbx
xor    %edi,%edi
mov    $0x40,%esi
call   10c0 <getcwd@plt>
mov    %rax,%r15
mov    0x2de4(%rip),%r14
movslq (%r14),%rax
mov    0x8(%rbx,%rax,8),%rdi
test   %rdi,%rdi
je     126a <cmd_init+0x8a>
lea    0xde8(%rip),%rsi
mov    $0x1,%edx
call   1040 <strncmp@plt>
movslq (%r14),%rcx
mov    0x8(%rbx,%rcx,8),%rdi
test   %eax,%eax
je     1267 <cmd_init+0x87>
add    $0x1,%rdi
lea    0xdc7(%rip),%rsi
mov    $0x1,%edx
call   1040 <strncmp@plt>
movslq (%r14),%rcx
mov    0x8(%rbx,%rcx,8),%rcx
test   %eax,%eax
jne    1253 <cmd_init+0x73>
add    $0x2,%rcx
lea    0xda8(%rip),%rsi
mov    %r15,%rdi
mov    %r15,%rdx
call   10e0 <sprintf@plt>
jmp    126a <cmd_init+0x8a>
mov    %rdi,%r15
lea    0xd97(%rip),%rdi
xor    %r14d,%r14d
mov    %r15,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r15,%rdi
call   1080 <strlen@plt>
lea    0xa(%rax),%r12d
mov    %rsp,%rbx
lea    0xf(%r12),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r12d,%edx
call   1030 <strncpy@plt>
lea    0xd51(%rip),%rdx
lea    0xd72(%rip),%r8
mov    %rbx,%rdi
mov    %r12d,%esi
mov    %rbx,%rcx
call   10a0 <snprintf@plt>
mov    %rbx,%rdi
mov    $0x1ed,%esi
call   1050 <mkdir@plt>
test   %eax,%eax
js     136b <cmd_init+0x18b>
lea    0xd64(%rip),%rdi
lea    0xd70(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,%rbx
lea    0xd64(%rip),%rdi
mov    $0x34,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   10f0 <fwrite@plt>
mov    %rbx,%rdi
call   1070 <fclose@plt>
lea    0xd78(%rip),%rdi
mov    $0x1ed,%esi
call   1050 <mkdir@plt>
lea    0xd76(%rip),%rdi
mov    $0x1ed,%esi
call   1050 <mkdir@plt>
lea    0xd74(%rip),%rdi
mov    $0x1ed,%esi
call   1050 <mkdir@plt>
lea    0xd76(%rip),%rdi
mov    $0x1ed,%esi
call   1050 <mkdir@plt>
xor    %eax,%eax
call   10b0 <mkpage@plt>
lea    0xd6d(%rip),%rdi
call   1060 <puts@plt>
jmp    1393 <cmd_init+0x1b3>
mov    0x2c66(%rip),%rax
mov    (%rax),%edi
call   1100 <strerror@plt>
lea    0xcb3(%rip),%rdi
mov    %rax,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1090 <printf@plt>
mov    $0x1,%r14d
mov    %r14d,%eax
lea    -0x20(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@optind = global i32 0
@.str = [2 x i8] c"/\00"
@.str.1 = [6 x i8] c"%s/%s\00"
@.str.2 = [34 x i8] c"Initializing new journal in '%s'\0A\00"
@.str.3 = [9 x i8] c".journal\00"
@.str.4 = [19 x i8] c"Error: %s in '%s'\0A\00"
@errno = global i32 0
@.str.5 = [19 x i8] c".journal/.htaccess\00"
@.str.6 = [3 x i8] c"w+\00"
@.str.7 = [53 x i8] c"order deny,allow\0Adeny from all\0Aallow from 127.0.0.1\0A\00"
@.str.8 = [15 x i8] c".journal/posts\00"
@.str.9 = [15 x i8] c".journal/pages\00"
@.str.10 = [19 x i8] c".journal/templates\00"
@.str.11 = [15 x i8] c".journal/hooks\00"
@.str.12 = [40 x i8] c"Successfully initialized a new journal.\00"
define i32 @cmd_init(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32*
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = call i8* @getcwd(i32* null, i32 64)
store i8* %12, i8** %6
%13 = load i8**, i8*** %5
%14 = load i32, i32* @optind
%15 = add nsw i32 %14, 1
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8*, i8** %13, i64 %16
%18 = load i8*, i8** %17
%19 = icmp ne i8* %18, null
br i1 %19, label %20, label %70
20: ; preds = %2
%21 = load i8**, i8*** %5
%22 = load i32, i32* @optind
%23 = add nsw i32 %22, 1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8*, i8** %21, i64 %24
%26 = load i8*, i8** %25
%27 = getelementptr inbounds i8, i8* %26, i64 0
%28 = call i32 @strncmp(i8* %27, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
%29 = icmp ne i32 %28, 0
br i1 %29, label %37, label %30
30: ; preds = %20
%31 = load i8**, i8*** %5
%32 = load i32, i32* @optind
%33 = add nsw i32 %32, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8*, i8** %31, i64 %34
%36 = load i8*, i8** %35
store i8* %36, i8** %6
br label %69
37: ; preds = %20
%38 = load i8**, i8*** %5
%39 = load i32, i32* @optind
%40 = add nsw i32 %39, 1
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8*, i8** %38, i64 %41
%43 = load i8*, i8** %42
%44 = getelementptr inbounds i8, i8* %43, i64 1
%45 = call i32 @strncmp(i8* %44, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
%46 = icmp ne i32 %45, 0
br i1 %46, label %58, label %47
47: ; preds = %37
%48 = load i8*, i8** %6
%49 = load i8*, i8** %6
%50 = load i8**, i8*** %5
%51 = load i32, i32* @optind
%52 = add nsw i32 %51, 1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8*, i8** %50, i64 %53
%55 = load i8*, i8** %54
%56 = getelementptr inbounds i8, i8* %55, i64 2
%57 = call i32 @sprintf(i8* %48, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %49, i8* %56)
br label %68
58: ; preds = %37
%59 = load i8*, i8** %6
%60 = load i8*, i8** %6
%61 = load i8**, i8*** %5
%62 = load i32, i32* @optind
%63 = add nsw i32 %62, 1
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8*, i8** %61, i64 %64
%66 = load i8*, i8** %65
%67 = call i32 @sprintf(i8* %59, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %60, i8* %66)
br label %68
68: ; preds = %58, %47
br label %69
69: ; preds = %68, %30
br label %70
70: ; preds = %69, %2
%71 = load i8*, i8** %6
%72 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i8* %71)
%73 = load i8*, i8** %6
%74 = call i32 @strlen(i8* %73)
%75 = add nsw i32 %74, 10
%76 = zext i32 %75 to i64
%77 = call i8* @llvm.stacksave()
store i8* %77, i8** %7
%78 = alloca i8, i64 %76
store i64 %76, i64* %8
%79 = load i8*, i8** %6
%80 = trunc i64 %76 to i32
%81 = call i32 @strncpy(i8* %78, i8* %79, i32 %80)
%82 = trunc i64 %76 to i32
%83 = call i32 @snprintf(i8* %78, i32 %82, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %78, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%84 = call i32 @mkdir(i8* %78, i32 493)
store i32 %84, i32* %9
%85 = load i32, i32* %9
%86 = icmp slt i32 %85, 0
br i1 %86, label %87, label %92
87: ; preds = %70
%88 = load i32, i32* @errno
%89 = call i8* @strerror(i32 %88)
%90 = load i8*, i8** %6
%91 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* %89, i8* %90)
store i32 1, i32* %3
store i32 1, i32* %10
br label %104
92: ; preds = %70
%93 = call i32* @fopen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
store i32* %93, i32** %11
%94 = load i32*, i32** %11
%95 = call i32 @fputs(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.7, i64 0, i64 0), i32* %94)
%96 = load i32*, i32** %11
%97 = call i32 @fclose(i32* %96)
%98 = call i32 @mkdir(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i32 493)
%99 = call i32 @mkdir(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 493)
%100 = call i32 @mkdir(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), i32 493)
%101 = call i32 @mkdir(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i32 493)
%102 = call i32 (...) @mkpage()
%103 = call i32 @puts(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.12, i64 0, i64 0))
store i32 0, i32* %3
store i32 1, i32* %10
br label %104
104: ; preds = %92, %87
%105 = load i8*, i8** %7
%106 = load i32, i32* %3
ret i32 %106
}

LLVM IR (-O2):
@optind = global i32 0
@.str = [2 x i8] c"/\00"
@.str.1 = [6 x i8] c"%s/%s\00"
@.str.2 = [34 x i8] c"Initializing new journal in '%s'\0A\00"
@.str.3 = [9 x i8] c".journal\00"
@.str.4 = [19 x i8] c"Error: %s in '%s'\0A\00"
@errno = global i32 0
@.str.5 = [19 x i8] c".journal/.htaccess\00"
@.str.6 = [3 x i8] c"w+\00"
@.str.7 = [53 x i8] c"order deny,allow\0Adeny from all\0Aallow from 127.0.0.1\0A\00"
@.str.8 = [15 x i8] c".journal/posts\00"
@.str.9 = [15 x i8] c".journal/pages\00"
@.str.10 = [19 x i8] c".journal/templates\00"
@.str.11 = [15 x i8] c".journal/hooks\00"
@.str.12 = [40 x i8] c"Successfully initialized a new journal.\00"
define i32 @cmd_init(i32 %0, i8** nocapture %1) {
%3 = tail call i8* @getcwd(i32* null, i32 64)
%4 = load i32, i32* @optind
%5 = add nsw i32 %4, 1
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i8*, i8** %1, i64 %6
%8 = load i8*, i8** %7
%9 = icmp eq i8* %8, null
br i1 %9, label %32, label %10
10: ; preds = %2
%11 = tail call i32 @strncmp(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
%12 = icmp eq i32 %11, 0
%13 = load i32, i32* @optind
%14 = add nsw i32 %13, 1
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8*, i8** %1, i64 %15
%17 = load i8*, i8** %16
br i1 %12, label %32, label %18
18: ; preds = %10
%19 = getelementptr inbounds i8, i8* %17, i64 1
%20 = tail call i32 @strncmp(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
%21 = icmp eq i32 %20, 0
%22 = load i32, i32* @optind
%23 = add nsw i32 %22, 1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8*, i8** %1, i64 %24
%26 = load i8*, i8** %25
br i1 %21, label %27, label %30
27: ; preds = %18
%28 = getelementptr inbounds i8, i8* %26, i64 2
%29 = tail call i32 @sprintf(i8* dereferenceable(1) %3, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %3, i8* %28)
br label %32
30: ; preds = %18
%31 = tail call i32 @sprintf(i8* dereferenceable(1) %3, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %3, i8* %26)
br label %32
32: ; preds = %10, %30, %27, %2
%33 = phi i8* [ %3, %30 ], [ %3, %27 ], [ %3, %2 ], [ %17, %10 ]
%34 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i8* %33)
%35 = tail call i32 @strlen(i8* %33)
%36 = add nsw i32 %35, 10
%37 = zext i32 %36 to i64
%38 = alloca i8, i64 %37
%39 = call i32 @strncpy(i8* %38, i8* %33, i32 %36)
%40 = call i32 @snprintf(i8* %38, i32 %36, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %38, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%41 = call i32 @mkdir(i8* %38, i32 493)
%42 = icmp slt i32 %41, 0
br i1 %42, label %43, label %47
43: ; preds = %32
%44 = load i32, i32* @errno
%45 = call i8* @strerror(i32 %44)
%46 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* %45, i8* %33)
br label %57
47: ; preds = %32
%48 = call i32* @fopen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%49 = call i64 @fwrite(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.7, i64 0, i64 0), i64 52, i64 1, i32* %48)
%50 = call i32 @fclose(i32* %48)
%51 = call i32 @mkdir(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i32 493)
%52 = call i32 @mkdir(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 493)
%53 = call i32 @mkdir(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), i32 493)
%54 = call i32 @mkdir(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i32 493)
%55 = call i32 (...) @mkpage()
%56 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.12, i64 0, i64 0))
br label %57
57: ; preds = %47, %43
%58 = phi i32 [ 1, %43 ], [ 0, %47 ]
ret i32 %58
}