#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  int i;
  if (argc < 2)
    return 1;
  FILE *f = fopen("exported_symbols.h", "w");
  fprintf(f, "/* exported_symbols.h generated by exportsymbols \n"
             " *\n"
             " * The static case\n"
             " *\n"
             " * Struct which contain export symbols\n"
             " *  Format :\n"
             " *  --------\n"
             " *\n"
             " *  filename, NULL\n"
             " *  symbol1, &func1,\n"
             " *  symbol2, &func2,\n"
             " *  filename2, NULL\n"
             " *  symbol1, &func1,\n"
             " *  symbol2, &func2,\n"
             " *  ....\n"
             " *  symboln, &funcn,\n"
             " *  NULL, NULL\n"
             " */\n\n"
             "typedef struct {\n"
             "	const char *name;\n"
             "	void (*function)(void);\n"
             "} kdblib_symbol;\n\n"
             "extern kdblib_symbol kdb_exported_syms[];\n\n");
  for (i = 1; i < argc; ++i) {
    fprintf(f, "extern void libelektra_%s_LTX_elektraPluginSymbol (void);\n",
            argv[i]);
  }
  fclose(f);
  f = fopen("exported_symbols.c", "w");
  fprintf(f, "/* exported_symbols.c generated by exportsymbols.sh */\n\n"
             "#include <exported_symbols.h>\n\n"
             "kdblib_symbol kdb_exported_syms[] =\n"
             "{\n");
  fprintf(f, "\t{\"resolver\", 0},\n");
  fprintf(
      f,
      "\t{\"elektraPluginSymbol\", &libelektra_%s_LTX_elektraPluginSymbol},\n",
      argv[1]);
  fprintf(f, "\t{\"storage\", 0},\n");
  fprintf(
      f,
      "\t{\"elektraPluginSymbol\", &libelektra_%s_LTX_elektraPluginSymbol},\n",
      argv[2]);
  printf("Exporting symbols for ");
  for (i = 2; i < argc; ++i) {
    printf("%s ", argv[i]);
    fprintf(f, "\t{\"%s\", 0},\n", argv[i]);
    fprintf(f,
            "\t{\"elektraPluginSymbol\", "
            "&libelektra_%s_LTX_elektraPluginSymbol},\n",
            argv[i]);
  }
  printf("\n");
  fprintf(f, "\t{ 0 , 0 }\n");
  fprintf(f, "};\n");
  fclose(f);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    116c <main+0x2c>
movl   $0x1,-0x4(%rbp)
jmp    1325 <main+0x1e5>
lea    0xe8d(%rip),%rdi
lea    0xe99(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
lea    0xe87(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11d4 <main+0x94>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0x100d(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    119c <main+0x5c>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
lea    0x1023(%rip),%rdi
lea    0xe28(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
lea    0x101b(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x1087(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0x1080(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x10b1(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0x1054(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
lea    0x109b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x2,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12e3 <main+0x1a3>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0x1085(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0x106b(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xfdd(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1273 <main+0x133>
lea    0xee0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
lea    0x102c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x1026(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
mov    $0x1,%eax
cmp    $0x2,%edi
jl     1334 <main+0x1d4>
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r13
mov    %edi,%r12d
lea    0xe7a(%rip),%rdi
lea    0xe86(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%rbp
lea    0xe79(%rip),%rdi
mov    $0x1,%ebx
mov    $0x1b6,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1080 <fwrite@plt>
mov    %r12d,%r15d
lea    0x100f(%rip),%r14
nopl   (%rax)
mov    0x0(%r13,%rbx,8),%rdx
mov    %rbp,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    11c0 <main+0x60>
mov    %rbp,%rdi
call   1040 <fclose@plt>
lea    0x101d(%rip),%rdi
lea    0xe22(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%r14
lea    0x101a(%rip),%rdi
mov    $0x7d,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1080 <fwrite@plt>
lea    0x107f(%rip),%rdi
mov    $0x12,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1080 <fwrite@plt>
mov    0x8(%r13),%rdx
lea    0x1075(%rip),%rbp
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x10a4(%rip),%rdi
mov    $0x11,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1080 <fwrite@plt>
mov    0x10(%r13),%rdx
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x108c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    $0x3,%r12d
jl     12e0 <main+0x180>
mov    $0x2,%r12d
lea    0x108d(%rip),%rbx
lea    0x1016(%rip),%rbp
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x0(%r13,%r12,8),%rsi
lea    0x106b(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x0(%r13,%r12,8),%rdx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13,%r12,8),%rdx
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
add    $0x1,%r12
cmp    %r12,%r15
jne    12a0 <main+0x140>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1037(%rip),%rdi
mov    $0xb,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1080 <fwrite@plt>
lea    0x102a(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1080 <fwrite@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [19 x i8] c"exported_symbols.h\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [439 x i8] c"/* exported_symbols.h generated by exportsymbols \0A *\0A * The static case\0A *\0A * Struct which contain export symbols\0A * Format :\0A * --------\0A *\0A * filename, NULL\0A * symbol1, &func1,\0A * symbol2, &func2,\0A * filename2, NULL\0A * symbol1, &func1,\0A * symbol2, &func2,\0A * ....\0A * symboln, &funcn,\0A * NULL, NULL\0A */\0A\0Atypedef struct {\0A\09const char *name;\0A\09void (*function)(void);\0A} kdblib_symbol;\0A\0Aextern kdblib_symbol kdb_exported_syms[];\0A\0A\00"
@.str.3 = [59 x i8] c"extern void libelektra_%s_LTX_elektraPluginSymbol (void);\0A\00"
@.str.4 = [19 x i8] c"exported_symbols.c\00"
@.str.5 = [126 x i8] c"/* exported_symbols.c generated by exportsymbols.sh */\0A\0A#include <exported_symbols.h>\0A\0Akdblib_symbol kdb_exported_syms[] =\0A{\0A\00"
@.str.6 = [19 x i8] c"\09{\22resolver\22, 0},\0A\00"
@.str.7 = [67 x i8] c"\09{\22elektraPluginSymbol\22, &libelektra_%s_LTX_elektraPluginSymbol},\0A\00"
@.str.8 = [18 x i8] c"\09{\22storage\22, 0},\0A\00"
@.str.9 = [23 x i8] c"Exporting symbols for \00"
@.str.10 = [4 x i8] c"%s \00"
@.str.11 = [13 x i8] c"\09{\22%s\22, 0},\0A\00"
@.str.12 = [2 x i8] c"\0A\00"
@.str.13 = [12 x i8] c"\09{ 0 , 0 }\0A\00"
@.str.14 = [4 x i8] c"};\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = load i32, i32* %4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %11
10: ; preds = %2
store i32 1, i32* %3
br label %87
11: ; preds = %2
%12 = call i32* @fopen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %12, i32** %7
%13 = load i32*, i32** %7
%14 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([439 x i8], [439 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %6
br label %15
15: ; preds = %27, %11
%16 = load i32, i32* %6
%17 = load i32, i32* %4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %30
19: ; preds = %15
%20 = load i32*, i32** %7
%21 = load i8**, i8*** %5
%22 = load i32, i32* %6
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8*, i8** %21, i64 %23
%25 = load i8*, i8** %24
%26 = call i32 (i32*, i8*, ...) @fprintf(i32* %20, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0), i8* %25)
br label %27
27: ; preds = %19
%28 = load i32, i32* %6
%29 = add nsw i32 %28, 1
store i32 %29, i32* %6
br label %15
30: ; preds = %15
%31 = load i32*, i32** %7
%32 = call i32 @fclose(i32* %31)
%33 = call i32* @fopen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %33, i32** %7
%34 = load i32*, i32** %7
%35 = call i32 (i32*, i8*, ...) @fprintf(i32* %34, i8* getelementptr inbounds ([126 x i8], [126 x i8]* @.str.5, i64 0, i64 0))
%36 = load i32*, i32** %7
%37 = call i32 (i32*, i8*, ...) @fprintf(i32* %36, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
%38 = load i32*, i32** %7
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 1
%41 = load i8*, i8** %40
%42 = call i32 (i32*, i8*, ...) @fprintf(i32* %38, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.7, i64 0, i64 0), i8* %41)
%43 = load i32*, i32** %7
%44 = call i32 (i32*, i8*, ...) @fprintf(i32* %43, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%45 = load i32*, i32** %7
%46 = load i8**, i8*** %5
%47 = getelementptr inbounds i8*, i8** %46, i64 2
%48 = load i8*, i8** %47
%49 = call i32 (i32*, i8*, ...) @fprintf(i32* %45, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.7, i64 0, i64 0), i8* %48)
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0))
store i32 2, i32* %6
br label %51
51: ; preds = %76, %30
%52 = load i32, i32* %6
%53 = load i32, i32* %4
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %79
55: ; preds = %51
%56 = load i8**, i8*** %5
%57 = load i32, i32* %6
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8*, i8** %56, i64 %58
%60 = load i8*, i8** %59
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %60)
%62 = load i32*, i32** %7
%63 = load i8**, i8*** %5
%64 = load i32, i32* %6
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8*, i8** %63, i64 %65
%67 = load i8*, i8** %66
%68 = call i32 (i32*, i8*, ...) @fprintf(i32* %62, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %67)
%69 = load i32*, i32** %7
%70 = load i8**, i8*** %5
%71 = load i32, i32* %6
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8*, i8** %70, i64 %72
%74 = load i8*, i8** %73
%75 = call i32 (i32*, i8*, ...) @fprintf(i32* %69, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.7, i64 0, i64 0), i8* %74)
br label %76
76: ; preds = %55
%77 = load i32, i32* %6
%78 = add nsw i32 %77, 1
store i32 %78, i32* %6
br label %51
79: ; preds = %51
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%81 = load i32*, i32** %7
%82 = call i32 (i32*, i8*, ...) @fprintf(i32* %81, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0))
%83 = load i32*, i32** %7
%84 = call i32 (i32*, i8*, ...) @fprintf(i32* %83, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%85 = load i32*, i32** %7
%86 = call i32 @fclose(i32* %85)
store i32 0, i32* %3
br label %87
87: ; preds = %79, %10
%88 = load i32, i32* %3
ret i32 %88
}

LLVM IR (-O2):
@.str = [19 x i8] c"exported_symbols.h\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [439 x i8] c"/* exported_symbols.h generated by exportsymbols \0A *\0A * The static case\0A *\0A * Struct which contain export symbols\0A * Format :\0A * --------\0A *\0A * filename, NULL\0A * symbol1, &func1,\0A * symbol2, &func2,\0A * filename2, NULL\0A * symbol1, &func1,\0A * symbol2, &func2,\0A * ....\0A * symboln, &funcn,\0A * NULL, NULL\0A */\0A\0Atypedef struct {\0A\09const char *name;\0A\09void (*function)(void);\0A} kdblib_symbol;\0A\0Aextern kdblib_symbol kdb_exported_syms[];\0A\0A\00"
@.str.3 = [59 x i8] c"extern void libelektra_%s_LTX_elektraPluginSymbol (void);\0A\00"
@.str.4 = [19 x i8] c"exported_symbols.c\00"
@.str.5 = [126 x i8] c"/* exported_symbols.c generated by exportsymbols.sh */\0A\0A#include <exported_symbols.h>\0A\0Akdblib_symbol kdb_exported_syms[] =\0A{\0A\00"
@.str.6 = [19 x i8] c"\09{\22resolver\22, 0},\0A\00"
@.str.7 = [67 x i8] c"\09{\22elektraPluginSymbol\22, &libelektra_%s_LTX_elektraPluginSymbol},\0A\00"
@.str.8 = [18 x i8] c"\09{\22storage\22, 0},\0A\00"
@.str.9 = [23 x i8] c"Exporting symbols for \00"
@.str.10 = [4 x i8] c"%s \00"
@.str.11 = [13 x i8] c"\09{\22%s\22, 0},\0A\00"
@.str.13 = [12 x i8] c"\09{ 0 , 0 }\0A\00"
@.str.14 = [4 x i8] c"};\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %47, label %4
4: ; preds = %2
%5 = tail call i32* @fopen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([439 x i8], [439 x i8]* @.str.2, i64 0, i64 0), i64 438, i64 1, i32* %5)
%7 = zext i32 %0 to i64
br label %8
8: ; preds = %4, %8
%9 = phi i64 [ 1, %4 ], [ %13, %8 ]
%10 = getelementptr inbounds i8*, i8** %1, i64 %9
%11 = load i8*, i8** %10
%12 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0), i8* %11)
%13 = add nuw nsw i64 %9, 1
%14 = icmp eq i64 %13, %7
br i1 %14, label %15, label %8
15: ; preds = %8
%16 = tail call i32 @fclose(i32* %5)
%17 = tail call i32* @fopen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%18 = tail call i64 @fwrite(i8* getelementptr inbounds ([126 x i8], [126 x i8]* @.str.5, i64 0, i64 0), i64 125, i64 1, i32* %17)
%19 = tail call i64 @fwrite(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i64 18, i64 1, i32* %17)
%20 = getelementptr inbounds i8*, i8** %1, i64 1
%21 = load i8*, i8** %20
%22 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.7, i64 0, i64 0), i8* %21)
%23 = tail call i64 @fwrite(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i64 17, i64 1, i32* %17)
%24 = getelementptr inbounds i8*, i8** %1, i64 2
%25 = load i8*, i8** %24
%26 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.7, i64 0, i64 0), i8* %25)
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0))
%28 = icmp sgt i32 %0, 2
br i1 %28, label %29, label %42
29: ; preds = %15
%30 = zext i32 %0 to i64
br label %31
31: ; preds = %29, %31
%32 = phi i64 [ 2, %29 ], [ %40, %31 ]
%33 = getelementptr inbounds i8*, i8** %1, i64 %32
%34 = load i8*, i8** %33
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %34)
%36 = load i8*, i8** %33
%37 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %36)
%38 = load i8*, i8** %33
%39 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.7, i64 0, i64 0), i8* %38)
%40 = add nuw nsw i64 %32, 1
%41 = icmp eq i64 %40, %30
br i1 %41, label %42, label %31
42: ; preds = %31, %15
%43 = tail call i32 @putchar(i32 10)
%44 = tail call i64 @fwrite(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i64 11, i64 1, i32* %17)
%45 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i64 3, i64 1, i32* %17)
%46 = tail call i32 @fclose(i32* %17)
br label %47
47: ; preds = %2, %42
%48 = phi i32 [ 0, %42 ], [ 1, %2 ]
ret i32 %48
}