#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 EXIT_FAILURE;
int EXIT_SUCCESS;
scalar_t__ errno;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int fscanf(int /*<<< orphan*/ *, char *, char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
scalar_t__ strcmp(char *, char *);
char *strerror(scalar_t__);
int system(char *);
int checkVersion() {
  char cmd[256], vers[256], build[256];
  FILE *fp;
  errno = 0;
  sprintf(cmd, "wget %s -O /tmp/VERSION -q",
          "https://raw.github.com/ynad/pw-gen/master/VERSION");
  if (system(cmd) == -1) {
    fprintf(stderr, "Error executing system call: %s\n", strerror(errno));
    return (EXIT_FAILURE);
  }
  if ((fp = fopen("/tmp/VERSION", "r")) == NULL) {
    fprintf(stderr, "Error reading from file \"%s\": %s\n", "/tmp/VERSION",
            strerror(errno));
    return (EXIT_FAILURE);
  }
  if (fscanf(fp, "%s %s", vers, build) != 2) {
    fprintf(stderr, "No data collected or no internet connection.\n\n");
    vers[0] = '-';
    vers[1] = '\0';
    build[0] = '-';
    build[1] = '\0';
  } else {
    if (strcmp(vers, "1.2.8") < 0 ||
        (strcmp(vers, "1.2.8") == 0 && strcmp(build, "2014-10-02") < 0)) {
      fprintf(stdout,
              "Newer version is in use (local: %s [%s], repo: %s [%s]).\n\n",
              "1.2.8", "2014-10-02", vers, build);
    } else if (strcmp(vers, "1.2.8") == 0 && strcmp(build, "2014-10-02") == 0) {
      fprintf(stdout, "Up-to-date version is in use (%s [%s]).\n\n", "1.2.8",
              "2014-10-02");
    } else {
      fprintf(stdout,
              "Version in use: %s (%s), available: %s (%s)\nCheck \"%s\" for "
              "updates!\n\n",
              "1.2.8", "2014-10-02", vers, build, "github.com/ynad/pw-gen/");
    }
  }
  fclose(fp);
  if (system("rm -f /tmp/VERSION") == -1) {
    fprintf(stderr, "Error executing system call: %s\n", strerror(errno));
    return (EXIT_FAILURE);
  }
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<checkVersion>:
push   %rbp
mov    %rsp,%rbp
sub    $0x330,%rsp
mov    0x2e46(%rip),%rax
movq   $0x0,(%rax)
lea    -0x110(%rbp),%rdi
lea    0xe59(%rip),%rsi
lea    0xe6d(%rip),%rdx
call   1090 <sprintf@plt>
lea    -0x110(%rbp),%rdi
call   1040 <system@plt>
cmp    $0xffffffff,%eax
jne    120e <checkVersion+0x8e>
mov    0x2e11(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x31c(%rbp)
mov    0x2dfa(%rip),%rax
mov    (%rax),%rdi
call   10a0 <strerror@plt>
mov    -0x31c(%rbp),%edi
mov    %rax,%rdx
lea    0xe57(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2dcc(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <checkVersion+0x30f>
lea    0xf8c(%rip),%rdi
lea    0xe52(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x318(%rbp)
cmp    $0x0,%rax
jne    127f <checkVersion+0xff>
mov    0x2da7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x320(%rbp)
mov    0x2d90(%rip),%rax
mov    (%rax),%rdi
call   10a0 <strerror@plt>
mov    -0x320(%rbp),%edi
mov    %rax,%rcx
lea    0xe10(%rip),%rsi
lea    0xf3a(%rip),%rdx
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2d5b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <checkVersion+0x30f>
mov    -0x318(%rbp),%rdi
lea    -0x210(%rbp),%rdx
lea    -0x310(%rbp),%rcx
lea    0xdf7(%rip),%rsi
call   1050 <fscanf@plt>
cmp    $0x2,%eax
je     12e1 <checkVersion+0x161>
mov    0x2d30(%rip),%rax
mov    (%rax),%edi
lea    0xddf(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movb   $0x2d,-0x210(%rbp)
movb   $0x0,-0x20f(%rbp)
movb   $0x2d,-0x310(%rbp)
movb   $0x0,-0x30f(%rbp)
jmp    141c <checkVersion+0x29c>
lea    -0x210(%rbp),%rdi
lea    0xdd8(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jl     1338 <checkVersion+0x1b8>
lea    -0x210(%rbp),%rdi
lea    0xdbb(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1370 <checkVersion+0x1f0>
lea    -0x310(%rbp),%rdi
lea    0xda4(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jge    1370 <checkVersion+0x1f0>
mov    0x2c89(%rip),%rax
mov    (%rax),%edi
lea    -0x210(%rbp),%r8
lea    -0x310(%rbp),%r9
lea    0xd82(%rip),%rsi
lea    0xd6a(%rip),%rdx
lea    0xd69(%rip),%rcx
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    1417 <checkVersion+0x297>
lea    -0x210(%rbp),%rdi
lea    0xd49(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    13d4 <checkVersion+0x254>
lea    -0x310(%rbp),%rdi
lea    0xd32(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    13d4 <checkVersion+0x254>
mov    0x2c17(%rip),%rax
mov    (%rax),%edi
lea    0xd59(%rip),%rsi
lea    0xd06(%rip),%rdx
lea    0xd05(%rip),%rcx
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    1412 <checkVersion+0x292>
mov    0x2bed(%rip),%rax
mov    (%rax),%edi
lea    -0x210(%rbp),%r8
lea    -0x310(%rbp),%r9
lea    0xd4b(%rip),%rsi
lea    0xcce(%rip),%rdx
lea    0xccd(%rip),%rcx
lea    0xd7c(%rip),%rax
mov    %rax,(%rsp)
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    1417 <checkVersion+0x297>
jmp    141c <checkVersion+0x29c>
mov    -0x318(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xd6c(%rip),%rdi
call   1040 <system@plt>
cmp    $0xffffffff,%eax
jne    1483 <checkVersion+0x303>
mov    0x2b9c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x324(%rbp)
mov    0x2b85(%rip),%rax
mov    (%rax),%rdi
call   10a0 <strerror@plt>
mov    -0x324(%rbp),%edi
mov    %rax,%rdx
lea    0xbe2(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2b57(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <checkVersion+0x30f>
mov    0x2b36(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x330,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<checkVersion>:
push   %r14
push   %rbx
sub    $0x318,%rsp
mov    0x2e47(%rip),%r14
movq   $0x0,(%r14)
lea    0xe61(%rip),%rsi
lea    0xe75(%rip),%rdx
lea    0x210(%rsp),%rbx
mov    %rbx,%rdi
call   1090 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <system@plt>
cmp    $0xffffffff,%eax
je     1350 <checkVersion+0x1d0>
lea    0xfd3(%rip),%rdi
lea    0xe99(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     122e <checkVersion+0xae>
mov    %rax,%rbx
lea    0xea9(%rip),%rsi
lea    0x10(%rsp),%rdx
lea    0x110(%rsp),%rcx
mov    %rax,%rdi
call   1050 <fscanf@plt>
cmp    $0x2,%eax
jne    125e <checkVersion+0xde>
lea    0xebd(%rip),%rsi
lea    0x10(%rsp),%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
jns    128b <checkVersion+0x10b>
mov    0x2da8(%rip),%rax
mov    (%rax),%edi
lea    0xeaf(%rip),%rsi
jmp    130c <checkVersion+0x18c>
mov    0x2dab(%rip),%rax
mov    (%rax),%ebx
mov    (%r14),%rdi
call   10a0 <strerror@plt>
lea    0xe2a(%rip),%rsi
lea    0xf54(%rip),%rdx
mov    %ebx,%edi
mov    %rax,%rcx
xor    %eax,%eax
call   1070 <fprintf@plt>
jmp    1374 <checkVersion+0x1f4>
mov    0x2d7b(%rip),%rax
mov    (%rax),%edi
lea    0xe2a(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
movw   $0x2d,0x10(%rsp)
movw   $0x2d,0x110(%rsp)
jmp    132e <checkVersion+0x1ae>
lea    0xe35(%rip),%rsi
lea    0x10(%rsp),%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    12be <checkVersion+0x13e>
lea    0xe25(%rip),%rsi
lea    0x110(%rsp),%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
js     1219 <checkVersion+0x99>
lea    0xe02(%rip),%rsi
lea    0x10(%rsp),%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    12f1 <checkVersion+0x171>
lea    0xdf2(%rip),%rsi
lea    0x110(%rsp),%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1388 <checkVersion+0x208>
mov    0x2cd0(%rip),%rax
mov    (%rax),%edi
lea    0xe82(%rip),%rax
mov    %rax,(%rsp)
lea    0xe31(%rip),%rsi
lea    0xdb4(%rip),%rdx
lea    0xdb3(%rip),%rcx
lea    0x10(%rsp),%r8
lea    0x110(%rsp),%r9
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    %rbx,%rdi
call   1030 <fclose@plt>
lea    0xe5e(%rip),%rdi
call   1040 <system@plt>
cmp    $0xffffffff,%eax
je     1350 <checkVersion+0x1d0>
mov    0x2c72(%rip),%rax
jmp    137b <checkVersion+0x1fb>
mov    0x2c89(%rip),%rax
mov    (%rax),%ebx
mov    (%r14),%rdi
call   10a0 <strerror@plt>
lea    0xce5(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x2c55(%rip),%rax
mov    (%rax),%eax
add    $0x318,%rsp
pop    %rbx
pop    %r14
ret
mov    0x2c39(%rip),%rax
mov    (%rax),%edi
lea    0xd7b(%rip),%rsi
lea    0xd28(%rip),%rdx
lea    0xd27(%rip),%rcx
xor    %eax,%eax
call   1070 <fprintf@plt>
jmp    132e <checkVersion+0x1ae>

LLVM IR (-O0):
@errno = global i64 0
@.str = [27 x i8] c"wget %s -O /tmp/VERSION -q\00"
@.str.1 = [50 x i8] c"https://raw.github.com/ynad/pw-gen/master/VERSION\00"
@stderr = global i32 0
@.str.2 = [33 x i8] c"Error executing system call: %s\0A\00"
@EXIT_FAILURE = global i32 0
@.str.3 = [13 x i8] c"/tmp/VERSION\00"
@.str.4 = [2 x i8] c"r\00"
@.str.5 = [34 x i8] c"Error reading from file \22%s\22: %s\0A\00"
@.str.6 = [6 x i8] c"%s %s\00"
@.str.7 = [47 x i8] c"No data collected or no internet connection.\0A\0A\00"
@.str.8 = [6 x i8] c"1.2.8\00"
@.str.9 = [11 x i8] c"2014-10-02\00"
@stdout = global i32 0
@.str.10 = [59 x i8] c"Newer version is in use (local: %s [%s], repo: %s [%s]).\0A\0A\00"
@.str.11 = [42 x i8] c"Up-to-date version is in use (%s [%s]).\0A\0A\00"
@.str.12 = [70 x i8] c"Version in use: %s (%s), available: %s (%s)\0ACheck \22%s\22 for updates!\0A\0A\00"
@.str.13 = [24 x i8] c"github.com/ynad/pw-gen/\00"
@.str.14 = [19 x i8] c"rm -f /tmp/VERSION\00"
@EXIT_SUCCESS = global i32 0
define i32 @checkVersion() {
%1 = alloca i32
%2 = alloca [256 x i8]
%3 = alloca [256 x i8]
%4 = alloca [256 x i8]
%5 = alloca i32*
store i64 0, i64* @errno
%6 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%7 = call i32 @sprintf(i8* %6, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0))
%8 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%9 = call i32 @system(i8* %8)
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %17
11: ; preds = %0
%12 = load i32, i32* @stderr
%13 = load i64, i64* @errno
%14 = call i8* @strerror(i64 %13)
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* %14)
%16 = load i32, i32* @EXIT_FAILURE
store i32 %16, i32* %1
br label %87
17: ; preds = %0
%18 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 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* %18, i32** %5
%19 = icmp eq i32* %18, null
br i1 %19, label %20, label %26
20: ; preds = %17
%21 = load i32, i32* @stderr
%22 = load i64, i64* @errno
%23 = call i8* @strerror(i64 %22)
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* %23)
%25 = load i32, i32* @EXIT_FAILURE
store i32 %25, i32* %1
br label %87
26: ; preds = %17
%27 = load i32*, i32** %5
%28 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%29 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%30 = call i32 @fscanf(i32* %27, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %28, i8* %29)
%31 = icmp ne i32 %30, 2
br i1 %31, label %32, label %39
32: ; preds = %26
%33 = load i32, i32* @stderr
%34 = call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
%35 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
store i8 45, i8* %35
%36 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 1
store i8 0, i8* %36
%37 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
store i8 45, i8* %37
%38 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 1
store i8 0, i8* %38
br label %74
39: ; preds = %26
%40 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%41 = call i64 @strcmp(i8* %40, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%42 = icmp slt i64 %41, 0
br i1 %42, label %51, label %43
43: ; preds = %39
%44 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %56
47: ; preds = %43
%48 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%49 = call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%50 = icmp slt i64 %49, 0
br i1 %50, label %51, label %56
51: ; preds = %47, %39
%52 = load i32, i32* @stdout
%53 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%54 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%55 = call i32 (i32, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* %53, i8* %54)
br label %73
56: ; preds = %47, %43
%57 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %67
60: ; preds = %56
%61 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%62 = call i64 @strcmp(i8* %61, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %67
64: ; preds = %60
%65 = load i32, i32* @stdout
%66 = call i32 (i32, i8*, ...) @fprintf(i32 %65, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
br label %72
67: ; preds = %60, %56
%68 = load i32, i32* @stdout
%69 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%70 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%71 = call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* %69, i8* %70, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0))
br label %72
72: ; preds = %67, %64
br label %73
73: ; preds = %72, %51
br label %74
74: ; preds = %73, %32
%75 = load i32*, i32** %5
%76 = call i32 @fclose(i32* %75)
%77 = call i32 @system(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0))
%78 = icmp eq i32 %77, -1
br i1 %78, label %79, label %85
79: ; preds = %74
%80 = load i32, i32* @stderr
%81 = load i64, i64* @errno
%82 = call i8* @strerror(i64 %81)
%83 = call i32 (i32, i8*, ...) @fprintf(i32 %80, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* %82)
%84 = load i32, i32* @EXIT_FAILURE
store i32 %84, i32* %1
br label %87
85: ; preds = %74
%86 = load i32, i32* @EXIT_SUCCESS
store i32 %86, i32* %1
br label %87
87: ; preds = %85, %79, %20, %11
%88 = load i32, i32* %1
ret i32 %88
}

LLVM IR (-O2):
@errno = global i64 0
@.str = [27 x i8] c"wget %s -O /tmp/VERSION -q\00"
@.str.1 = [50 x i8] c"https://raw.github.com/ynad/pw-gen/master/VERSION\00"
@stderr = global i32 0
@.str.2 = [33 x i8] c"Error executing system call: %s\0A\00"
@EXIT_FAILURE = global i32 0
@.str.3 = [13 x i8] c"/tmp/VERSION\00"
@.str.4 = [2 x i8] c"r\00"
@.str.5 = [34 x i8] c"Error reading from file \22%s\22: %s\0A\00"
@.str.6 = [6 x i8] c"%s %s\00"
@.str.7 = [47 x i8] c"No data collected or no internet connection.\0A\0A\00"
@.str.8 = [6 x i8] c"1.2.8\00"
@.str.9 = [11 x i8] c"2014-10-02\00"
@stdout = global i32 0
@.str.10 = [59 x i8] c"Newer version is in use (local: %s [%s], repo: %s [%s]).\0A\0A\00"
@.str.11 = [42 x i8] c"Up-to-date version is in use (%s [%s]).\0A\0A\00"
@.str.12 = [70 x i8] c"Version in use: %s (%s), available: %s (%s)\0ACheck \22%s\22 for updates!\0A\0A\00"
@.str.13 = [24 x i8] c"github.com/ynad/pw-gen/\00"
@.str.14 = [19 x i8] c"rm -f /tmp/VERSION\00"
@EXIT_SUCCESS = global i32 0
define i32 @checkVersion() {
%1 = alloca [256 x i8]
%2 = alloca [256 x i8]
%3 = alloca [256 x i8]
%4 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%5 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
store i64 0, i64* @errno
%7 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @system(i8* %4)
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %15
10: ; preds = %0
%11 = load i32, i32* @stderr
%12 = load i64, i64* @errno
%13 = tail call i8* @strerror(i64 %12)
%14 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* %13)
br label %64
15: ; preds = %0
%16 = tail call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%17 = icmp eq i32* %16, null
br i1 %17, label %18, label %23
18: ; preds = %15
%19 = load i32, i32* @stderr
%20 = load i64, i64* @errno
%21 = tail call i8* @strerror(i64 %20)
%22 = tail call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* %21)
br label %64
23: ; preds = %15
%24 = call i32 @fscanf(i32* %16, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %5, i8* %6)
%25 = icmp eq i32 %24, 2
br i1 %25, label %31, label %26
26: ; preds = %23
%27 = load i32, i32* @stderr
%28 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
store i8 45, i8* %5
%29 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 1
store i8 0, i8* %29
store i8 45, i8* %6
%30 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 1
store i8 0, i8* %30
br label %55
31: ; preds = %23
%32 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%33 = icmp slt i64 %32, 0
br i1 %33, label %40, label %34
34: ; preds = %31
%35 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %43
37: ; preds = %34
%38 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%39 = icmp slt i64 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %37, %31
%41 = load i32, i32* @stdout
%42 = call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* %5, i8* %6)
br label %55
43: ; preds = %37, %34
%44 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %52
46: ; preds = %43
%47 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %46
%50 = load i32, i32* @stdout
%51 = call i32 (i32, i8*, ...) @fprintf(i32 %50, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
br label %55
52: ; preds = %46, %43
%53 = load i32, i32* @stdout
%54 = call i32 (i32, i8*, ...) @fprintf(i32 %53, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* %5, i8* %6, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0))
br label %55
55: ; preds = %40, %52, %49, %26
%56 = call i32 @fclose(i32* %16)
%57 = call i32 @system(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0))
%58 = icmp eq i32 %57, -1
br i1 %58, label %59, label %64
59: ; preds = %55
%60 = load i32, i32* @stderr
%61 = load i64, i64* @errno
%62 = call i8* @strerror(i64 %61)
%63 = call i32 (i32, i8*, ...) @fprintf(i32 %60, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* %62)
br label %64
64: ; preds = %55, %59, %18, %10
%65 = phi i32* [ @EXIT_FAILURE, %10 ], [ @EXIT_FAILURE, %18 ], [ @EXIT_FAILURE, %59 ], [ @EXIT_SUCCESS, %55 ]
%66 = load i32, i32* %65
ret i32 %66
}