#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*/ time_t;
struct tm {
  int tm_year;
  int tm_mon;
  int tm_mday;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ EOF;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
scalar_t__ fscanf(int /*<<< orphan*/ *, char *, char *, char *, char *);
struct tm *localtime(int /*<<< orphan*/ *);
int /*<<< orphan*/ sprintf(char *, char *, int);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  FILE *stockListFile;
  FILE *insertScriptFile;
  FILE *htmlFile;
  char company[1000];
  char url[1000];
  char symbol[100];
  char scriptBlock[1000];
  char year[5];
  char month[3];
  char day[3];
  char currentTime[11];
  char commandMakeRootDirectory[1000];
  char commandMakeDirectory[1000];
  char commandGetHtml[1000];
  char commandCopyHtaccess[1000];
  char pathHtml[1000];
  char pathHtmlFile[1000];
  time_t t = time(NULL);
  struct tm tm = *localtime(&t);
  sprintf(year, "%d", tm.tm_year + 1900);
  sprintf(month, "%02d", tm.tm_mon + 1);
  sprintf(day, "%02d", tm.tm_mday);
  strcpy(currentTime, year);
  strcat(currentTime, "-");
  strcat(currentTime, month);
  strcat(currentTime, "-");
  strcat(currentTime, day);
  stockListFile = fopen("../stock.list", "r");
  while (fscanf(stockListFile, "%s %s %s", company, symbol, url) != EOF) {
    insertScriptFile = fopen("insertScript.html", "r");
    strcpy(pathHtml, "../data_html/");
    strcat(pathHtml, currentTime);
    strcat(pathHtml, "/");
    strcat(pathHtml, company);
    strcat(pathHtml, "/");
    strcpy(pathHtmlFile, pathHtml);
    strcat(pathHtmlFile, "finance?q=");
    strcat(pathHtmlFile, symbol);
    strcat(pathHtmlFile, ".html");
    htmlFile = fopen(pathHtmlFile, "a");
    while (fgets(scriptBlock, 1000, insertScriptFile) != NULL) {
      fputs(scriptBlock, htmlFile);
    }
    fclose(htmlFile);
    fclose(insertScriptFile);
  }
  fclose(stockListFile);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2420,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1090 <time@plt>
mov    %eax,-0x2414(%rbp)
lea    -0x2414(%rbp),%rdi
call   1030 <localtime@plt>
mov    (%rax),%rcx
mov    %rcx,-0x2420(%rbp)
mov    0x8(%rax),%eax
mov    %eax,-0x2418(%rbp)
lea    -0xc65(%rbp),%rdi
mov    -0x2420(%rbp),%edx
add    $0x76c,%edx
lea    0xe06(%rip),%rsi
call   10c0 <sprintf@plt>
lea    -0xc68(%rbp),%rdi
mov    -0x241c(%rbp),%edx
add    $0x1,%edx
lea    0xded(%rip),%rsi
call   10c0 <sprintf@plt>
lea    -0xc6b(%rbp),%rdi
mov    -0x2418(%rbp),%edx
lea    0xdd4(%rip),%rsi
call   10c0 <sprintf@plt>
lea    -0xc76(%rbp),%rdi
lea    -0xc65(%rbp),%rsi
call   1040 <strcpy@plt>
lea    -0xc76(%rbp),%rdi
lea    0xdb3(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0xc76(%rbp),%rdi
lea    -0xc68(%rbp),%rsi
call   10b0 <strcat@plt>
lea    -0xc76(%rbp),%rdi
lea    0xd8d(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0xc76(%rbp),%rdi
lea    -0xc6b(%rbp),%rsi
call   10b0 <strcat@plt>
lea    0xd70(%rip),%rdi
lea    0xd77(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x410(%rbp),%rdx
lea    -0x870(%rbp),%rcx
lea    -0x800(%rbp),%r8
lea    0xd50(%rip),%rsi
call   1070 <fscanf@plt>
mov    0x2d12(%rip),%rcx
cmp    (%rcx),%rax
je     1403 <main+0x263>
lea    0xd3d(%rip),%rdi
lea    0xd2b(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x18(%rbp)
lea    -0x2020(%rbp),%rdi
lea    0xd31(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x2020(%rbp),%rdi
lea    -0xc76(%rbp),%rsi
call   10b0 <strcat@plt>
lea    -0x2020(%rbp),%rdi
lea    0xd17(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0x2020(%rbp),%rdi
lea    -0x410(%rbp),%rsi
call   10b0 <strcat@plt>
lea    -0x2020(%rbp),%rdi
lea    0xcf1(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0x2410(%rbp),%rdi
lea    -0x2020(%rbp),%rsi
call   1040 <strcpy@plt>
lea    -0x2410(%rbp),%rdi
lea    0xccd(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0x2410(%rbp),%rdi
lea    -0x870(%rbp),%rsi
call   10b0 <strcat@plt>
lea    -0x2410(%rbp),%rdi
lea    0xc93(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0x2410(%rbp),%rdi
lea    0xc9f(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x20(%rbp)
lea    -0xc60(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x3e8,%esi
call   1080 <fgets@plt>
cmp    $0x0,%rax
je     13ec <main+0x24c>
lea    -0xc60(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1060 <fputs@plt>
jmp    13b8 <main+0x218>
mov    -0x20(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
jmp    12aa <main+0x10a>
mov    -0x10(%rbp),%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
add    $0x2420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1448,%rsp
xor    %edi,%edi
call   1090 <time@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
call   1030 <localtime@plt>
mov    0x4(%rax),%ebx
mov    0x8(%rax),%r15d
mov    $0x76c,%edx
add    (%rax),%edx
lea    0xe25(%rip),%rsi
lea    0x20(%rsp),%r14
mov    %r14,%rdi
call   10c0 <sprintf@plt>
add    $0x1,%ebx
lea    0xe11(%rip),%rbp
lea    0x1d(%rsp),%r12
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %ebx,%edx
call   10c0 <sprintf@plt>
lea    0x1a(%rsp),%r13
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r15d,%edx
call   10c0 <sprintf@plt>
lea    0x25(%rsp),%rbp
mov    %rbp,%rdi
mov    %r14,%rsi
call   1040 <strcpy@plt>
lea    0xdda(%rip),%rbx
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10b0 <strcat@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
call   10b0 <strcat@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10b0 <strcat@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
call   10b0 <strcat@plt>
lea    0xda9(%rip),%rdi
lea    0xdb0(%rip),%rsi
call   10a0 <fopen@plt>
lea    0xda6(%rip),%rsi
lea    0xa0(%rsp),%rdx
lea    0x30(%rsp),%rcx
lea    0x490(%rsp),%r8
mov    %rax,0x10(%rsp)
mov    %rax,%rdi
call   1070 <fscanf@plt>
mov    0x2d4b(%rip),%rcx
cmp    (%rcx),%rax
jne    12c0 <main+0x120>
mov    0x10(%rsp),%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
add    $0x1448,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc70(%rsp),%r12
lea    0xa0(%rsp),%rbx
lea    0x30(%rsp),%r15
lea    0x1060(%rsp),%r13
jmp    132a <main+0x18a>
nop
mov    %r15,%rdi
call   1050 <fclose@plt>
mov    %r14,%rdi
call   1050 <fclose@plt>
mov    0x10(%rsp),%rdi
lea    0xd1e(%rip),%rsi
lea    0xa0(%rsp),%rbx
mov    %rbx,%rdx
mov    %rbp,%r15
mov    %rbp,%rcx
lea    0x490(%rsp),%r8
call   1070 <fscanf@plt>
mov    0x2cc7(%rip),%rcx
cmp    (%rcx),%rax
je     12a2 <main+0x102>
lea    0xcf2(%rip),%rdi
lea    0xce0(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,%r14
mov    %r12,%rdi
lea    0xceb(%rip),%rsi
call   1040 <strcpy@plt>
mov    %r12,%rdi
lea    0x25(%rsp),%rsi
call   10b0 <strcat@plt>
mov    %r12,%rdi
lea    0xcdb(%rip),%rbp
mov    %rbp,%rsi
call   10b0 <strcat@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   10b0 <strcat@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
call   10b0 <strcat@plt>
lea    0x880(%rsp),%rbx
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <strcpy@plt>
mov    %rbx,%rdi
lea    0xca2(%rip),%rsi
call   10b0 <strcat@plt>
mov    %rbx,%rdi
mov    %r15,%rbp
mov    %r15,%rsi
call   10b0 <strcat@plt>
mov    %rbx,%rdi
lea    0xc71(%rip),%rsi
call   10b0 <strcat@plt>
mov    %rbx,%rdi
lea    0xc81(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,%r15
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r13,%rdi
mov    $0x3e8,%esi
mov    %r14,%rdx
call   1080 <fgets@plt>
test   %rax,%rax
je     12e0 <main+0x140>
mov    %r13,%rdi
mov    %r15,%rsi
call   1060 <fputs@plt>
jmp    13e0 <main+0x240>

LLVM IR (-O0):
%struct.tm = type { i32, i32, i32 }
@.str = [3 x i8] c"%d\00"
@.str.1 = [5 x i8] c"%02d\00"
@.str.2 = [2 x i8] c"-\00"
@.str.3 = [14 x i8] c"../stock.list\00"
@.str.4 = [2 x i8] c"r\00"
@.str.5 = [9 x i8] c"%s %s %s\00"
@EOF = global i64 0
@.str.6 = [18 x i8] c"insertScript.html\00"
@.str.7 = [14 x i8] c"../data_html/\00"
@.str.8 = [2 x i8] c"/\00"
@.str.9 = [11 x i8] c"finance?q=\00"
@.str.10 = [6 x i8] c".html\00"
@.str.11 = [2 x i8] c"a\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca [1000 x i8]
%6 = alloca [1000 x i8]
%7 = alloca [100 x i8]
%8 = alloca [1000 x i8]
%9 = alloca [5 x i8]
%10 = alloca [3 x i8]
%11 = alloca [3 x i8]
%12 = alloca [11 x i8]
%13 = alloca [1000 x i8]
%14 = alloca [1000 x i8]
%15 = alloca [1000 x i8]
%16 = alloca [1000 x i8]
%17 = alloca [1000 x i8]
%18 = alloca [1000 x i8]
%19 = alloca i32
%20 = alloca %struct.tm
store i32 0, i32* %1
%21 = call i32 @time(i32* null)
store i32 %21, i32* %19
%22 = call %struct.tm* @localtime(i32* %19)
%23 = bitcast %struct.tm* %20 to i8*
%24 = bitcast %struct.tm* %22 to i8*
%25 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%26 = getelementptr inbounds %struct.tm, %struct.tm* %20, i32 0, i32 0
%27 = load i32, i32* %26
%28 = add nsw i32 %27, 1900
%29 = call i32 @sprintf(i8* %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %28)
%30 = getelementptr inbounds [3 x i8], [3 x i8]* %10, i64 0, i64 0
%31 = getelementptr inbounds %struct.tm, %struct.tm* %20, i32 0, i32 1
%32 = load i32, i32* %31
%33 = add nsw i32 %32, 1
%34 = call i32 @sprintf(i8* %30, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %33)
%35 = getelementptr inbounds [3 x i8], [3 x i8]* %11, i64 0, i64 0
%36 = getelementptr inbounds %struct.tm, %struct.tm* %20, i32 0, i32 2
%37 = load i32, i32* %36
%38 = call i32 @sprintf(i8* %35, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %37)
%39 = getelementptr inbounds [11 x i8], [11 x i8]* %12, i64 0, i64 0
%40 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%41 = call i32 @strcpy(i8* %39, i8* %40)
%42 = getelementptr inbounds [11 x i8], [11 x i8]* %12, i64 0, i64 0
%43 = call i32 @strcat(i8* %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%44 = getelementptr inbounds [11 x i8], [11 x i8]* %12, i64 0, i64 0
%45 = getelementptr inbounds [3 x i8], [3 x i8]* %10, i64 0, i64 0
%46 = call i32 @strcat(i8* %44, i8* %45)
%47 = getelementptr inbounds [11 x i8], [11 x i8]* %12, i64 0, i64 0
%48 = call i32 @strcat(i8* %47, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%49 = getelementptr inbounds [11 x i8], [11 x i8]* %12, i64 0, i64 0
%50 = getelementptr inbounds [3 x i8], [3 x i8]* %11, i64 0, i64 0
%51 = call i32 @strcat(i8* %49, i8* %50)
%52 = call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32* %52, i32** %2
br label %53
53: ; preds = %96, %0
%54 = load i32*, i32** %2
%55 = getelementptr inbounds [1000 x i8], [1000 x i8]* %5, i64 0, i64 0
%56 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%57 = getelementptr inbounds [1000 x i8], [1000 x i8]* %6, i64 0, i64 0
%58 = call i64 @fscanf(i32* %54, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %55, i8* %56, i8* %57)
%59 = load i64, i64* @EOF
%60 = icmp ne i64 %58, %59
br i1 %60, label %61, label %101
61: ; preds = %53
%62 = call i32* @fopen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32* %62, i32** %3
%63 = getelementptr inbounds [1000 x i8], [1000 x i8]* %17, i64 0, i64 0
%64 = call i32 @strcpy(i8* %63, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
%65 = getelementptr inbounds [1000 x i8], [1000 x i8]* %17, i64 0, i64 0
%66 = getelementptr inbounds [11 x i8], [11 x i8]* %12, i64 0, i64 0
%67 = call i32 @strcat(i8* %65, i8* %66)
%68 = getelementptr inbounds [1000 x i8], [1000 x i8]* %17, i64 0, i64 0
%69 = call i32 @strcat(i8* %68, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%70 = getelementptr inbounds [1000 x i8], [1000 x i8]* %17, i64 0, i64 0
%71 = getelementptr inbounds [1000 x i8], [1000 x i8]* %5, i64 0, i64 0
%72 = call i32 @strcat(i8* %70, i8* %71)
%73 = getelementptr inbounds [1000 x i8], [1000 x i8]* %17, i64 0, i64 0
%74 = call i32 @strcat(i8* %73, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%75 = getelementptr inbounds [1000 x i8], [1000 x i8]* %18, i64 0, i64 0
%76 = getelementptr inbounds [1000 x i8], [1000 x i8]* %17, i64 0, i64 0
%77 = call i32 @strcpy(i8* %75, i8* %76)
%78 = getelementptr inbounds [1000 x i8], [1000 x i8]* %18, i64 0, i64 0
%79 = call i32 @strcat(i8* %78, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%80 = getelementptr inbounds [1000 x i8], [1000 x i8]* %18, i64 0, i64 0
%81 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%82 = call i32 @strcat(i8* %80, i8* %81)
%83 = getelementptr inbounds [1000 x i8], [1000 x i8]* %18, i64 0, i64 0
%84 = call i32 @strcat(i8* %83, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%85 = getelementptr inbounds [1000 x i8], [1000 x i8]* %18, i64 0, i64 0
%86 = call i32* @fopen(i8* %85, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
store i32* %86, i32** %4
br label %87
87: ; preds = %92, %61
%88 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 0
%89 = load i32*, i32** %3
%90 = call i32* @fgets(i8* %88, i32 1000, i32* %89)
%91 = icmp ne i32* %90, null
br i1 %91, label %92, label %96
92: ; preds = %87
%93 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 0
%94 = load i32*, i32** %4
%95 = call i32 @fputs(i8* %93, i32* %94)
br label %87
96: ; preds = %87
%97 = load i32*, i32** %4
%98 = call i32 @fclose(i32* %97)
%99 = load i32*, i32** %3
%100 = call i32 @fclose(i32* %99)
br label %53
101: ; preds = %53
%102 = load i32*, i32** %2
%103 = call i32 @fclose(i32* %102)
ret i32 0
}

LLVM IR (-O2):
%struct.tm = type { i32, i32, i32 }
@.str = [3 x i8] c"%d\00"
@.str.1 = [5 x i8] c"%02d\00"
@.str.2 = [2 x i8] c"-\00"
@.str.3 = [14 x i8] c"../stock.list\00"
@.str.4 = [2 x i8] c"r\00"
@.str.5 = [9 x i8] c"%s %s %s\00"
@EOF = global i64 0
@.str.6 = [18 x i8] c"insertScript.html\00"
@.str.7 = [14 x i8] c"../data_html/\00"
@.str.8 = [2 x i8] c"/\00"
@.str.9 = [11 x i8] c"finance?q=\00"
@.str.10 = [6 x i8] c".html\00"
@.str.11 = [2 x i8] c"a\00"
define i32 @main() {
%1 = alloca [1000 x i8]
%2 = alloca [1000 x i8]
%3 = alloca [100 x i8]
%4 = alloca [1000 x i8]
%5 = alloca [5 x i8]
%6 = alloca [3 x i8]
%7 = alloca [3 x i8]
%8 = alloca [11 x i8]
%9 = alloca [1000 x i8]
%10 = alloca [1000 x i8]
%11 = alloca i32
%12 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%13 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%14 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%15 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%16 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
%17 = getelementptr inbounds [3 x i8], [3 x i8]* %6, i64 0, i64 0
%18 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%19 = getelementptr inbounds [11 x i8], [11 x i8]* %8, i64 0, i64 0
%20 = getelementptr inbounds [1000 x i8], [1000 x i8]* %9, i64 0, i64 0
%21 = getelementptr inbounds [1000 x i8], [1000 x i8]* %10, i64 0, i64 0
%22 = bitcast i32* %11 to i8*
%23 = tail call i32 @time(i32* null)
store i32 %23, i32* %11
%24 = call %struct.tm* @localtime(i32* %11)
%25 = getelementptr inbounds %struct.tm, %struct.tm* %24, i64 0, i32 0
%26 = load i32, i32* %25
%27 = getelementptr inbounds %struct.tm, %struct.tm* %24, i64 0, i32 1
%28 = load i32, i32* %27
%29 = getelementptr inbounds %struct.tm, %struct.tm* %24, i64 0, i32 2
%30 = load i32, i32* %29
%31 = add nsw i32 %26, 1900
%32 = call i32 @sprintf(i8* %16, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %31)
%33 = add nsw i32 %28, 1
%34 = call i32 @sprintf(i8* %17, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %33)
%35 = call i32 @sprintf(i8* %18, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %30)
%36 = call i32 @strcpy(i8* %19, i8* %16)
%37 = call i32 @strcat(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%38 = call i32 @strcat(i8* %19, i8* %17)
%39 = call i32 @strcat(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%40 = call i32 @strcat(i8* %19, i8* %18)
%41 = call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%42 = call i64 @fscanf(i32* %41, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %12, i8* %14, i8* %13)
%43 = load i64, i64* @EOF
%44 = icmp eq i64 %42, %43
br i1 %44, label %69, label %45
45: ; preds = %0, %63
%46 = call i32* @fopen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%47 = call i32 @strcpy(i8* %20, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
%48 = call i32 @strcat(i8* %20, i8* %19)
%49 = call i32 @strcat(i8* %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%50 = call i32 @strcat(i8* %20, i8* %12)
%51 = call i32 @strcat(i8* %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%52 = call i32 @strcpy(i8* %21, i8* %20)
%53 = call i32 @strcat(i8* %21, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%54 = call i32 @strcat(i8* %21, i8* %14)
%55 = call i32 @strcat(i8* %21, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%56 = call i32* @fopen(i8* %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%57 = call i32* @fgets(i8* %15, i32 1000, i32* %46)
%58 = icmp eq i32* %57, null
br i1 %58, label %63, label %59
59: ; preds = %45, %59
%60 = call i32 @fputs(i8* %15, i32* %56)
%61 = call i32* @fgets(i8* %15, i32 1000, i32* %46)
%62 = icmp eq i32* %61, null
br i1 %62, label %63, label %59
63: ; preds = %59, %45
%64 = call i32 @fclose(i32* %56)
%65 = call i32 @fclose(i32* %46)
%66 = call i64 @fscanf(i32* %41, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %12, i8* %14, i8* %13)
%67 = load i64, i64* @EOF
%68 = icmp eq i64 %66, %67
br i1 %68, label %69, label %45
69: ; preds = %63, %0
%70 = call i32 @fclose(i32* %41)
ret i32 0
}