#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*/ *fopen(char *, char *);
scalar_t__ fscanf(int /*<<< orphan*/ *, char *, char *, char *, char *);
struct tm *localtime(int /*<<< orphan*/ *);
int /*<<< orphan*/ memset(char *, char, int);
int /*<<< orphan*/ sprintf(char *, char *, int);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ system(char *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  FILE *stockListFile;
  FILE *htmlFile;
  char company[1000];
  char symbol[100];
  char url[1000];
  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);
  memset(commandMakeRootDirectory, '\0', 1000);
  strcpy(commandMakeRootDirectory, "mkdir ");
  strcat(commandMakeRootDirectory, "../data_html/");
  strcat(commandMakeRootDirectory, currentTime);
  system(commandMakeRootDirectory);
  stockListFile = fopen("../stock.list", "r");
  while (fscanf(stockListFile, "%s %s %s", company, symbol, url) != EOF) {
    strcpy(pathHtml, "../data_html/");
    strcat(pathHtml, currentTime);
    strcat(pathHtml, "/");
    strcat(pathHtml, company);
    strcat(pathHtml, "/");
    memset(commandMakeDirectory, '\0', 1000);
    memset(commandGetHtml, '\0', 1000);
    strcpy(commandMakeDirectory, "mkdir ");
    strcat(commandMakeDirectory, pathHtml);
    strcpy(commandGetHtml, "wget ");
    strcat(commandGetHtml, "-P ");
    strcat(commandGetHtml, pathHtml);
    strcat(commandGetHtml, " ");
    strcat(commandGetHtml, "--html-extension ");
    strcat(commandGetHtml, url);
    system(commandMakeDirectory);
    system(commandGetHtml);
    strcpy(commandCopyHtaccess, "cp ");
    strcat(commandCopyHtaccess, ".htaccess");
    strcat(commandCopyHtaccess, " ");
    strcat(commandCopyHtaccess, pathHtml);
    system(commandCopyHtaccess);
  }
  fclose(stockListFile);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2410,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1090 <time@plt>
mov    %eax,-0x2404(%rbp)
lea    -0x2404(%rbp),%rdi
call   1030 <localtime@plt>
mov    (%rax),%rcx
mov    %rcx,-0x2410(%rbp)
mov    0x8(%rax),%eax
mov    %eax,-0x2408(%rbp)
lea    -0xc55(%rbp),%rdi
mov    -0x2410(%rbp),%edx
add    $0x76c,%edx
lea    0xe06(%rip),%rsi
call   10c0 <sprintf@plt>
lea    -0xc58(%rbp),%rdi
mov    -0x240c(%rbp),%edx
add    $0x1,%edx
lea    0xded(%rip),%rsi
call   10c0 <sprintf@plt>
lea    -0xc5b(%rbp),%rdi
mov    -0x2408(%rbp),%edx
lea    0xdd4(%rip),%rsi
call   10c0 <sprintf@plt>
lea    -0xc66(%rbp),%rdi
lea    -0xc55(%rbp),%rsi
call   1040 <strcpy@plt>
lea    -0xc66(%rbp),%rdi
lea    0xdb3(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0xc66(%rbp),%rdi
lea    -0xc58(%rbp),%rsi
call   10b0 <strcat@plt>
lea    -0xc66(%rbp),%rdi
lea    0xd8d(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0xc66(%rbp),%rdi
lea    -0xc5b(%rbp),%rsi
call   10b0 <strcat@plt>
lea    -0x1050(%rbp),%rdi
xor    %esi,%esi
mov    $0x3e8,%edx
call   1070 <memset@plt>
lea    -0x1050(%rbp),%rdi
lea    0xd56(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x1050(%rbp),%rdi
lea    0xd4a(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0x1050(%rbp),%rdi
lea    -0xc66(%rbp),%rsi
call   10b0 <strcat@plt>
lea    -0x1050(%rbp),%rdi
call   1060 <system@plt>
lea    0xd2d(%rip),%rdi
lea    0xd34(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x400(%rbp),%rdx
lea    -0x470(%rbp),%rcx
lea    -0x860(%rbp),%r8
lea    0xd0d(%rip),%rsi
call   1080 <fscanf@plt>
mov    0x2cba(%rip),%rcx
cmp    (%rcx),%rax
je     14c9 <main+0x329>
lea    -0x2010(%rbp),%rdi
lea    0xccc(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x2010(%rbp),%rdi
lea    -0xc66(%rbp),%rsi
call   10b0 <strcat@plt>
lea    -0x2010(%rbp),%rdi
lea    0xcb2(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0x2010(%rbp),%rdi
lea    -0x400(%rbp),%rsi
call   10b0 <strcat@plt>
lea    -0x2010(%rbp),%rdi
lea    0xc8c(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0x1440(%rbp),%rdi
xor    %esi,%esi
mov    $0x3e8,%edx
call   1070 <memset@plt>
lea    -0x1830(%rbp),%rdi
xor    %esi,%esi
mov    $0x3e8,%edx
call   1070 <memset@plt>
lea    -0x1440(%rbp),%rdi
lea    0xc40(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x1440(%rbp),%rdi
lea    -0x2010(%rbp),%rsi
call   10b0 <strcat@plt>
lea    -0x1830(%rbp),%rdi
lea    0xc48(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x1830(%rbp),%rdi
lea    0xc3b(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0x1830(%rbp),%rdi
lea    -0x2010(%rbp),%rsi
call   10b0 <strcat@plt>
lea    -0x1830(%rbp),%rdi
lea    0xc17(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0x1830(%rbp),%rdi
lea    0xc06(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0x1830(%rbp),%rdi
lea    -0x860(%rbp),%rsi
call   10b0 <strcat@plt>
lea    -0x1440(%rbp),%rdi
call   1060 <system@plt>
lea    -0x1830(%rbp),%rdi
call   1060 <system@plt>
lea    -0x1c20(%rbp),%rdi
lea    0xbda(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x1c20(%rbp),%rdi
lea    0xbcb(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0x1c20(%rbp),%rdi
lea    0xba0(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0x1c20(%rbp),%rdi
lea    -0x2010(%rbp),%rsi
call   10b0 <strcat@plt>
lea    -0x1c20(%rbp),%rdi
call   1060 <system@plt>
jmp    1302 <main+0x162>
mov    -0x10(%rbp),%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
add    $0x2410,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1c28,%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),%rbx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <strcpy@plt>
lea    0xdda(%rip),%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
call   10b0 <strcat@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   10b0 <strcat@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   10b0 <strcat@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   10b0 <strcat@plt>
lea    0x1840(%rsp),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x3e8,%edx
call   1070 <memset@plt>
lea    0xd92(%rip),%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
lea    0xd8a(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <strcat@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10b0 <strcat@plt>
mov    %rbp,%rdi
call   1060 <system@plt>
lea    0xd76(%rip),%rdi
lea    0xd7d(%rip),%rsi
call   10a0 <fopen@plt>
lea    0xd73(%rip),%rsi
lea    0xa0(%rsp),%rdx
lea    0x30(%rsp),%rcx
lea    0x490(%rsp),%r8
mov    %rax,0x10(%rsp)
mov    %rax,%rdi
call   1080 <fscanf@plt>
mov    0x2d03(%rip),%r13
cmp    0x0(%r13),%rax
je     1465 <main+0x2c5>
nop
lea    0x880(%rsp),%r12
mov    %r12,%rdi
lea    0xd0f(%rip),%rsi
call   1040 <strcpy@plt>
mov    %r12,%rdi
lea    0x25(%rsp),%rsi
call   10b0 <strcat@plt>
mov    %r12,%rdi
lea    0xcff(%rip),%rbp
mov    %rbp,%rsi
call   10b0 <strcat@plt>
mov    %r12,%rdi
lea    0xa0(%rsp),%rsi
call   10b0 <strcat@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
call   10b0 <strcat@plt>
lea    0x1450(%rsp),%r15
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x3e8,%edx
call   1070 <memset@plt>
lea    0x1060(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x3e8,%edx
call   1070 <memset@plt>
mov    %r15,%rdi
lea    0xc91(%rip),%rsi
call   1040 <strcpy@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   10b0 <strcat@plt>
mov    %rbx,%rdi
lea    0xca5(%rip),%rsi
call   1040 <strcpy@plt>
mov    %rbx,%rdi
lea    0xc9c(%rip),%rsi
call   10b0 <strcat@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   10b0 <strcat@plt>
mov    %rbx,%rdi
lea    0xc84(%rip),%rbp
mov    %rbp,%rsi
call   10b0 <strcat@plt>
mov    %rbx,%rdi
lea    0xc74(%rip),%rsi
call   10b0 <strcat@plt>
mov    %rbx,%rdi
lea    0x490(%rsp),%r14
mov    %r14,%rsi
call   10b0 <strcat@plt>
mov    %r15,%rdi
call   1060 <system@plt>
mov    %rbx,%rdi
call   1060 <system@plt>
lea    0xc70(%rsp),%rbx
mov    %rbx,%rdi
lea    0xc4c(%rip),%rsi
call   1040 <strcpy@plt>
mov    %rbx,%rdi
lea    0xc41(%rip),%rsi
call   10b0 <strcat@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   10b0 <strcat@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   10b0 <strcat@plt>
mov    %rbx,%rdi
call   1060 <system@plt>
mov    0x10(%rsp),%rdi
lea    0xbe9(%rip),%rsi
lea    0xa0(%rsp),%rdx
lea    0x30(%rsp),%rcx
mov    %r14,%r8
call   1080 <fscanf@plt>
cmp    0x0(%r13),%rax
jne    12f0 <main+0x150>
mov    0x10(%rsp),%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
add    $0x1c28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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 = [7 x i8] c"mkdir \00"
@.str.4 = [14 x i8] c"../data_html/\00"
@.str.5 = [14 x i8] c"../stock.list\00"
@.str.6 = [2 x i8] c"r\00"
@.str.7 = [9 x i8] c"%s %s %s\00"
@EOF = global i64 0
@.str.8 = [2 x i8] c"/\00"
@.str.9 = [6 x i8] c"wget \00"
@.str.10 = [4 x i8] c"-P \00"
@.str.11 = [2 x i8] c" \00"
@.str.12 = [18 x i8] c"--html-extension \00"
@.str.13 = [4 x i8] c"cp \00"
@.str.14 = [10 x i8] c".htaccess\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca [1000 x i8]
%5 = alloca [100 x i8]
%6 = alloca [1000 x i8]
%7 = alloca [1000 x i8]
%8 = alloca [5 x i8]
%9 = alloca [3 x i8]
%10 = alloca [3 x i8]
%11 = alloca [11 x i8]
%12 = alloca [1000 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 i32
%19 = alloca %struct.tm
store i32 0, i32* %1
%20 = call i32 @time(i32* null)
store i32 %20, i32* %18
%21 = call %struct.tm* @localtime(i32* %18)
%22 = bitcast %struct.tm* %19 to i8*
%23 = bitcast %struct.tm* %21 to i8*
%24 = getelementptr inbounds [5 x i8], [5 x i8]* %8, i64 0, i64 0
%25 = getelementptr inbounds %struct.tm, %struct.tm* %19, i32 0, i32 0
%26 = load i32, i32* %25
%27 = add nsw i32 %26, 1900
%28 = call i32 @sprintf(i8* %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %27)
%29 = getelementptr inbounds [3 x i8], [3 x i8]* %9, i64 0, i64 0
%30 = getelementptr inbounds %struct.tm, %struct.tm* %19, i32 0, i32 1
%31 = load i32, i32* %30
%32 = add nsw i32 %31, 1
%33 = call i32 @sprintf(i8* %29, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %32)
%34 = getelementptr inbounds [3 x i8], [3 x i8]* %10, i64 0, i64 0
%35 = getelementptr inbounds %struct.tm, %struct.tm* %19, i32 0, i32 2
%36 = load i32, i32* %35
%37 = call i32 @sprintf(i8* %34, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %36)
%38 = getelementptr inbounds [11 x i8], [11 x i8]* %11, i64 0, i64 0
%39 = getelementptr inbounds [5 x i8], [5 x i8]* %8, i64 0, i64 0
%40 = call i32 @strcpy(i8* %38, i8* %39)
%41 = getelementptr inbounds [11 x i8], [11 x i8]* %11, i64 0, i64 0
%42 = call i32 @strcat(i8* %41, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%43 = getelementptr inbounds [11 x i8], [11 x i8]* %11, i64 0, i64 0
%44 = getelementptr inbounds [3 x i8], [3 x i8]* %9, i64 0, i64 0
%45 = call i32 @strcat(i8* %43, i8* %44)
%46 = getelementptr inbounds [11 x i8], [11 x i8]* %11, i64 0, i64 0
%47 = call i32 @strcat(i8* %46, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%48 = getelementptr inbounds [11 x i8], [11 x i8]* %11, i64 0, i64 0
%49 = getelementptr inbounds [3 x i8], [3 x i8]* %10, i64 0, i64 0
%50 = call i32 @strcat(i8* %48, i8* %49)
%51 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%52 = call i32 @memset(i8* %51, i8 signext 0, i32 1000)
%53 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%54 = call i32 @strcpy(i8* %53, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%55 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%56 = call i32 @strcat(i8* %55, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%57 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%58 = getelementptr inbounds [11 x i8], [11 x i8]* %11, i64 0, i64 0
%59 = call i32 @strcat(i8* %57, i8* %58)
%60 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%61 = call i32 @system(i8* %60)
%62 = call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i32* %62, i32** %2
br label %63
63: ; preds = %71, %0
%64 = load i32*, i32** %2
%65 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%66 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%67 = getelementptr inbounds [1000 x i8], [1000 x i8]* %6, i64 0, i64 0
%68 = call i64 @fscanf(i32* %64, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* %65, i8* %66, i8* %67)
%69 = load i64, i64* @EOF
%70 = icmp ne i64 %68, %69
br i1 %70, label %71, label %122
71: ; preds = %63
%72 = getelementptr inbounds [1000 x i8], [1000 x i8]* %16, i64 0, i64 0
%73 = call i32 @strcpy(i8* %72, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%74 = getelementptr inbounds [1000 x i8], [1000 x i8]* %16, i64 0, i64 0
%75 = getelementptr inbounds [11 x i8], [11 x i8]* %11, i64 0, i64 0
%76 = call i32 @strcat(i8* %74, i8* %75)
%77 = getelementptr inbounds [1000 x i8], [1000 x i8]* %16, i64 0, i64 0
%78 = call i32 @strcat(i8* %77, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%79 = getelementptr inbounds [1000 x i8], [1000 x i8]* %16, i64 0, i64 0
%80 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%81 = call i32 @strcat(i8* %79, i8* %80)
%82 = getelementptr inbounds [1000 x i8], [1000 x i8]* %16, i64 0, i64 0
%83 = call i32 @strcat(i8* %82, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%84 = getelementptr inbounds [1000 x i8], [1000 x i8]* %13, i64 0, i64 0
%85 = call i32 @memset(i8* %84, i8 signext 0, i32 1000)
%86 = getelementptr inbounds [1000 x i8], [1000 x i8]* %14, i64 0, i64 0
%87 = call i32 @memset(i8* %86, i8 signext 0, i32 1000)
%88 = getelementptr inbounds [1000 x i8], [1000 x i8]* %13, i64 0, i64 0
%89 = call i32 @strcpy(i8* %88, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%90 = getelementptr inbounds [1000 x i8], [1000 x i8]* %13, i64 0, i64 0
%91 = getelementptr inbounds [1000 x i8], [1000 x i8]* %16, i64 0, i64 0
%92 = call i32 @strcat(i8* %90, i8* %91)
%93 = getelementptr inbounds [1000 x i8], [1000 x i8]* %14, i64 0, i64 0
%94 = call i32 @strcpy(i8* %93, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%95 = getelementptr inbounds [1000 x i8], [1000 x i8]* %14, i64 0, i64 0
%96 = call i32 @strcat(i8* %95, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%97 = getelementptr inbounds [1000 x i8], [1000 x i8]* %14, i64 0, i64 0
%98 = getelementptr inbounds [1000 x i8], [1000 x i8]* %16, i64 0, i64 0
%99 = call i32 @strcat(i8* %97, i8* %98)
%100 = getelementptr inbounds [1000 x i8], [1000 x i8]* %14, i64 0, i64 0
%101 = call i32 @strcat(i8* %100, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%102 = getelementptr inbounds [1000 x i8], [1000 x i8]* %14, i64 0, i64 0
%103 = call i32 @strcat(i8* %102, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0))
%104 = getelementptr inbounds [1000 x i8], [1000 x i8]* %14, i64 0, i64 0
%105 = getelementptr inbounds [1000 x i8], [1000 x i8]* %6, i64 0, i64 0
%106 = call i32 @strcat(i8* %104, i8* %105)
%107 = getelementptr inbounds [1000 x i8], [1000 x i8]* %13, i64 0, i64 0
%108 = call i32 @system(i8* %107)
%109 = getelementptr inbounds [1000 x i8], [1000 x i8]* %14, i64 0, i64 0
%110 = call i32 @system(i8* %109)
%111 = getelementptr inbounds [1000 x i8], [1000 x i8]* %15, i64 0, i64 0
%112 = call i32 @strcpy(i8* %111, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%113 = getelementptr inbounds [1000 x i8], [1000 x i8]* %15, i64 0, i64 0
%114 = call i32 @strcat(i8* %113, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%115 = getelementptr inbounds [1000 x i8], [1000 x i8]* %15, i64 0, i64 0
%116 = call i32 @strcat(i8* %115, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%117 = getelementptr inbounds [1000 x i8], [1000 x i8]* %15, i64 0, i64 0
%118 = getelementptr inbounds [1000 x i8], [1000 x i8]* %16, i64 0, i64 0
%119 = call i32 @strcat(i8* %117, i8* %118)
%120 = getelementptr inbounds [1000 x i8], [1000 x i8]* %15, i64 0, i64 0
%121 = call i32 @system(i8* %120)
br label %63
122: ; preds = %63
%123 = load i32*, i32** %2
%124 = call i32 @fclose(i32* %123)
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 = [7 x i8] c"mkdir \00"
@.str.4 = [14 x i8] c"../data_html/\00"
@.str.5 = [14 x i8] c"../stock.list\00"
@.str.6 = [2 x i8] c"r\00"
@.str.7 = [9 x i8] c"%s %s %s\00"
@EOF = global i64 0
@.str.8 = [2 x i8] c"/\00"
@.str.9 = [6 x i8] c"wget \00"
@.str.10 = [4 x i8] c"-P \00"
@.str.11 = [2 x i8] c" \00"
@.str.12 = [18 x i8] c"--html-extension \00"
@.str.13 = [4 x i8] c"cp \00"
@.str.14 = [10 x i8] c".htaccess\00"
define i32 @main() {
%1 = alloca [1000 x i8]
%2 = alloca [100 x i8]
%3 = alloca [1000 x i8]
%4 = alloca [5 x i8]
%5 = alloca [3 x i8]
%6 = alloca [3 x i8]
%7 = alloca [11 x i8]
%8 = alloca [1000 x i8]
%9 = alloca [1000 x i8]
%10 = alloca [1000 x i8]
%11 = alloca [1000 x i8]
%12 = alloca [1000 x i8]
%13 = alloca i32
%14 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%15 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%16 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%17 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%18 = getelementptr inbounds [3 x i8], [3 x i8]* %5, i64 0, i64 0
%19 = getelementptr inbounds [3 x i8], [3 x i8]* %6, i64 0, i64 0
%20 = getelementptr inbounds [11 x i8], [11 x i8]* %7, i64 0, i64 0
%21 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 0
%22 = getelementptr inbounds [1000 x i8], [1000 x i8]* %9, i64 0, i64 0
%23 = getelementptr inbounds [1000 x i8], [1000 x i8]* %10, i64 0, i64 0
%24 = getelementptr inbounds [1000 x i8], [1000 x i8]* %11, i64 0, i64 0
%25 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%26 = bitcast i32* %13 to i8*
%27 = tail call i32 @time(i32* null)
store i32 %27, i32* %13
%28 = call %struct.tm* @localtime(i32* %13)
%29 = getelementptr inbounds %struct.tm, %struct.tm* %28, i64 0, i32 0
%30 = load i32, i32* %29
%31 = getelementptr inbounds %struct.tm, %struct.tm* %28, i64 0, i32 1
%32 = load i32, i32* %31
%33 = getelementptr inbounds %struct.tm, %struct.tm* %28, i64 0, i32 2
%34 = load i32, i32* %33
%35 = add nsw i32 %30, 1900
%36 = call i32 @sprintf(i8* %17, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %35)
%37 = add nsw i32 %32, 1
%38 = call i32 @sprintf(i8* %18, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %37)
%39 = call i32 @sprintf(i8* %19, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %34)
%40 = call i32 @strcpy(i8* %20, i8* %17)
%41 = call i32 @strcat(i8* %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%42 = call i32 @strcat(i8* %20, i8* %18)
%43 = call i32 @strcat(i8* %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%44 = call i32 @strcat(i8* %20, i8* %19)
%45 = call i32 @memset(i8* %21, i8 signext 0, i32 1000)
%46 = call i32 @strcpy(i8* %21, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%47 = call i32 @strcat(i8* %21, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%48 = call i32 @strcat(i8* %21, i8* %20)
%49 = call i32 @system(i8* %21)
%50 = call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%51 = call i64 @fscanf(i32* %50, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* %14, i8* %15, i8* %16)
%52 = load i64, i64* @EOF
%53 = icmp eq i64 %51, %52
br i1 %53, label %80, label %54
54: ; preds = %0, %54
%55 = call i32 @strcpy(i8* %25, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%56 = call i32 @strcat(i8* %25, i8* %20)
%57 = call i32 @strcat(i8* %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%58 = call i32 @strcat(i8* %25, i8* %14)
%59 = call i32 @strcat(i8* %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%60 = call i32 @memset(i8* %22, i8 signext 0, i32 1000)
%61 = call i32 @memset(i8* %23, i8 signext 0, i32 1000)
%62 = call i32 @strcpy(i8* %22, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%63 = call i32 @strcat(i8* %22, i8* %25)
%64 = call i32 @strcpy(i8* %23, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%65 = call i32 @strcat(i8* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%66 = call i32 @strcat(i8* %23, i8* %25)
%67 = call i32 @strcat(i8* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%68 = call i32 @strcat(i8* %23, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0))
%69 = call i32 @strcat(i8* %23, i8* %16)
%70 = call i32 @system(i8* %22)
%71 = call i32 @system(i8* %23)
%72 = call i32 @strcpy(i8* %24, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%73 = call i32 @strcat(i8* %24, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%74 = call i32 @strcat(i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%75 = call i32 @strcat(i8* %24, i8* %25)
%76 = call i32 @system(i8* %24)
%77 = call i64 @fscanf(i32* %50, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* %14, i8* %15, i8* %16)
%78 = load i64, i64* @EOF
%79 = icmp eq i64 %77, %78
br i1 %79, label %80, label %54
80: ; preds = %54, %0
%81 = call i32 @fclose(i32* %50)
ret i32 0
}