#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 pid_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EOF;
int /*<<< orphan*/ execvp(char *, char **);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
scalar_t__ ferror(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int fork();
int fscanf(int /*<<< orphan*/ *, char *, ...);
int getc(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ rewind(int /*<<< orphan*/ *);
int /*<<< orphan*/ sleep(float);
char *strtok(char *, char *);
int wait(int /*<<< orphan*/ *);
int main(int argc, char *argv[]) {
  if (argc != 2) {
    printf("Wrong number of incoming arguments.\n");
    exit(-1);
  }
  FILE *file;
  float time;
  int k;
  char sep[5] = " ";
  char *istr[100];
  int i = 0;
  int t = 0;
  char *filename = argv[1];
  char prog[4096];
  pid_t pid;
  file = fopen(filename, "r");
  if (file == NULL) {
    printf("Opening file failure: check if it exists.\n");
    exit(-1);
  }
  if (getc(file) == EOF) {
    printf("File is empty.\n");
    exit(-1);
  }
  rewind(file);
  while (!feof(file)) {
    i++;
    while ((k = fscanf(file, "%f %[^\n]", &time, prog)) == 2) {
      i++;
      if (time < 0) {
        printf("Wrong time format with %s.\n", prog);
        continue;
      }
      printf("%s will be executed in %.3f sec.\n", prog, time);
      pid = fork();
      if (pid == -1) {
        printf("Fork failure.\n");
      } else if (pid == 0) {
        sleep(time);
        t = 0;
        istr[0] = strtok(prog, sep);
        while (istr[t] != 0) {
          istr[t + 1] = strtok(NULL, sep);
          t++;
        }
        execvp(istr[0], istr);
        printf("Can't execute %s, check if it exists.\n", prog);
        exit(-1);
      }
    }
    if (ferror(file)) {
      printf("Input/output error.\n");
      i++;
    } else if (k != EOF) {
      printf("Wrong data in line №%d\n", i);
      fscanf(file, "%*[^\n]]");
    }
  }
  while (wait(NULL) != -1) {
  };
  fclose(file);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1370,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     121b <main+0x3b>
lea    0xdf6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   10c0 <exit@plt>
mov    0xef5(%rip),%eax
mov    %eax,-0x25(%rbp)
mov    0xef0(%rip),%al
mov    %al,-0x21(%rbp)
movl   $0x0,-0x354(%rbp)
movl   $0x0,-0x358(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x360(%rbp)
mov    -0x360(%rbp),%rdi
lea    0xdc7(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    128a <main+0xaa>
lea    0xdae(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   10c0 <exit@plt>
mov    -0x18(%rbp),%rdi
call   10f0 <getc@plt>
mov    0x2d4e(%rip),%rcx
cmp    (%rcx),%eax
jne    12ba <main+0xda>
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   10c0 <exit@plt>
mov    -0x18(%rbp),%rdi
call   1060 <rewind@plt>
mov    -0x18(%rbp),%rdi
call   1080 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    12e1 <main+0x101>
jmp    14d2 <main+0x2f2>
mov    -0x354(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x354(%rbp)
mov    -0x18(%rbp),%rdi
lea    -0x1360(%rbp),%rcx
lea    0xd60(%rip),%rsi
lea    -0x1c(%rbp),%rdx
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    %eax,-0x20(%rbp)
cmp    $0x2,%eax
jne    145b <main+0x27b>
mov    -0x354(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x354(%rbp)
xorps  %xmm0,%xmm0
ucomiss -0x1c(%rbp),%xmm0
jbe    134f <main+0x16f>
lea    -0x1360(%rbp),%rsi
lea    0xd28(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    12f0 <main+0x110>
lea    -0x1360(%rbp),%rsi
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd21(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1100 <fork@plt>
mov    %eax,-0x1364(%rbp)
cmpl   $0xffffffff,-0x1364(%rbp)
jne    139a <main+0x1ba>
lea    0xd1b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1456 <main+0x276>
cmpl   $0x0,-0x1364(%rbp)
jne    1451 <main+0x271>
movss  -0x1c(%rbp),%xmm0
call   10d0 <sleep@plt>
movl   $0x0,-0x358(%rbp)
lea    -0x1360(%rbp),%rdi
lea    -0x25(%rbp),%rsi
call   10a0 <strtok@plt>
mov    %rax,-0x350(%rbp)
movslq -0x358(%rbp),%rax
cmpq   $0x0,-0x350(%rbp,%rax,8)
je     141f <main+0x23f>
lea    -0x25(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edi
call   10a0 <strtok@plt>
mov    %rax,%rcx
mov    -0x358(%rbp),%eax
add    $0x1,%eax
cltq
mov    %rcx,-0x350(%rbp,%rax,8)
ff
mov    -0x358(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x358(%rbp)
jmp    13d2 <main+0x1f2>
mov    -0x350(%rbp),%rdi
lea    -0x350(%rbp),%rsi
call   10b0 <execvp@plt>
lea    -0x1360(%rbp),%rsi
lea    0xc78(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   10c0 <exit@plt>
jmp    1456 <main+0x276>
jmp    12f0 <main+0x110>
mov    -0x18(%rbp),%rdi
call   1030 <ferror@plt>
cmp    $0x0,%rax
je     1490 <main+0x2b0>
lea    0xc6a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x354(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x354(%rbp)
jmp    14cd <main+0x2ed>
mov    -0x20(%rbp),%eax
mov    0x2b4e(%rip),%rcx
cmp    (%rcx),%eax
je     14c8 <main+0x2e8>
mov    -0x354(%rbp),%esi
lea    0xc45(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
lea    0xc4d(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
jmp    14cd <main+0x2ed>
jmp    12c3 <main+0xe3>
jmp    14d7 <main+0x2f7>
xor    %eax,%eax
mov    %eax,%edi
call   10e0 <wait@plt>
cmp    $0xffffffff,%eax
je     14ee <main+0x30e>
jmp    14d7 <main+0x2f7>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x1370,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1338,%rsp
cmp    $0x2,%edi
jne    1456 <main+0x266>
movb   $0x0,0x8(%rsp)
movl   $0x20,0x4(%rsp)
mov    0x8(%rsi),%rdi
lea    0xde7(%rip),%rsi
call   10a0 <fopen@plt>
test   %rax,%rax
je     145f <main+0x26f>
mov    %rax,%r12
mov    %rax,%rdi
call   1100 <getc@plt>
mov    0x2da6(%rip),%rcx
cmp    (%rcx),%eax
je     1468 <main+0x278>
mov    %r12,%rdi
call   1070 <rewind@plt>
mov    %r12,%rdi
call   1090 <feof@plt>
test   %eax,%eax
je     1288 <main+0x98>
xchg   %ax,%ax
xor    %edi,%edi
call   10f0 <wait@plt>
cmp    $0xffffffff,%eax
jne    1260 <main+0x70>
mov    %r12,%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
add    $0x1338,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd7c(%rip),%r14
lea    0xc(%rsp),%r15
lea    0x330(%rsp),%rbx
xor    %r13d,%r13d
jmp    12f0 <main+0x100>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %eax,%ebp
lea    0x1(%r13),%eax
mov    %eax,(%rsp)
mov    %r12,%rdi
call   1040 <ferror@plt>
test   %rax,%rax
je     1390 <main+0x1a0>
lea    0xdca(%rip),%rdi
call   1030 <puts@plt>
add    $0x2,%r13d
mov    %r13d,%ebp
mov    %r12,%rdi
call   1090 <feof@plt>
mov    %ebp,%r13d
test   %eax,%eax
jne    1260 <main+0x70>
mov    %r12,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1080 <fscanf@plt>
jmp    1338 <main+0x148>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0xcfd(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1080 <fscanf@plt>
add    $0x1,%r13d
cmp    $0x2,%eax
jne    12b0 <main+0xc0>
movss  0xc(%rsp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
ja     1310 <main+0x120>
cvtss2sd %xmm0,%xmm0
lea    0xcd6(%rip),%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1060 <printf@plt>
xor    %eax,%eax
call   1110 <fork@plt>
cmp    $0xffffffff,%eax
je     1380 <main+0x190>
test   %eax,%eax
jne    1321 <main+0x131>
jmp    13cc <main+0x1dc>
cs nopw 0x0(%rax,%rax,1)
lea    0xd28(%rip),%rdi
call   1030 <puts@plt>
jmp    1321 <main+0x131>
xchg   %ax,%ax
mov    0x2c51(%rip),%rax
cmp    (%rax),%ebp
jne    13a3 <main+0x1b3>
mov    (%rsp),%ebp
jmp    12dd <main+0xed>
lea    0xccf(%rip),%rdi
mov    (%rsp),%ebp
mov    %ebp,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,%rdi
lea    0xcd3(%rip),%rsi
xor    %eax,%eax
call   1080 <fscanf@plt>
jmp    12dd <main+0xed>
movss  0xc(%rsp),%xmm0
call   10e0 <sleep@plt>
lea    0x330(%rsp),%rdi
lea    0x4(%rsp),%rsi
call   10b0 <strtok@plt>
mov    %rax,0x10(%rsp)
test   %rax,%rax
jne    13f7 <main+0x207>
xor    %edi,%edi
jmp    142c <main+0x23c>
lea    0x18(%rsp),%rbp
lea    0x4(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %edi,%edi
mov    %rbx,%rsi
call   10b0 <strtok@plt>
mov    %rax,0x0(%rbp)
add    $0x8,%rbp
test   %rax,%rax
jne    1410 <main+0x220>
mov    0x10(%rsp),%rdi
lea    0x10(%rsp),%rsi
call   10c0 <execvp@plt>
lea    0xc15(%rip),%rdi
lea    0x330(%rsp),%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xffffffff,%edi
call   10d0 <exit@plt>
lea    0xc99(%rip),%rdi
jmp    146f <main+0x27f>
lea    0xc66(%rip),%rdi
jmp    146f <main+0x27f>
lea    0xc4e(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
@.str = [37 x i8] c"Wrong number of incoming arguments.\0A\00"
@__const.main.sep = [5 x i8] c" \00\00\00\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [43 x i8] c"Opening file failure: check if it exists.\0A\00"
@EOF = global i32 0
@.str.3 = [16 x i8] c"File is empty.\0A\00"
@.str.4 = [9 x i8] c"%f %[^\0A]\00"
@.str.5 = [28 x i8] c"Wrong time format with %s.\0A\00"
@.str.6 = [34 x i8] c"%s will be executed in %.3f sec.\0A\00"
@.str.7 = [15 x i8] c"Fork failure.\0A\00"
@.str.8 = [39 x i8] c"Can't execute %s, check if it exists.\0A\00"
@.str.9 = [21 x i8] c"Input/output error.\0A\00"
@.str.10 = [26 x i8] c"Wrong data in line \E2\84\96%d\0A\00"
@.str.11 = [8 x i8] c"%*[^\0A]]\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca float
%8 = alloca i32
%9 = alloca [5 x i8]
%10 = alloca [100 x i8*]
%11 = alloca i32
%12 = alloca i32
%13 = alloca i8*
%14 = alloca [4096 x i8]
%15 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%16 = load i32, i32* %4
%17 = icmp ne i32 %16, 2
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%20 = call i32 @exit(i32 -1)
unreachable
21: ; preds = %2
%22 = bitcast [5 x i8]* %9 to i8*
store i32 0, i32* %11
store i32 0, i32* %12
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 1
%25 = load i8*, i8** %24
store i8* %25, i8** %13
%26 = load i8*, i8** %13
%27 = call i32* @fopen(i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %27, i32** %6
%28 = load i32*, i32** %6
%29 = icmp eq i32* %28, null
br i1 %29, label %30, label %33
30: ; preds = %21
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
%32 = call i32 @exit(i32 -1)
unreachable
33: ; preds = %21
%34 = load i32*, i32** %6
%35 = call i32 @getc(i32* %34)
%36 = load i32, i32* @EOF
%37 = icmp eq i32 %35, %36
br i1 %37, label %38, label %41
38: ; preds = %33
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%40 = call i32 @exit(i32 -1)
unreachable
41: ; preds = %33
%42 = load i32*, i32** %6
%43 = call i32 @rewind(i32* %42)
br label %44
44: ; preds = %128, %41
%45 = load i32*, i32** %6
%46 = call i32 @feof(i32* %45)
%47 = icmp ne i32 %46, 0
%48 = xor i1 %47, true
br i1 %48, label %49, label %129
49: ; preds = %44
%50 = load i32, i32* %11
%51 = add nsw i32 %50, 1
store i32 %51, i32* %11
br label %52
52: ; preds = %109, %62, %49
%53 = load i32*, i32** %6
%54 = getelementptr inbounds [4096 x i8], [4096 x i8]* %14, i64 0, i64 0
%55 = call i32 (i32*, i8*, ...) @fscanf(i32* %53, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), float* %7, i8* %54)
store i32 %55, i32* %8
%56 = icmp eq i32 %55, 2
br i1 %56, label %57, label %110
57: ; preds = %52
%58 = load i32, i32* %11
%59 = add nsw i32 %58, 1
store i32 %59, i32* %11
%60 = load float, float* %7
%61 = fcmp olt float %60, 0.000000e+00
br i1 %61, label %62, label %65
62: ; preds = %57
%63 = getelementptr inbounds [4096 x i8], [4096 x i8]* %14, i64 0, i64 0
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i8* %63)
br label %52
65: ; preds = %57
%66 = getelementptr inbounds [4096 x i8], [4096 x i8]* %14, i64 0, i64 0
%67 = load float, float* %7
%68 = fpext float %67 to double
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i8* %66, double %68)
%70 = call i32 (...) @fork()
store i32 %70, i32* %15
%71 = load i32, i32* %15
%72 = icmp eq i32 %71, -1
br i1 %72, label %73, label %75
73: ; preds = %65
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
br label %109
75: ; preds = %65
%76 = load i32, i32* %15
%77 = icmp eq i32 %76, 0
br i1 %77, label %78, label %108
78: ; preds = %75
%79 = load float, float* %7
%80 = call i32 @sleep(float %79)
store i32 0, i32* %12
%81 = getelementptr inbounds [4096 x i8], [4096 x i8]* %14, i64 0, i64 0
%82 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%83 = call i8* @strtok(i8* %81, i8* %82)
%84 = getelementptr inbounds [100 x i8*], [100 x i8*]* %10, i64 0, i64 0
store i8* %83, i8** %84
br label %85
85: ; preds = %91, %78
%86 = load i32, i32* %12
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [100 x i8*], [100 x i8*]* %10, i64 0, i64 %87
%89 = load i8*, i8** %88
%90 = icmp ne i8* %89, null
br i1 %90, label %91, label %100
91: ; preds = %85
%92 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%93 = call i8* @strtok(i8* null, i8* %92)
%94 = load i32, i32* %12
%95 = add nsw i32 %94, 1
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [100 x i8*], [100 x i8*]* %10, i64 0, i64 %96
store i8* %93, i8** %97
%98 = load i32, i32* %12
%99 = add nsw i32 %98, 1
store i32 %99, i32* %12
br label %85
100: ; preds = %85
%101 = getelementptr inbounds [100 x i8*], [100 x i8*]* %10, i64 0, i64 0
%102 = load i8*, i8** %101
%103 = getelementptr inbounds [100 x i8*], [100 x i8*]* %10, i64 0, i64 0
%104 = call i32 @execvp(i8* %102, i8** %103)
%105 = getelementptr inbounds [4096 x i8], [4096 x i8]* %14, i64 0, i64 0
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), i8* %105)
%107 = call i32 @exit(i32 -1)
unreachable
108: ; preds = %75
br label %109
109: ; preds = %108, %73
br label %52
110: ; preds = %52
%111 = load i32*, i32** %6
%112 = call i64 @ferror(i32* %111)
%113 = icmp ne i64 %112, 0
br i1 %113, label %114, label %118
114: ; preds = %110
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
%116 = load i32, i32* %11
%117 = add nsw i32 %116, 1
store i32 %117, i32* %11
br label %128
118: ; preds = %110
%119 = load i32, i32* %8
%120 = load i32, i32* @EOF
%121 = icmp ne i32 %119, %120
br i1 %121, label %122, label %127
122: ; preds = %118
%123 = load i32, i32* %11
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i32 %123)
%125 = load i32*, i32** %6
%126 = call i32 (i32*, i8*, ...) @fscanf(i32* %125, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %127
127: ; preds = %122, %118
br label %128
128: ; preds = %127, %114
br label %44
129: ; preds = %44
br label %130
130: ; preds = %133, %129
%131 = call i32 @wait(i32* null)
%132 = icmp ne i32 %131, -1
br i1 %132, label %133, label %134
133: ; preds = %130
br label %130
134: ; preds = %130
%135 = load i32*, i32** %6
%136 = call i32 @fclose(i32* %135)
ret i32 0
}

LLVM IR (-O2):
@__const.main.sep = [5 x i8] c" \00\00\00\00"
@.str.1 = [2 x i8] c"r\00"
@EOF = global i32 0
@.str.4 = [9 x i8] c"%f %[^\0A]\00"
@.str.5 = [28 x i8] c"Wrong time format with %s.\0A\00"
@.str.6 = [34 x i8] c"%s will be executed in %.3f sec.\0A\00"
@.str.8 = [39 x i8] c"Can't execute %s, check if it exists.\0A\00"
@.str.10 = [26 x i8] c"Wrong data in line \E2\84\96%d\0A\00"
@.str.11 = [8 x i8] c"%*[^\0A]]\00"
@str = [20 x i8] c"Input/output error.\00"
@str.12 = [14 x i8] c"Fork failure.\00"
@str.13 = [15 x i8] c"File is empty.\00"
@str.14 = [42 x i8] c"Opening file failure: check if it exists.\00"
@str.15 = [36 x i8] c"Wrong number of incoming arguments.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca float
%4 = alloca [5 x i8]
%5 = alloca [100 x i8*]
%6 = alloca [4096 x i8]
%7 = icmp eq i32 %0, 2
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.15, i64 0, i64 0))
%10 = tail call i32 @exit(i32 -1)
unreachable
11: ; preds = %2
%12 = bitcast float* %3 to i8*
%13 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%14 = bitcast [100 x i8*]* %5 to i8*
%15 = getelementptr inbounds i8*, i8** %1, i64 1
%16 = load i8*, i8** %15
%17 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%18 = tail call i32* @fopen(i8* %16, 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 %20, label %23
20: ; preds = %11
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.14, i64 0, i64 0))
%22 = tail call i32 @exit(i32 -1)
unreachable
23: ; preds = %11
%24 = tail call i32 @getc(i32* %18)
%25 = load i32, i32* @EOF
%26 = icmp eq i32 %24, %25
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.13, i64 0, i64 0))
%29 = tail call i32 @exit(i32 -1)
unreachable
30: ; preds = %23
%31 = tail call i32 @rewind(i32* %18)
%32 = call i32 @feof(i32* %18)
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %93
34: ; preds = %30, %89
%35 = phi i32 [ %90, %89 ], [ 0, %30 ]
%36 = add nsw i32 %35, 1
%37 = call i32 (i32*, i8*, ...) @fscanf(i32* %18, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), float* %3, i8* %17)
%38 = icmp eq i32 %37, 2
br i1 %38, label %39, label %74
39: ; preds = %34, %45
%40 = phi i32 [ %46, %45 ], [ %36, %34 ]
%41 = load float, float* %3
%42 = fcmp olt float %41, 0.000000e+00
br i1 %42, label %43, label %49
43: ; preds = %39
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i8* %17)
br label %45
45: ; preds = %53, %49, %43
%46 = add nsw i32 %40, 1
%47 = call i32 (i32*, i8*, ...) @fscanf(i32* %18, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), float* %3, i8* %17)
%48 = icmp eq i32 %47, 2
br i1 %48, label %39, label %74
49: ; preds = %39
%50 = fpext float %41 to double
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i8* %17, double %50)
%52 = call i32 (...) @fork()
switch i32 %52, label %45 [
i32 -1, label %53
i32 0, label %55
]
53: ; preds = %49
%54 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.12, i64 0, i64 0))
br label %45
55: ; preds = %49
%56 = load float, float* %3
%57 = call i32 @sleep(float %56)
%58 = call i8* @strtok(i8* %17, i8* %13)
%59 = getelementptr inbounds [100 x i8*], [100 x i8*]* %5, i64 0, i64 0
store i8* %58, i8** %59
%60 = icmp eq i8* %58, null
br i1 %60, label %69, label %61
61: ; preds = %55, %61
%62 = phi i64 [ %64, %61 ], [ 0, %55 ]
%63 = call i8* @strtok(i8* null, i8* %13)
%64 = add nuw nsw i64 %62, 1
%65 = getelementptr inbounds [100 x i8*], [100 x i8*]* %5, i64 0, i64 %64
store i8* %63, i8** %65
%66 = icmp eq i8* %63, null
br i1 %66, label %67, label %61
67: ; preds = %61
%68 = load i8*, i8** %59
br label %69
69: ; preds = %67, %55
%70 = phi i8* [ %68, %67 ], [ null, %55 ]
%71 = call i32 @execvp(i8* %70, i8** %59)
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), i8* %17)
%73 = call i32 @exit(i32 -1)
unreachable
74: ; preds = %45, %34
%75 = phi i32 [ %35, %34 ], [ %40, %45 ]
%76 = phi i32 [ %36, %34 ], [ %46, %45 ]
%77 = phi i32 [ %37, %34 ], [ %47, %45 ]
%78 = call i64 @ferror(i32* %18)
%79 = icmp eq i64 %78, 0
br i1 %79, label %83, label %80
80: ; preds = %74
%81 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%82 = add nsw i32 %75, 2
br label %89
83: ; preds = %74
%84 = load i32, i32* @EOF
%85 = icmp eq i32 %77, %84
br i1 %85, label %89, label %86
86: ; preds = %83
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i32 %76)
%88 = call i32 (i32*, i8*, ...) @fscanf(i32* %18, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %89
89: ; preds = %83, %86, %80
%90 = phi i32 [ %82, %80 ], [ %76, %86 ], [ %76, %83 ]
%91 = call i32 @feof(i32* %18)
%92 = icmp eq i32 %91, 0
br i1 %92, label %34, label %93
93: ; preds = %89, %30
br label %94
94: ; preds = %93, %94
%95 = call i32 @wait(i32* null)
%96 = icmp eq i32 %95, -1
br i1 %96, label %97, label %94
97: ; preds = %94
%98 = call i32 @fclose(i32* %18)
ret i32 0
}