#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*/ Error();
int /*<<< orphan*/ FixExtension(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ sprintf(char *, char *, char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcat(char *, char *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, int /*<<< orphan*/);
int strlen(char *);
scalar_t__ system(char *);
int main(int argc, char *argv[]) {
  int Counter, End = 0;
  enum { Init, OptionO } State;
  char LDMFileName[50], OutputFileName[50], Command[256];
  if (argc == 1)
    Error();
  strcpy(LDMFileName, FixExtension(argv[argc - 1], "ldm"));
  for (Counter = 0; Counter <= (strlen(LDMFileName) - 5); Counter++)
    OutputFileName[Counter] = LDMFileName[Counter];
  OutputFileName[Counter] = '\0';
  strcat(OutputFileName, ".pdm");
  End = argc - 2;
  State = Init;
  for (Counter = 1; Counter <= End; Counter++) {
    if (strcmp(argv[Counter], "-o") == 0) {
      if (Counter + 1 != End)
        Error();
      State = OptionO;
    } else {
      if (argv[Counter][0] == '-')
        Error();
      if (State == Init)
        Error();
      strcpy(OutputFileName, FixExtension(argv[Counter], "pdm"));
    }
  }
  fprintf(stderr, "LDM Compiler - Version 2.1\n");
  fprintf(stderr, "Copyright (C) 1989, G. E. Weddell\n");
  fprintf(stderr, "---------------------------------\n");
  fprintf(stderr, "checking syntax.\n");
  sprintf(Command, "./LDMParser < %s > ldmc.in", LDMFileName);
  if (system(Command) != 0)
    system("rm ldmc.*");
  if (system("sbcl --noinform --load LDMRun > ldmc.diag") != 0)
    system("rm ldmc.*");
  sprintf(Command, "mv ldmc.out %s", OutputFileName);
  system(Command);
  system("rm ldmc.*");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1b0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    11c1 <main+0x31>
mov    $0x0,%al
call   1050 <Error@plt>
lea    -0x50(%rbp),%rax
mov    %rax,-0x198(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe1c(%rip),%rsi
call   10b0 <FixExtension@plt>
mov    -0x198(%rbp),%rdi
mov    %eax,%esi
call   1030 <strcpy@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x19c(%rbp)
lea    -0x50(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x19c(%rbp),%eax
sub    $0x5,%ecx
cmp    %ecx,%eax
jg     1244 <main+0xb4>
movslq -0x14(%rbp),%rax
mov    -0x50(%rbp,%rax,1),%cl
movslq -0x14(%rbp),%rax
mov    %cl,-0x90(%rbp,%rax,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11fe <main+0x6e>
movslq -0x14(%rbp),%rax
movb   $0x0,-0x90(%rbp,%rax,1)
lea    -0x90(%rbp),%rdi
lea    0xda6(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     1341 <main+0x1b1>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd70(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    12ca <main+0x13a>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
cmp    -0x18(%rbp),%eax
je     12be <main+0x12e>
mov    $0x0,%al
call   1050 <Error@plt>
movl   $0x1,-0x1c(%rbp)
jmp    132e <main+0x19e>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    12e9 <main+0x159>
mov    $0x0,%al
call   1050 <Error@plt>
cmpl   $0x0,-0x1c(%rbp)
jne    12fa <main+0x16a>
mov    $0x0,%al
call   1050 <Error@plt>
lea    -0x90(%rbp),%rax
mov    %rax,-0x1a8(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xcea(%rip),%rsi
call   10b0 <FixExtension@plt>
mov    -0x1a8(%rbp),%rdi
mov    %eax,%esi
call   1030 <strcpy@plt>
jmp    1333 <main+0x1a3>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    127a <main+0xea>
mov    0x2c98(%rip),%rax
mov    (%rax),%edi
lea    0xcbb(%rip),%rsi
call   1080 <fprintf@plt>
mov    0x2c83(%rip),%rax
mov    (%rax),%edi
lea    0xcc2(%rip),%rsi
call   1080 <fprintf@plt>
mov    0x2c6e(%rip),%rax
mov    (%rax),%edi
lea    0xcd0(%rip),%rsi
call   1080 <fprintf@plt>
mov    0x2c59(%rip),%rax
mov    (%rax),%edi
lea    0xcde(%rip),%rsi
call   1080 <fprintf@plt>
lea    -0x190(%rbp),%rdi
lea    -0x50(%rbp),%rdx
lea    0xcd9(%rip),%rsi
call   10a0 <sprintf@plt>
lea    -0x190(%rbp),%rdi
call   1060 <system@plt>
cmp    $0x0,%rax
je     13ce <main+0x23e>
lea    0xcd2(%rip),%rdi
call   1060 <system@plt>
lea    0xcd0(%rip),%rdi
call   1060 <system@plt>
cmp    $0x0,%rax
je     13f0 <main+0x260>
lea    0xcb0(%rip),%rdi
call   1060 <system@plt>
lea    -0x190(%rbp),%rdi
lea    -0x90(%rbp),%rdx
lea    0xcca(%rip),%rsi
call   10a0 <sprintf@plt>
lea    -0x190(%rbp),%rdi
call   1060 <system@plt>
lea    0xc7e(%rip),%rdi
call   1060 <system@plt>
mov    -0x4(%rbp),%eax
add    $0x1b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x188,%rsp
mov    %rsi,%r14
mov    %edi,%ebx
cmp    $0x1,%edi
jne    11b2 <main+0x22>
xor    %eax,%eax
call   1050 <Error@plt>
mov    %rbx,%r13
lea    -0x1(%rbx),%r12d
movslq %r12d,%rax
mov    (%r14,%rax,8),%rdi
lea    0xe39(%rip),%rsi
call   10b0 <FixExtension@plt>
lea    0x40(%rsp),%r15
mov    %r15,%rdi
mov    %eax,%esi
call   1030 <strcpy@plt>
mov    %r15,%rdi
call   1040 <strlen@plt>
cmp    $0x5,%eax
jge    11ec <main+0x5c>
xor    %ebx,%ebx
jmp    1221 <main+0x91>
xor    %ebp,%ebp
lea    0x40(%rsp),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movzbl 0x40(%rsp,%rbp,1),%eax
mov    %al,(%rsp,%rbp,1)
lea    0x1(%rbp),%rbx
mov    %r15,%rdi
call   1040 <strlen@plt>
add    $0xfffffffb,%eax
cltq
cmp    %rax,%rbp
mov    %rbx,%rbp
jl     1200 <main+0x70>
movb   $0x0,(%rsp,%rbx,1)
lea    0xdd8(%rip),%rsi
mov    %rsp,%rdi
call   1090 <strcat@plt>
mov    %r13,%rbx
cmp    $0x3,%ebx
jge    1313 <main+0x183>
mov    0x2d99(%rip),%rbx
mov    (%rbx),%edi
lea    0xdbc(%rip),%rsi
call   1080 <fprintf@plt>
mov    (%rbx),%edi
lea    0xdca(%rip),%rsi
call   1080 <fprintf@plt>
mov    (%rbx),%edi
lea    0xddf(%rip),%rsi
call   1080 <fprintf@plt>
mov    (%rbx),%edi
lea    0xdf4(%rip),%rsi
call   1080 <fprintf@plt>
lea    0xdfa(%rip),%rsi
lea    0x80(%rsp),%rbx
lea    0x40(%rsp),%rdx
mov    %rbx,%rdi
call   10a0 <sprintf@plt>
mov    %rbx,%rdi
call   1060 <system@plt>
test   %rax,%rax
je     12b4 <main+0x124>
lea    0xdec(%rip),%rdi
call   1060 <system@plt>
lea    0xdea(%rip),%rdi
call   1060 <system@plt>
test   %rax,%rax
je     12d1 <main+0x141>
lea    0xdcf(%rip),%rdi
call   1060 <system@plt>
lea    0xdf7(%rip),%rsi
lea    0x80(%rsp),%rbx
mov    %rsp,%rdx
mov    %rbx,%rdi
call   10a0 <sprintf@plt>
mov    %rbx,%rdi
call   1060 <system@plt>
lea    0xda1(%rip),%rdi
call   1060 <system@plt>
xor    %eax,%eax
add    $0x188,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
add    $0xfffffffe,%ebx
mov    %r12d,%ebp
mov    $0x1,%r12d
lea    0xce3(%rip),%r15
xor    %r13d,%r13d
jmp    135c <main+0x1cc>
nopl   0x0(%rax,%rax,1)
test   %r13d,%r13d
je     13a0 <main+0x210>
mov    (%r14,%r12,8),%rdi
lea    0xcc5(%rip),%rsi
call   10b0 <FixExtension@plt>
mov    %rsp,%rdi
mov    %eax,%esi
call   1030 <strcpy@plt>
add    $0x1,%r12
cmp    %rbp,%r12
je     1240 <main+0xb0>
mov    (%r14,%r12,8),%rdi
mov    %r15,%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1380 <main+0x1f0>
mov    (%r14,%r12,8),%rax
cmpb   $0x2d,(%rax)
jne    1330 <main+0x1a0>
xor    %eax,%eax
call   1050 <Error@plt>
jmp    1330 <main+0x1a0>
nop
add    $0x1,%r12
mov    $0x1,%r13d
cmp    %rbx,%r12
je     1353 <main+0x1c3>
xor    %eax,%eax
call   1050 <Error@plt>
jmp    1353 <main+0x1c3>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1050 <Error@plt>
jmp    1335 <main+0x1a5>

LLVM IR (-O0):
@.str = [4 x i8] c"ldm\00"
@.str.1 = [5 x i8] c".pdm\00"
@.str.2 = [3 x i8] c"-o\00"
@.str.3 = [4 x i8] c"pdm\00"
@stderr = global i32 0
@.str.4 = [28 x i8] c"LDM Compiler - Version 2.1\0A\00"
@.str.5 = [35 x i8] c"Copyright (C) 1989, G. E. Weddell\0A\00"
@.str.6 = [35 x i8] c"---------------------------------\0A\00"
@.str.7 = [18 x i8] c"checking syntax.\0A\00"
@.str.8 = [27 x i8] c"./LDMParser < %s > ldmc.in\00"
@.str.9 = [10 x i8] c"rm ldmc.*\00"
@.str.10 = [42 x i8] c"sbcl --noinform --load LDMRun > ldmc.diag\00"
@.str.11 = [15 x i8] c"mv ldmc.out %s\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [50 x i8]
%10 = alloca [50 x i8]
%11 = alloca [256 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
%12 = load i32, i32* %4
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 (...) @Error()
br label %16
16: ; preds = %14, %2
%17 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
%18 = load i8**, i8*** %5
%19 = load i32, i32* %4
%20 = sub nsw i32 %19, 1
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8*, i8** %18, i64 %21
%23 = load i8*, i8** %22
%24 = call i32 @FixExtension(i8* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%25 = call i32 @strcpy(i8* %17, i32 %24)
store i32 0, i32* %6
br label %26
26: ; preds = %40, %16
%27 = load i32, i32* %6
%28 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
%29 = call i32 @strlen(i8* %28)
%30 = sub nsw i32 %29, 5
%31 = icmp sle i32 %27, %30
br i1 %31, label %32, label %43
32: ; preds = %26
%33 = load i32, i32* %6
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 %34
%36 = load i8, i8* %35
%37 = load i32, i32* %6
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [50 x i8], [50 x i8]* %10, i64 0, i64 %38
store i8 %36, i8* %39
br label %40
40: ; preds = %32
%41 = load i32, i32* %6
%42 = add nsw i32 %41, 1
store i32 %42, i32* %6
br label %26
43: ; preds = %26
%44 = load i32, i32* %6
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [50 x i8], [50 x i8]* %10, i64 0, i64 %45
store i8 0, i8* %46
%47 = getelementptr inbounds [50 x i8], [50 x i8]* %10, i64 0, i64 0
%48 = call i32 @strcat(i8* %47, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%49 = load i32, i32* %4
%50 = sub nsw i32 %49, 2
store i32 %50, i32* %7
store i32 0, i32* %8
store i32 1, i32* %6
br label %51
51: ; preds = %98, %43
%52 = load i32, i32* %6
%53 = load i32, i32* %7
%54 = icmp sle i32 %52, %53
br i1 %54, label %55, label %101
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 i64 @strcmp(i8* %60, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %71
63: ; preds = %55
%64 = load i32, i32* %6
%65 = add nsw i32 %64, 1
%66 = load i32, i32* %7
%67 = icmp ne i32 %65, %66
br i1 %67, label %68, label %70
68: ; preds = %63
%69 = call i32 (...) @Error()
br label %70
70: ; preds = %68, %63
store i32 1, i32* %8
br label %97
71: ; preds = %55
%72 = load i8**, i8*** %5
%73 = load i32, i32* %6
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8*, i8** %72, i64 %74
%76 = load i8*, i8** %75
%77 = getelementptr inbounds i8, i8* %76, i64 0
%78 = load i8, i8* %77
%79 = sext i8 %78 to i32
%80 = icmp eq i32 %79, 45
br i1 %80, label %81, label %83
81: ; preds = %71
%82 = call i32 (...) @Error()
br label %83
83: ; preds = %81, %71
%84 = load i32, i32* %8
%85 = icmp eq i32 %84, 0
br i1 %85, label %86, label %88
86: ; preds = %83
%87 = call i32 (...) @Error()
br label %88
88: ; preds = %86, %83
%89 = getelementptr inbounds [50 x i8], [50 x i8]* %10, i64 0, i64 0
%90 = load i8**, i8*** %5
%91 = load i32, i32* %6
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i8*, i8** %90, i64 %92
%94 = load i8*, i8** %93
%95 = call i32 @FixExtension(i8* %94, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%96 = call i32 @strcpy(i8* %89, i32 %95)
br label %97
97: ; preds = %88, %70
br label %98
98: ; preds = %97
%99 = load i32, i32* %6
%100 = add nsw i32 %99, 1
store i32 %100, i32* %6
br label %51
101: ; preds = %51
%102 = load i32, i32* @stderr
%103 = call i32 @fprintf(i32 %102, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%104 = load i32, i32* @stderr
%105 = call i32 @fprintf(i32 %104, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
%106 = load i32, i32* @stderr
%107 = call i32 @fprintf(i32 %106, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0))
%108 = load i32, i32* @stderr
%109 = call i32 @fprintf(i32 %108, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%110 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%111 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
%112 = call i32 @sprintf(i8* %110, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i8* %111)
%113 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%114 = call i64 @system(i8* %113)
%115 = icmp ne i64 %114, 0
br i1 %115, label %116, label %118
116: ; preds = %101
%117 = call i64 @system(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
br label %118
118: ; preds = %116, %101
%119 = call i64 @system(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0))
%120 = icmp ne i64 %119, 0
br i1 %120, label %121, label %123
121: ; preds = %118
%122 = call i64 @system(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
br label %123
123: ; preds = %121, %118
%124 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%125 = getelementptr inbounds [50 x i8], [50 x i8]* %10, i64 0, i64 0
%126 = call i32 @sprintf(i8* %124, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8* %125)
%127 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%128 = call i64 @system(i8* %127)
%129 = call i64 @system(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%130 = load i32, i32* %3
ret i32 %130
}

LLVM IR (-O2):
@.str = [4 x i8] c"ldm\00"
@.str.1 = [5 x i8] c".pdm\00"
@.str.2 = [3 x i8] c"-o\00"
@.str.3 = [4 x i8] c"pdm\00"
@stderr = global i32 0
@.str.4 = [28 x i8] c"LDM Compiler - Version 2.1\0A\00"
@.str.5 = [35 x i8] c"Copyright (C) 1989, G. E. Weddell\0A\00"
@.str.6 = [35 x i8] c"---------------------------------\0A\00"
@.str.7 = [18 x i8] c"checking syntax.\0A\00"
@.str.8 = [27 x i8] c"./LDMParser < %s > ldmc.in\00"
@.str.9 = [10 x i8] c"rm ldmc.*\00"
@.str.10 = [42 x i8] c"sbcl --noinform --load LDMRun > ldmc.diag\00"
@.str.11 = [15 x i8] c"mv ldmc.out %s\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [50 x i8]
%4 = alloca [50 x i8]
%5 = alloca [256 x i8]
%6 = getelementptr inbounds [50 x i8], [50 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [50 x i8], [50 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%9 = icmp eq i32 %0, 1
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = tail call i32 (...) @Error()
br label %12
12: ; preds = %10, %2
%13 = add i32 %0, -1
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8*, i8** %1, i64 %14
%16 = load i8*, i8** %15
%17 = tail call i32 @FixExtension(i8* %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%18 = call i32 @strcpy(i8* %6, i32 %17)
%19 = call i32 @strlen(i8* %6)
%20 = icmp slt i32 %19, 5
br i1 %20, label %33, label %21
21: ; preds = %12, %21
%22 = phi i64 [ %26, %21 ], [ 0, %12 ]
%23 = getelementptr inbounds [50 x i8], [50 x i8]* %3, i64 0, i64 %22
%24 = load i8, i8* %23
%25 = getelementptr inbounds [50 x i8], [50 x i8]* %4, i64 0, i64 %22
store i8 %24, i8* %25
%26 = add nuw nsw i64 %22, 1
%27 = call i32 @strlen(i8* %6)
%28 = add nsw i32 %27, -5
%29 = sext i32 %28 to i64
%30 = icmp slt i64 %22, %29
br i1 %30, label %21, label %31
31: ; preds = %21
%32 = and i64 %26, 4294967295
br label %33
33: ; preds = %31, %12
%34 = phi i64 [ 0, %12 ], [ %32, %31 ]
%35 = getelementptr inbounds [50 x i8], [50 x i8]* %4, i64 0, i64 %34
store i8 0, i8* %35
%36 = call i32 @strcat(i8* %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%37 = icmp slt i32 %0, 3
br i1 %37, label %73, label %38
38: ; preds = %33
%39 = add nsw i32 %0, -2
%40 = zext i32 %39 to i64
%41 = zext i32 %13 to i64
br label %42
42: ; preds = %38, %69
%43 = phi i64 [ 1, %38 ], [ %70, %69 ]
%44 = phi i32 [ 0, %38 ], [ %71, %69 ]
%45 = getelementptr inbounds i8*, i8** %1, i64 %43
%46 = load i8*, i8** %45
%47 = call i64 @strcmp(i8* %46, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %54
49: ; preds = %42
%50 = add nuw nsw i64 %43, 1
%51 = icmp eq i64 %50, %40
br i1 %51, label %69, label %52
52: ; preds = %49
%53 = call i32 (...) @Error()
br label %69
54: ; preds = %42
%55 = load i8*, i8** %45
%56 = load i8, i8* %55
%57 = icmp eq i8 %56, 45
br i1 %57, label %58, label %60
58: ; preds = %54
%59 = call i32 (...) @Error()
br label %60
60: ; preds = %58, %54
%61 = icmp eq i32 %44, 0
br i1 %61, label %62, label %64
62: ; preds = %60
%63 = call i32 (...) @Error()
br label %64
64: ; preds = %62, %60
%65 = load i8*, i8** %45
%66 = call i32 @FixExtension(i8* %65, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%67 = call i32 @strcpy(i8* %7, i32 %66)
%68 = add nuw nsw i64 %43, 1
br label %69
69: ; preds = %49, %52, %64
%70 = phi i64 [ %50, %49 ], [ %50, %52 ], [ %68, %64 ]
%71 = phi i32 [ 1, %49 ], [ 1, %52 ], [ %44, %64 ]
%72 = icmp eq i64 %70, %41
br i1 %72, label %73, label %42
73: ; preds = %69, %33
%74 = load i32, i32* @stderr
%75 = call i32 @fprintf(i32 %74, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%76 = load i32, i32* @stderr
%77 = call i32 @fprintf(i32 %76, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
%78 = load i32, i32* @stderr
%79 = call i32 @fprintf(i32 %78, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0))
%80 = load i32, i32* @stderr
%81 = call i32 @fprintf(i32 %80, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%82 = call i32 @sprintf(i8* %8, i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i8* %6)
%83 = call i64 @system(i8* %8)
%84 = icmp eq i64 %83, 0
br i1 %84, label %87, label %85
85: ; preds = %73
%86 = call i64 @system(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
br label %87
87: ; preds = %85, %73
%88 = call i64 @system(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0))
%89 = icmp eq i64 %88, 0
br i1 %89, label %92, label %90
90: ; preds = %87
%91 = call i64 @system(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
br label %92
92: ; preds = %90, %87
%93 = call i32 @sprintf(i8* %8, i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8* %7)
%94 = call i64 @system(i8* %8)
%95 = call i64 @system(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
ret i32 0
}