#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 */
int /*<<< orphan*/ io_closefile();
int /*<<< orphan*/ io_openfile(int /*<<< orphan*/);
int /*<<< orphan*/ io_print(char *, ...);
int /*<<< orphan*/ path_join(int /*<<< orphan*/, int /*<<< orphan*/, char *);
int /*<<< orphan*/ prj_get_cfgname();
int /*<<< orphan*/ prj_get_name();
int prj_get_numconfigs();
int prj_get_numpackages();
int /*<<< orphan*/ prj_get_path();
char *prj_get_pkgfilename(char *);
int /*<<< orphan*/ prj_get_pkgname();
int /*<<< orphan*/ prj_select_config(int);
int /*<<< orphan*/ prj_select_package(int);
scalar_t__ startsWith(char const *, char *);
int writeWorkspace() {
  int i, j;
  if (!io_openfile(path_join(prj_get_path(), prj_get_name(), "workspace")))
    return 0;
  io_print("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
  io_print("<CodeLite_Workspace Name=\"%s\" Database=\"./%s.tags\">\n",
           prj_get_name(), prj_get_name());
  for (i = 0; i < prj_get_numpackages(); ++i) {
    const char *filename;
    prj_select_package(i);
    filename = prj_get_pkgfilename("project");
    if (startsWith(filename, "./"))
      filename += 2;
    io_print("  <Project Name=\"%s\" Path=\"%s\" Active=\"%s\" />\n",
             prj_get_pkgname(), filename, (0 == i) ? "Yes" : "No");
  }
  io_print("  <BuildMatrix>\n");
  for (i = 0; i < prj_get_numconfigs(); ++i) {
    prj_select_config(i);
    io_print("    <WorkspaceConfiguration Name=\"%s\" Selected=\"yes\">\n",
             prj_get_cfgname());
    for (j = 0; j < prj_get_numpackages(); ++j) {
      prj_select_package(j);
      io_print("      <Project Name=\"%s\" ConfigName=\"%s\"/>\n",
               prj_get_pkgname(), prj_get_cfgname());
    }
    io_print("    </WorkspaceConfiguration>\n");
  }
  io_print("  </BuildMatrix>\n");
  io_print("</CodeLite_Workspace>\n");
  io_closefile();
  return 1;
}


x86 assembly (clang, -O0):
<writeWorkspace>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    $0x0,%al
call   1030 <prj_get_path@plt>
mov    %eax,-0x1c(%rbp)
mov    $0x0,%al
call   1070 <prj_get_name@plt>
mov    -0x1c(%rbp),%edi
mov    %eax,%esi
lea    0xdfb(%rip),%rdx
call   10a0 <path_join@plt>
mov    %eax,%edi
call   1060 <io_openfile@plt>
cmp    $0x0,%eax
jne    1226 <writeWorkspace+0x46>
movl   $0x0,-0x4(%rbp)
jmp    13ea <writeWorkspace+0x20a>
lea    0xddd(%rip),%rdi
mov    $0x0,%al
call   1080 <io_print@plt>
mov    $0x0,%al
call   1070 <prj_get_name@plt>
mov    %eax,-0x20(%rbp)
mov    $0x0,%al
call   1070 <prj_get_name@plt>
mov    -0x20(%rbp),%esi
mov    %eax,%edx
lea    0xde1(%rip),%rdi
mov    $0x0,%al
call   1080 <io_print@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    $0x0,%al
call   1090 <prj_get_numpackages@plt>
mov    %eax,%ecx
mov    -0x24(%rbp),%eax
cmp    %ecx,%eax
jge    12fb <writeWorkspace+0x11b>
mov    -0x8(%rbp),%edi
call   10f0 <prj_select_package@plt>
lea    0xddf(%rip),%rdi
call   10c0 <prj_get_pkgfilename@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xdd3(%rip),%rsi
call   1050 <startsWith@plt>
cmp    $0x0,%rax
je     12b7 <writeWorkspace+0xd7>
mov    -0x18(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x18(%rbp)
mov    $0x0,%al
call   10b0 <prj_get_pkgname@plt>
mov    %eax,%esi
mov    -0x18(%rbp),%rdx
mov    -0x8(%rbp),%r8d
xor    %edi,%edi
lea    0xdd4(%rip),%rcx
lea    0xdc9(%rip),%rax
cmp    %r8d,%edi
cmove  %rax,%rcx
lea    0xd8c(%rip),%rdi
mov    $0x0,%al
call   1080 <io_print@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    125f <writeWorkspace+0x7f>
lea    0xda6(%rip),%rdi
mov    $0x0,%al
call   1080 <io_print@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    $0x0,%al
call   10d0 <prj_get_numconfigs@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%eax
cmp    %ecx,%eax
jge    13c0 <writeWorkspace+0x1e0>
mov    -0x8(%rbp),%edi
call   10e0 <prj_select_config@plt>
mov    $0x0,%al
call   1100 <prj_get_cfgname@plt>
mov    %eax,%esi
lea    0xd77(%rip),%rdi
mov    $0x0,%al
call   1080 <io_print@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    $0x0,%al
call   1090 <prj_get_numpackages@plt>
mov    %eax,%ecx
mov    -0x2c(%rbp),%eax
cmp    %ecx,%eax
jge    13a4 <writeWorkspace+0x1c4>
mov    -0xc(%rbp),%edi
call   10f0 <prj_select_package@plt>
mov    $0x0,%al
call   10b0 <prj_get_pkgname@plt>
mov    %eax,-0x30(%rbp)
mov    $0x0,%al
call   1100 <prj_get_cfgname@plt>
mov    -0x30(%rbp),%esi
mov    %eax,%edx
lea    0xd61(%rip),%rdi
mov    $0x0,%al
call   1080 <io_print@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1350 <writeWorkspace+0x170>
lea    0xd71(%rip),%rdi
mov    $0x0,%al
call   1080 <io_print@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1310 <writeWorkspace+0x130>
lea    0xd74(%rip),%rdi
mov    $0x0,%al
call   1080 <io_print@plt>
lea    0xd78(%rip),%rdi
mov    $0x0,%al
call   1080 <io_print@plt>
mov    $0x0,%al
call   1040 <io_closefile@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<writeWorkspace>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %ebx,%ebx
xor    %eax,%eax
call   1030 <prj_get_path@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1070 <prj_get_name@plt>
lea    0xdfc(%rip),%rdx
mov    %ebp,%edi
mov    %eax,%esi
call   10a0 <path_join@plt>
mov    %eax,%edi
call   1060 <io_openfile@plt>
test   %eax,%eax
je     13d0 <writeWorkspace+0x1f0>
lea    0xde7(%rip),%rdi
xor    %eax,%eax
call   1080 <io_print@plt>
xor    %eax,%eax
call   1070 <prj_get_name@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1070 <prj_get_name@plt>
lea    0xdf1(%rip),%rdi
mov    %ebx,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1080 <io_print@plt>
xor    %eax,%eax
call   1090 <prj_get_numpackages@plt>
test   %eax,%eax
jle    12da <writeWorkspace+0xfa>
lea    0xe0d(%rip),%r15
lea    0xe38(%rip),%r13
lea    0xe35(%rip),%r14
lea    0xdfb(%rip),%r12
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %ebp,%edi
call   10f0 <prj_select_package@plt>
lea    0xdd9(%rip),%rdi
call   10c0 <prj_get_pkgfilename@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r15,%rsi
call   1050 <startsWith@plt>
xor    %ecx,%ecx
test   %rax,%rax
setne  %cl
lea    (%rbx,%rcx,2),%rbx
xor    %eax,%eax
call   10b0 <prj_get_pkgname@plt>
test   %ebp,%ebp
mov    %r14,%rcx
cmove  %r13,%rcx
mov    %r12,%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1080 <io_print@plt>
add    $0x1,%ebp
xor    %eax,%eax
call   1090 <prj_get_numpackages@plt>
cmp    %eax,%ebp
jl     1280 <writeWorkspace+0xa0>
lea    0xdc7(%rip),%rdi
xor    %eax,%eax
call   1080 <io_print@plt>
xor    %eax,%eax
call   10d0 <prj_get_numconfigs@plt>
test   %eax,%eax
jle    13a8 <writeWorkspace+0x1c8>
lea    0xdbb(%rip),%r14
lea    0xdeb(%rip),%r13
lea    0xe10(%rip),%r15
xor    %r12d,%r12d
jmp    133a <writeWorkspace+0x15a>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
xor    %eax,%eax
call   1080 <io_print@plt>
add    $0x1,%r12d
xor    %eax,%eax
call   10d0 <prj_get_numconfigs@plt>
cmp    %eax,%r12d
jge    13a8 <writeWorkspace+0x1c8>
mov    %r12d,%edi
call   10e0 <prj_select_config@plt>
xor    %eax,%eax
call   1100 <prj_get_cfgname@plt>
mov    %r14,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1080 <io_print@plt>
xor    %eax,%eax
call   1090 <prj_get_numpackages@plt>
test   %eax,%eax
jle    1320 <writeWorkspace+0x140>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %ebp,%edi
call   10f0 <prj_select_package@plt>
xor    %eax,%eax
call   10b0 <prj_get_pkgname@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1100 <prj_get_cfgname@plt>
mov    %r13,%rdi
mov    %ebx,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1080 <io_print@plt>
add    $0x1,%ebp
xor    %eax,%eax
call   1090 <prj_get_numpackages@plt>
cmp    %eax,%ebp
jl     1370 <writeWorkspace+0x190>
jmp    1320 <writeWorkspace+0x140>
lea    0xd8c(%rip),%rdi
xor    %eax,%eax
call   1080 <io_print@plt>
lea    0xd90(%rip),%rdi
xor    %eax,%eax
call   1080 <io_print@plt>
xor    %eax,%eax
call   1040 <io_closefile@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [10 x i8] c"workspace\00"
@.str.1 = [40 x i8] c"<?xml version=\221.0\22 encoding=\22utf-8\22?>\0A\00"
@.str.2 = [53 x i8] c"<CodeLite_Workspace Name=\22%s\22 Database=\22./%s.tags\22>\0A\00"
@.str.3 = [8 x i8] c"project\00"
@.str.4 = [3 x i8] c"./\00"
@.str.5 = [47 x i8] c" <Project Name=\22%s\22 Path=\22%s\22 Active=\22%s\22 />\0A\00"
@.str.6 = [4 x i8] c"Yes\00"
@.str.7 = [3 x i8] c"No\00"
@.str.8 = [17 x i8] c" <BuildMatrix>\0A\00"
@.str.9 = [55 x i8] c" <WorkspaceConfiguration Name=\22%s\22 Selected=\22yes\22>\0A\00"
@.str.10 = [44 x i8] c" <Project Name=\22%s\22 ConfigName=\22%s\22/>\0A\00"
@.str.11 = [31 x i8] c" </WorkspaceConfiguration>\0A\00"
@.str.12 = [18 x i8] c" </BuildMatrix>\0A\00"
@.str.13 = [23 x i8] c"</CodeLite_Workspace>\0A\00"
define i32 @writeWorkspace() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i8*
%5 = call i32 (...) @prj_get_path()
%6 = call i32 (...) @prj_get_name()
%7 = call i32 @path_join(i32 %5, i32 %6, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @io_openfile(i32 %7)
%9 = icmp ne i32 %8, 0
br i1 %9, label %11, label %10
10: ; preds = %0
store i32 0, i32* %1
br label %74
11: ; preds = %0
%12 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
%13 = call i32 (...) @prj_get_name()
%14 = call i32 (...) @prj_get_name()
%15 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i32 %13, i32 %14)
store i32 0, i32* %2
br label %16
16: ; preds = %38, %11
%17 = load i32, i32* %2
%18 = call i32 (...) @prj_get_numpackages()
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %41
20: ; preds = %16
%21 = load i32, i32* %2
%22 = call i32 @prj_select_package(i32 %21)
%23 = call i8* @prj_get_pkgfilename(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
store i8* %23, i8** %4
%24 = load i8*, i8** %4
%25 = call i64 @startsWith(i8* %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %20
%28 = load i8*, i8** %4
%29 = getelementptr inbounds i8, i8* %28, i64 2
store i8* %29, i8** %4
br label %30
30: ; preds = %27, %20
%31 = call i32 (...) @prj_get_pkgname()
%32 = load i8*, i8** %4
%33 = load i32, i32* %2
%34 = icmp eq i32 0, %33
%35 = zext i1 %34 to i64
%36 = select i1 %34, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0)
%37 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.5, i64 0, i64 0), i32 %31, i8* %32, i8* %36)
br label %38
38: ; preds = %30
%39 = load i32, i32* %2
%40 = add nsw i32 %39, 1
store i32 %40, i32* %2
br label %16
41: ; preds = %16
%42 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %2
br label %43
43: ; preds = %67, %41
%44 = load i32, i32* %2
%45 = call i32 (...) @prj_get_numconfigs()
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %70
47: ; preds = %43
%48 = load i32, i32* %2
%49 = call i32 @prj_select_config(i32 %48)
%50 = call i32 (...) @prj_get_cfgname()
%51 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.9, i64 0, i64 0), i32 %50)
store i32 0, i32* %3
br label %52
52: ; preds = %62, %47
%53 = load i32, i32* %3
%54 = call i32 (...) @prj_get_numpackages()
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %65
56: ; preds = %52
%57 = load i32, i32* %3
%58 = call i32 @prj_select_package(i32 %57)
%59 = call i32 (...) @prj_get_pkgname()
%60 = call i32 (...) @prj_get_cfgname()
%61 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.10, i64 0, i64 0), i32 %59, i32 %60)
br label %62
62: ; preds = %56
%63 = load i32, i32* %3
%64 = add nsw i32 %63, 1
store i32 %64, i32* %3
br label %52
65: ; preds = %52
%66 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0))
br label %67
67: ; preds = %65
%68 = load i32, i32* %2
%69 = add nsw i32 %68, 1
store i32 %69, i32* %2
br label %43
70: ; preds = %43
%71 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0))
%72 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0))
%73 = call i32 (...) @io_closefile()
store i32 1, i32* %1
br label %74
74: ; preds = %70, %10
%75 = load i32, i32* %1
ret i32 %75
}

LLVM IR (-O2):
@.str = [10 x i8] c"workspace\00"
@.str.1 = [40 x i8] c"<?xml version=\221.0\22 encoding=\22utf-8\22?>\0A\00"
@.str.2 = [53 x i8] c"<CodeLite_Workspace Name=\22%s\22 Database=\22./%s.tags\22>\0A\00"
@.str.3 = [8 x i8] c"project\00"
@.str.4 = [3 x i8] c"./\00"
@.str.5 = [47 x i8] c" <Project Name=\22%s\22 Path=\22%s\22 Active=\22%s\22 />\0A\00"
@.str.6 = [4 x i8] c"Yes\00"
@.str.7 = [3 x i8] c"No\00"
@.str.8 = [17 x i8] c" <BuildMatrix>\0A\00"
@.str.9 = [55 x i8] c" <WorkspaceConfiguration Name=\22%s\22 Selected=\22yes\22>\0A\00"
@.str.10 = [44 x i8] c" <Project Name=\22%s\22 ConfigName=\22%s\22/>\0A\00"
@.str.11 = [31 x i8] c" </WorkspaceConfiguration>\0A\00"
@.str.12 = [18 x i8] c" </BuildMatrix>\0A\00"
@.str.13 = [23 x i8] c"</CodeLite_Workspace>\0A\00"
define i32 @writeWorkspace() {
%1 = tail call i32 (...) @prj_get_path()
%2 = tail call i32 (...) @prj_get_name()
%3 = tail call i32 @path_join(i32 %1, i32 %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @io_openfile(i32 %3)
%5 = icmp eq i32 %4, 0
br i1 %5, label %57, label %6
6: ; preds = %0
%7 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i32 (...) @prj_get_name()
%9 = tail call i32 (...) @prj_get_name()
%10 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i32 %8, i32 %9)
%11 = tail call i32 (...) @prj_get_numpackages()
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %28
13: ; preds = %6, %13
%14 = phi i32 [ %25, %13 ], [ 0, %6 ]
%15 = tail call i32 @prj_select_package(i32 %14)
%16 = tail call i8* @prj_get_pkgfilename(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%17 = tail call i64 @startsWith(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
%19 = select i1 %18, i64 0, i64 2
%20 = getelementptr i8, i8* %16, i64 %19
%21 = tail call i32 (...) @prj_get_pkgname()
%22 = icmp eq i32 %14, 0
%23 = select i1 %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0)
%24 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.5, i64 0, i64 0), i32 %21, i8* %20, i8* %23)
%25 = add nuw nsw i32 %14, 1
%26 = tail call i32 (...) @prj_get_numpackages()
%27 = icmp slt i32 %25, %26
br i1 %27, label %13, label %28
28: ; preds = %13, %6
%29 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%30 = tail call i32 (...) @prj_get_numconfigs()
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %53
32: ; preds = %28, %48
%33 = phi i32 [ %50, %48 ], [ 0, %28 ]
%34 = tail call i32 @prj_select_config(i32 %33)
%35 = tail call i32 (...) @prj_get_cfgname()
%36 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.9, i64 0, i64 0), i32 %35)
%37 = tail call i32 (...) @prj_get_numpackages()
%38 = icmp sgt i32 %37, 0
br i1 %38, label %39, label %48
39: ; preds = %32, %39
%40 = phi i32 [ %45, %39 ], [ 0, %32 ]
%41 = tail call i32 @prj_select_package(i32 %40)
%42 = tail call i32 (...) @prj_get_pkgname()
%43 = tail call i32 (...) @prj_get_cfgname()
%44 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.10, i64 0, i64 0), i32 %42, i32 %43)
%45 = add nuw nsw i32 %40, 1
%46 = tail call i32 (...) @prj_get_numpackages()
%47 = icmp slt i32 %45, %46
br i1 %47, label %39, label %48
48: ; preds = %39, %32
%49 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0))
%50 = add nuw nsw i32 %33, 1
%51 = tail call i32 (...) @prj_get_numconfigs()
%52 = icmp slt i32 %50, %51
br i1 %52, label %32, label %53
53: ; preds = %48, %28
%54 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0))
%55 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0))
%56 = tail call i32 (...) @io_closefile()
br label %57
57: ; preds = %0, %53
%58 = phi i32 [ 1, %53 ], [ 0, %0 ]
ret i32 %58
}