#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 */
struct tm {
  int tm_year;
  void *tm_mon;
  void *tm_mday;
  scalar_t__ tm_hour;
  scalar_t__ tm_min;
  scalar_t__ tm_sec;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ STDOUT_FILENO;
int /*<<< orphan*/ asctime(struct tm *);
void *atoi(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcpy(char *, int /*<<< orphan*/);
int strlen(char *);
int /*<<< orphan*/ write(int /*<<< orphan*/, char *, int);
int main(int argc, char *argv[]) {
  char inp[400];
  char outp[400];
  FILE *infile;
  char *s;
  char *t;
  if (argc != 2) {
    printf("Convert 18 char filelists to 34 char filelists by Antti "
           "Häyrynen.\nUsage: %s [oldlist]\n\nOutput is stdio!\n",
           argv[0]);
    exit(0);
  }
  if (!(infile = fopen(argv[1], "r"))) {
    printf("Can't open infile!\n");
    exit(0);
  }
  while (fgets(inp, sizeof inp, infile)) {
    if (*inp == ' ') {
      write(STDOUT_FILENO, inp, strlen(inp));
    } else {
      int i;
      struct tm tm;
      t = inp;
      s = outp;
      for (i = 0; i < 19; i++)
        outp[i] = inp[i];
      for (i = 19; i < 35; i++)
        outp[i] = ' ';
      outp[35] = inp[19];
      outp[36] = inp[20];
      outp[37] = '-';
      outp[38] = '-';
      outp[39] = ' ';
      outp[40] = inp[22];
      outp[41] = inp[23];
      outp[42] = inp[24];
      outp[43] = inp[25];
      outp[44] = '0';
      outp[45] = '0';
      outp[46] = '0';
      outp[47] = ' ';
      inp[0] = inp[28];
      inp[1] = inp[29];
      inp[2] = 0;
      inp[3] = inp[30];
      inp[4] = inp[31];
      inp[5] = 0;
      inp[6] = inp[32];
      inp[7] = inp[33];
      inp[8] = 0;
      tm.tm_sec = 0;
      tm.tm_min = 0;
      tm.tm_hour = 0;
      tm.tm_mday = atoi(inp);
      tm.tm_mon = atoi(&inp[3]) - 1;
      tm.tm_year = atoi(&inp[6]);
      if (tm.tm_year < 70)
        tm.tm_year += 100;
      strcpy(&outp[48], asctime(&tm));
      write(STDOUT_FILENO, outp, strlen(outp));
      write(STDOUT_FILENO, "                                   ", 35);
      write(STDOUT_FILENO, &inp[35], strlen(&inp[35]));
    }
  }
  fclose(infile);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3c0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11df <main+0x3f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe2f(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
xor    %edi,%edi
call   10c0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe7c(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x338(%rbp)
cmp    $0x0,%rax
jne    1219 <main+0x79>
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
xor    %edi,%edi
call   10c0 <exit@plt>
jmp    121e <main+0x7e>
lea    -0x1a0(%rbp),%rdi
mov    -0x338(%rbp),%rdx
mov    $0x190,%esi
call   1090 <fgets@plt>
cmp    $0x0,%rax
je     1553 <main+0x3b3>
movsbl -0x1a0(%rbp),%eax
cmp    $0x20,%eax
jne    1292 <main+0xf2>
mov    0x2d99(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38c(%rbp)
lea    -0x1a0(%rbp),%rax
mov    %rax,-0x388(%rbp)
lea    -0x1a0(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x38c(%rbp),%edi
mov    -0x388(%rbp),%rsi
mov    %eax,%edx
call   1040 <write@plt>
jmp    154e <main+0x3ae>
lea    -0x1a0(%rbp),%rax
mov    %rax,-0x348(%rbp)
lea    -0x330(%rbp),%rax
mov    %rax,-0x340(%rbp)
movl   $0x0,-0x34c(%rbp)
cmpl   $0x13,-0x34c(%rbp)
jge    12f5 <main+0x155>
movslq -0x34c(%rbp),%rax
mov    -0x1a0(%rbp,%rax,1),%cl
movslq -0x34c(%rbp),%rax
mov    %cl,-0x330(%rbp,%rax,1)
mov    -0x34c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34c(%rbp)
jmp    12b8 <main+0x118>
movl   $0x13,-0x34c(%rbp)
cmpl   $0x23,-0x34c(%rbp)
jge    132f <main+0x18f>
movslq -0x34c(%rbp),%rax
movb   $0x20,-0x330(%rbp,%rax,1)
20
mov    -0x34c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34c(%rbp)
jmp    12ff <main+0x15f>
mov    -0x18d(%rbp),%al
mov    %al,-0x30d(%rbp)
mov    -0x18c(%rbp),%al
mov    %al,-0x30c(%rbp)
movb   $0x2d,-0x30b(%rbp)
movb   $0x2d,-0x30a(%rbp)
movb   $0x20,-0x309(%rbp)
mov    -0x18a(%rbp),%al
mov    %al,-0x308(%rbp)
mov    -0x189(%rbp),%al
mov    %al,-0x307(%rbp)
mov    -0x188(%rbp),%al
mov    %al,-0x306(%rbp)
mov    -0x187(%rbp),%al
mov    %al,-0x305(%rbp)
movb   $0x30,-0x304(%rbp)
movb   $0x30,-0x303(%rbp)
movb   $0x30,-0x302(%rbp)
movb   $0x20,-0x301(%rbp)
mov    -0x184(%rbp),%al
mov    %al,-0x1a0(%rbp)
mov    -0x183(%rbp),%al
mov    %al,-0x19f(%rbp)
movb   $0x0,-0x19e(%rbp)
mov    -0x182(%rbp),%al
mov    %al,-0x19d(%rbp)
mov    -0x181(%rbp),%al
mov    %al,-0x19c(%rbp)
movb   $0x0,-0x19b(%rbp)
mov    -0x180(%rbp),%al
mov    %al,-0x19a(%rbp)
mov    -0x17f(%rbp),%al
mov    %al,-0x199(%rbp)
movb   $0x0,-0x198(%rbp)
movq   $0x0,-0x358(%rbp)
movq   $0x0,-0x360(%rbp)
movq   $0x0,-0x368(%rbp)
lea    -0x1a0(%rbp),%rdi
call   10b0 <atoi@plt>
mov    %rax,-0x370(%rbp)
lea    -0x1a0(%rbp),%rdi
add    $0x3,%rdi
call   10b0 <atoi@plt>
add    $0xffffffffffffffff,%rax
mov    %rax,-0x378(%rbp)
lea    -0x1a0(%rbp),%rdi
add    $0x6,%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x380(%rbp)
cmpl   $0x46,-0x380(%rbp)
jge    1486 <main+0x2e6>
mov    -0x380(%rbp),%eax
add    $0x64,%eax
mov    %eax,-0x380(%rbp)
lea    -0x330(%rbp),%rax
add    $0x30,%rax
mov    %rax,-0x3b8(%rbp)
lea    -0x380(%rbp),%rdi
call   1070 <asctime@plt>
mov    -0x3b8(%rbp),%rdi
mov    %eax,%esi
call   1030 <strcpy@plt>
mov    0x2b37(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3ac(%rbp)
lea    -0x330(%rbp),%rax
mov    %rax,-0x3a8(%rbp)
lea    -0x330(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x3ac(%rbp),%edi
mov    -0x3a8(%rbp),%rsi
mov    %eax,%edx
call   1040 <write@plt>
mov    0x2afa(%rip),%rax
mov    (%rax),%edi
lea    0xb81(%rip),%rsi
mov    $0x23,%edx
call   1040 <write@plt>
mov    0x2ae0(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x39c(%rbp)
lea    -0x1a0(%rbp),%rax
add    $0x23,%rax
mov    %rax,-0x398(%rbp)
lea    -0x1a0(%rbp),%rdi
add    $0x23,%rdi
call   1060 <strlen@plt>
mov    -0x39c(%rbp),%edi
mov    -0x398(%rbp),%rsi
mov    %eax,%edx
call   1040 <write@plt>
jmp    121e <main+0x7e>
mov    -0x338(%rbp),%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
add    $0x3c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x358,%rsp
cmp    $0x2,%edi
jne    13aa <main+0x1fa>
mov    0x8(%rsi),%rdi
lea    0xeb5(%rip),%rsi
call   10b0 <fopen@plt>
test   %rax,%rax
je     13c2 <main+0x212>
mov    %rax,%r12
lea    0x30(%rsp),%rdi
mov    $0x190,%esi
mov    %rax,%rdx
call   10a0 <fgets@plt>
test   %rax,%rax
je     138e <main+0x1de>
mov    0x2de8(%rip),%r13
lea    0x30(%rsp),%r15
jmp    136f <main+0x1bf>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movaps 0x30(%rsp),%xmm0
movaps %xmm0,0x1c0(%rsp)
mov    0x3f(%rsp),%eax
mov    %eax,0x1cf(%rsp)
lea    0x1f0(%rsp),%rbx
movaps 0xdb9(%rip),%xmm0
movups %xmm0,-0x1d(%rbx)
movzwl 0x43(%rsp),%eax
mov    %ax,0x1e3(%rsp)
movw   $0x2d2d,0x1e5(%rsp)
movb   $0x20,0x1e7(%rsp)
20
mov    0x46(%rsp),%eax
mov    %eax,0x1e8(%rsp)
movl   $0x20303030,0x1ec(%rsp)
30 30 30 20
movzwl 0x4c(%rsp),%eax
mov    %ax,0x30(%rsp)
movb   $0x0,0x32(%rsp)
movzwl 0x4e(%rsp),%eax
mov    %ax,0x33(%rsp)
movb   $0x0,0x35(%rsp)
movzwl 0x50(%rsp),%eax
mov    %ax,0x36(%rsp)
movb   $0x0,0x38(%rsp)
lea    0x18(%rsp),%rax
xorps  %xmm0,%xmm0
movups %xmm0,(%rax)
movq   $0x0,0x10(%rax)
mov    %r15,%rdi
call   10c0 <atoi@plt>
mov    %rax,0x10(%rsp)
lea    0x33(%rsp),%rdi
call   10c0 <atoi@plt>
add    $0xffffffffffffffff,%rax
mov    %rax,0x8(%rsp)
lea    0x36(%rsp),%rdi
call   10c0 <atoi@plt>
lea    0x64(%rax),%ecx
cmp    $0x46,%eax
cmovge %eax,%ecx
mov    %ecx,(%rsp)
mov    %rsp,%rdi
call   1080 <asctime@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <strcpy@plt>
mov    0x0(%r13),%ebx
lea    0x1c0(%rsp),%rbp
mov    %rbp,%rdi
call   1070 <strlen@plt>
mov    %ebx,%edi
mov    %rbp,%rsi
mov    %eax,%edx
call   1050 <write@plt>
mov    0x0(%r13),%edi
lea    0xd59(%rip),%rsi
mov    $0x23,%edx
call   1050 <write@plt>
mov    0x0(%r13),%ebx
lea    0x53(%rsp),%rbp
mov    %rbp,%rdi
call   1070 <strlen@plt>
mov    %ebx,%edi
mov    %rbp,%rsi
mov    %eax,%edx
call   1050 <write@plt>
mov    %r15,%rdi
mov    $0x190,%esi
mov    %r12,%rdx
call   10a0 <fgets@plt>
test   %rax,%rax
je     138e <main+0x1de>
cmpb   $0x20,0x30(%rsp)
jne    1220 <main+0x70>
mov    0x0(%r13),%r14d
mov    %r15,%rdi
call   1070 <strlen@plt>
mov    %r14d,%edi
mov    %r15,%rsi
jmp    1353 <main+0x1a3>
mov    %r12,%rdi
call   1060 <fclose@plt>
xor    %eax,%eax
add    $0x358,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    (%rsi),%rsi
lea    0xc6c(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %edi,%edi
call   10d0 <exit@plt>
lea    0xce7(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
%struct.tm = type { i32, i8*, i8*, i64, i64, i64 }
@.str = [106 x i8] c"Convert 18 char filelists to 34 char filelists by Antti H\C3\A4yrynen.\0AUsage: %s [oldlist]\0A\0AOutput is stdio!\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [20 x i8] c"Can't open infile!\0A\00"
@STDOUT_FILENO = global i32 0
@.str.3 = [36 x i8] c" \00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [400 x i8]
%7 = alloca [400 x i8]
%8 = alloca i32*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca %struct.tm
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = load i32, i32* %4
%14 = icmp ne i32 %13, 2
br i1 %14, label %15, label %21
15: ; preds = %2
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 0
%18 = load i8*, i8** %17
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str, i64 0, i64 0), i8* %18)
%20 = call i32 @exit(i32 0)
unreachable
21: ; preds = %2
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = call i32* @fopen(i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %25, i32** %8
%26 = icmp ne i32* %25, null
br i1 %26, label %30, label %27
27: ; preds = %21
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%29 = call i32 @exit(i32 0)
unreachable
30: ; preds = %21
br label %31
31: ; preds = %159, %30
%32 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 0
%33 = load i32*, i32** %8
%34 = call i64 @fgets(i8* %32, i32 400, i32* %33)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %160
36: ; preds = %31
%37 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 0
%38 = load i8, i8* %37
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 32
br i1 %40, label %41, label %47
41: ; preds = %36
%42 = load i32, i32* @STDOUT_FILENO
%43 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 0
%44 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 0
%45 = call i32 @strlen(i8* %44)
%46 = call i32 @write(i32 %42, i8* %43, i32 %45)
br label %159
47: ; preds = %36
%48 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 0
store i8* %48, i8** %10
%49 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 0
store i8* %49, i8** %9
store i32 0, i32* %11
br label %50
50: ; preds = %61, %47
%51 = load i32, i32* %11
%52 = icmp slt i32 %51, 19
br i1 %52, label %53, label %64
53: ; preds = %50
%54 = load i32, i32* %11
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 %55
%57 = load i8, i8* %56
%58 = load i32, i32* %11
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 %59
store i8 %57, i8* %60
br label %61
61: ; preds = %53
%62 = load i32, i32* %11
%63 = add nsw i32 %62, 1
store i32 %63, i32* %11
br label %50
64: ; preds = %50
store i32 19, i32* %11
br label %65
65: ; preds = %72, %64
%66 = load i32, i32* %11
%67 = icmp slt i32 %66, 35
br i1 %67, label %68, label %75
68: ; preds = %65
%69 = load i32, i32* %11
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 %70
store i8 32, i8* %71
br label %72
72: ; preds = %68
%73 = load i32, i32* %11
%74 = add nsw i32 %73, 1
store i32 %74, i32* %11
br label %65
75: ; preds = %65
%76 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 19
%77 = load i8, i8* %76
%78 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 35
store i8 %77, i8* %78
%79 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 20
%80 = load i8, i8* %79
%81 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 36
store i8 %80, i8* %81
%82 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 37
store i8 45, i8* %82
%83 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 38
store i8 45, i8* %83
%84 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 39
store i8 32, i8* %84
%85 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 22
%86 = load i8, i8* %85
%87 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 40
store i8 %86, i8* %87
%88 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 23
%89 = load i8, i8* %88
%90 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 41
store i8 %89, i8* %90
%91 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 24
%92 = load i8, i8* %91
%93 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 42
store i8 %92, i8* %93
%94 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 25
%95 = load i8, i8* %94
%96 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 43
store i8 %95, i8* %96
%97 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 44
store i8 48, i8* %97
%98 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 45
store i8 48, i8* %98
%99 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 46
store i8 48, i8* %99
%100 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 47
store i8 32, i8* %100
%101 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 28
%102 = load i8, i8* %101
%103 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 0
store i8 %102, i8* %103
%104 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 29
%105 = load i8, i8* %104
%106 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 1
store i8 %105, i8* %106
%107 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 2
store i8 0, i8* %107
%108 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 30
%109 = load i8, i8* %108
%110 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 3
store i8 %109, i8* %110
%111 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 31
%112 = load i8, i8* %111
%113 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 4
store i8 %112, i8* %113
%114 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 5
store i8 0, i8* %114
%115 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 32
%116 = load i8, i8* %115
%117 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 6
store i8 %116, i8* %117
%118 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 33
%119 = load i8, i8* %118
%120 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 7
store i8 %119, i8* %120
%121 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 8
store i8 0, i8* %121
%122 = getelementptr inbounds %struct.tm, %struct.tm* %12, i32 0, i32 5
store i64 0, i64* %122
%123 = getelementptr inbounds %struct.tm, %struct.tm* %12, i32 0, i32 4
store i64 0, i64* %123
%124 = getelementptr inbounds %struct.tm, %struct.tm* %12, i32 0, i32 3
store i64 0, i64* %124
%125 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 0
%126 = call i8* @atoi(i8* %125)
%127 = getelementptr inbounds %struct.tm, %struct.tm* %12, i32 0, i32 2
store i8* %126, i8** %127
%128 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 3
%129 = call i8* @atoi(i8* %128)
%130 = getelementptr i8, i8* %129, i64 -1
%131 = getelementptr inbounds %struct.tm, %struct.tm* %12, i32 0, i32 1
store i8* %130, i8** %131
%132 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 6
%133 = call i8* @atoi(i8* %132)
%134 = ptrtoint i8* %133 to i32
%135 = getelementptr inbounds %struct.tm, %struct.tm* %12, i32 0, i32 0
store i32 %134, i32* %135
%136 = getelementptr inbounds %struct.tm, %struct.tm* %12, i32 0, i32 0
%137 = load i32, i32* %136
%138 = icmp slt i32 %137, 70
br i1 %138, label %139, label %143
139: ; preds = %75
%140 = getelementptr inbounds %struct.tm, %struct.tm* %12, i32 0, i32 0
%141 = load i32, i32* %140
%142 = add nsw i32 %141, 100
store i32 %142, i32* %140
br label %143
143: ; preds = %139, %75
%144 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 48
%145 = call i32 @asctime(%struct.tm* %12)
%146 = call i32 @strcpy(i8* %144, i32 %145)
%147 = load i32, i32* @STDOUT_FILENO
%148 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 0
%149 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 0
%150 = call i32 @strlen(i8* %149)
%151 = call i32 @write(i32 %147, i8* %148, i32 %150)
%152 = load i32, i32* @STDOUT_FILENO
%153 = call i32 @write(i32 %152, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i32 35)
%154 = load i32, i32* @STDOUT_FILENO
%155 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 35
%156 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 35
%157 = call i32 @strlen(i8* %156)
%158 = call i32 @write(i32 %154, i8* %155, i32 %157)
br label %159
159: ; preds = %143, %41
br label %31
160: ; preds = %31
%161 = load i32*, i32** %8
%162 = call i32 @fclose(i32* %161)
ret i32 0
}

LLVM IR (-O2):
%struct.tm = type { i32, i8*, i8*, i64, i64, i64 }
@.str = [106 x i8] c"Convert 18 char filelists to 34 char filelists by Antti H\C3\A4yrynen.\0AUsage: %s [oldlist]\0A\0AOutput is stdio!\0A\00"
@.str.1 = [2 x i8] c"r\00"
@STDOUT_FILENO = global i32 0
@.str.3 = [36 x i8] c" \00"
@str = [19 x i8] c"Can't open infile!\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [400 x i8]
%4 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 0
%5 = alloca [400 x i8]
%6 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%7 = alloca %struct.tm
%8 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%10 = icmp eq i32 %0, 2
br i1 %10, label %15, label %11
11: ; preds = %2
%12 = load i8*, i8** %1
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([106 x i8], [106 x i8]* @.str, i64 0, i64 0), i8* %12)
%14 = tail call i32 @exit(i32 0)
unreachable
15: ; preds = %2
%16 = getelementptr inbounds i8*, i8** %1, i64 1
%17 = load i8*, i8** %16
%18 = tail call i32* @fopen(i8* %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%19 = icmp eq i32* %18, null
br i1 %19, label %66, label %20
20: ; preds = %15
%21 = call i64 @fgets(i8* %8, i32 400, i32* %18)
%22 = icmp eq i64 %21, 0
br i1 %22, label %111, label %23
23: ; preds = %20
%24 = bitcast %struct.tm* %7 to i8*
%25 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 19
%26 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 35
%27 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 20
%28 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 36
%29 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 37
%30 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 38
%31 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 39
%32 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 22
%33 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 40
%34 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 23
%35 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 41
%36 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 24
%37 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 42
%38 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 25
%39 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 43
%40 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 44
%41 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 45
%42 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 46
%43 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 47
%44 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 28
%45 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 29
%46 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 1
%47 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 2
%48 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 30
%49 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 3
%50 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 31
%51 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 4
%52 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 5
%53 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 32
%54 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 6
%55 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 33
%56 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 7
%57 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 8
%58 = getelementptr inbounds %struct.tm, %struct.tm* %7, i64 0, i32 3
%59 = getelementptr inbounds %struct.tm, %struct.tm* %7, i64 0, i32 2
%60 = getelementptr inbounds %struct.tm, %struct.tm* %7, i64 0, i32 1
%61 = getelementptr inbounds %struct.tm, %struct.tm* %7, i64 0, i32 0
%62 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 48
%63 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 35
%64 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 19
%65 = bitcast i64* %58 to i8*
br label %69
66: ; preds = %15
%67 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%68 = tail call i32 @exit(i32 0)
unreachable
69: ; preds = %23, %108
%70 = load i8, i8* %8
%71 = icmp eq i8 %70, 32
br i1 %71, label %72, label %76
72: ; preds = %69
%73 = load i32, i32* @STDOUT_FILENO
%74 = call i32 @strlen(i8* %8)
%75 = call i32 @write(i32 %73, i8* %8, i32 %74)
br label %108
76: ; preds = %69
%77 = load i8, i8* %25
store i8 %77, i8* %26
%78 = load i8, i8* %27
store i8 %78, i8* %28
store i8 45, i8* %29
store i8 45, i8* %30
store i8 32, i8* %31
%79 = load i8, i8* %32
store i8 %79, i8* %33
%80 = load i8, i8* %34
store i8 %80, i8* %35
%81 = load i8, i8* %36
store i8 %81, i8* %37
%82 = load i8, i8* %38
store i8 %82, i8* %39
store i8 48, i8* %40
store i8 48, i8* %41
store i8 48, i8* %42
store i8 32, i8* %43
%83 = load i8, i8* %44
store i8 %83, i8* %8
%84 = load i8, i8* %45
store i8 %84, i8* %46
store i8 0, i8* %47
%85 = load i8, i8* %48
store i8 %85, i8* %49
%86 = load i8, i8* %50
store i8 %86, i8* %51
store i8 0, i8* %52
%87 = load i8, i8* %53
store i8 %87, i8* %54
%88 = load i8, i8* %55
store i8 %88, i8* %56
store i8 0, i8* %57
%89 = call i8* @atoi(i8* %8)
store i8* %89, i8** %59
%90 = call i8* @atoi(i8* %49)
%91 = getelementptr i8, i8* %90, i64 -1
store i8* %91, i8** %60
%92 = call i8* @atoi(i8* %54)
%93 = ptrtoint i8* %92 to i64
%94 = trunc i64 %93 to i32
%95 = icmp slt i32 %94, 70
%96 = add nsw i32 %94, 100
%97 = select i1 %95, i32 %96, i32 %94
store i32 %97, i32* %61
%98 = call i32 @asctime(%struct.tm* %7)
%99 = call i32 @strcpy(i8* %62, i32 %98)
%100 = load i32, i32* @STDOUT_FILENO
%101 = call i32 @strlen(i8* %9)
%102 = call i32 @write(i32 %100, i8* %9, i32 %101)
%103 = load i32, i32* @STDOUT_FILENO
%104 = call i32 @write(i32 %103, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i32 35)
%105 = load i32, i32* @STDOUT_FILENO
%106 = call i32 @strlen(i8* %63)
%107 = call i32 @write(i32 %105, i8* %63, i32 %106)
br label %108
108: ; preds = %76, %72
%109 = call i64 @fgets(i8* %8, i32 400, i32* %18)
%110 = icmp eq i64 %109, 0
br i1 %110, label %111, label %69
111: ; preds = %108, %20
%112 = call i32 @fclose(i32* %18)
ret i32 0
}