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

/* Variables and functions */
int WEXITSTATUS(int);
scalar_t__ WIFEXITED(int);
scalar_t__ WIFSIGNALED(int);
int WTERMSIG(int);
int duration(struct timeval *, struct timeval *);
int errno;
int execlp(char *, char *, char *, char *, char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int fork();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int waitpid(int, int *, int /*<<< orphan*/);
int main(int argc, char **argv) {
  struct timeval startTime;
  gettimeofday(&startTime, 0);
  pid_t fils = fork();
  if (-1 == fils) {
    fprintf(stderr, "fork failed !\n");
    exit(1);
  }
  if (fils) {
    int status = 0;
    pid_t ret = waitpid(fils, &status, 0);
    struct timeval endTime;
    gettimeofday(&endTime, 0);
    if (ret < 0) {
      printf("waitpid FAILURE\n");
      exit(3);
    }
    if (ret == fils) {
      if (WIFEXITED(status)) {
        printf("SUCCESS Exit Code %d ,Duration %ld\n", WEXITSTATUS(status),
               duration(&startTime, &endTime));
        if (WEXITSTATUS(status)) {
          FILE *f = fopen("/var/log/FAILURE.TXT", "w+");
          fprintf(f, "Failure PID %d, exit %d, duration %ld\n", fils,
                  WEXITSTATUS(status), duration(&startTime, &endTime));
          fclose(f);
        } else {
          FILE *f = fopen("/var/log/SUCCESS.TXT", "w+");
          fprintf(f, "%ld\n", duration(&startTime, &endTime));
          fclose(f);
        }
        exit(WEXITSTATUS(status));
      }
      if (WIFSIGNALED(status)) {
        printf("SIGNALED : %d \n", WTERMSIG(status));
        exit(5);
      }
    } else {
      printf("waitpid FAILURE\n");
      exit(4);
    }
    exit(ret);
  } else {
    int ret = execlp("ccncatchunks2", "ccncatchunks2", "-d", "-a",
                     "ccnx:/DATAFILE", NULL);
    printf("exec return %d errno %d\n", ret, errno);
    exit(2);
  }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x18(%rbp),%rdi
xor    %esi,%esi
call   1060 <gettimeofday@plt>
mov    $0x0,%al
call   1100 <fork@plt>
mov    %eax,-0x1c(%rbp)
mov    $0xffffffff,%eax
cmp    -0x1c(%rbp),%eax
jne    123b <main+0x5b>
mov    0x2dc0(%rip),%rax
movslq (%rax),%rdi
lea    0xdd6(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
cmpl   $0x0,-0x1c(%rbp)
je     13fb <main+0x21b>
movl   $0x0,-0x20(%rbp)
mov    -0x1c(%rbp),%edi
lea    -0x20(%rbp),%rsi
xor    %edx,%edx
call   10b0 <waitpid@plt>
mov    %eax,-0x24(%rbp)
lea    -0x28(%rbp),%rdi
xor    %esi,%esi
call   1060 <gettimeofday@plt>
cmpl   $0x0,-0x24(%rbp)
jge    128a <main+0xaa>
lea    0xd96(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x3,%edi
call   10e0 <exit@plt>
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jne    13db <main+0x1fb>
mov    -0x20(%rbp),%edi
call   10d0 <WIFEXITED@plt>
cmp    $0x0,%rax
je     13a2 <main+0x1c2>
mov    -0x20(%rbp),%edi
call   10a0 <WEXITSTATUS@plt>
mov    %eax,-0x40(%rbp)
lea    -0x18(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1040 <duration@plt>
mov    -0x40(%rbp),%esi
mov    %eax,%edx
lea    0xd54(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%edi
call   10a0 <WEXITSTATUS@plt>
cmp    $0x0,%eax
je     134a <main+0x16a>
lea    0xd59(%rip),%rdi
lea    0xd67(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x20(%rbp),%edi
call   10a0 <WEXITSTATUS@plt>
mov    %eax,-0x44(%rbp)
lea    -0x18(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1040 <duration@plt>
mov    -0x50(%rbp),%rdi
mov    -0x48(%rbp),%edx
mov    -0x44(%rbp),%ecx
mov    %eax,%r8d
lea    0xd27(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x30(%rbp),%rdi
call   1030 <fclose@plt>
jmp    1393 <main+0x1b3>
lea    0xd32(%rip),%rdi
lea    0xd01(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x58(%rbp)
lea    -0x18(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1040 <duration@plt>
mov    -0x58(%rbp),%rdi
mov    %eax,%edx
lea    0xcbc(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x38(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x20(%rbp),%edi
call   10a0 <WEXITSTATUS@plt>
mov    %eax,%edi
call   10e0 <exit@plt>
mov    -0x20(%rbp),%edi
call   1070 <WIFSIGNALED@plt>
cmp    $0x0,%rax
je     13d6 <main+0x1f6>
mov    -0x20(%rbp),%edi
call   1090 <WTERMSIG@plt>
mov    %eax,%esi
lea    0xcd3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x5,%edi
call   10e0 <exit@plt>
jmp    13f3 <main+0x213>
lea    0xc2d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x4,%edi
call   10e0 <exit@plt>
mov    -0x24(%rbp),%edi
call   10e0 <exit@plt>
lea    0xca6(%rip),%rsi
lea    0xcad(%rip),%rdx
lea    0xca9(%rip),%rcx
lea    0xca5(%rip),%r8
xor    %eax,%eax
mov    %eax,%r9d
mov    %rsi,%rdi
call   10f0 <execlp@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%esi
mov    0x2ba7(%rip),%rax
mov    (%rax),%edx
lea    0xc91(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x2,%edi
call   10e0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x20,%rsp
lea    0x18(%rsp),%rdi
xor    %esi,%esi
call   1070 <gettimeofday@plt>
xor    %eax,%eax
call   1120 <fork@plt>
test   %eax,%eax
je     1250 <main+0x50>
mov    %eax,%ebx
cmp    $0xffffffff,%eax
jne    129a <main+0x9a>
mov    0x2db3(%rip),%rax
movslq (%rax),%rcx
lea    0xdc9(%rip),%rdi
mov    $0xe,%esi
mov    $0x1,%edx
call   1100 <fwrite@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
lea    0xe40(%rip),%rdi
lea    0xe47(%rip),%rdx
lea    0xe43(%rip),%rcx
lea    0xe3f(%rip),%r8
mov    %rdi,%rsi
xor    %r9d,%r9d
call   1110 <execlp@plt>
mov    0x2d5a(%rip),%rcx
mov    (%rcx),%edx
lea    0xe33(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x2,%edi
call   10f0 <exit@plt>
movl   $0x0,0xc(%rsp)
lea    0xc(%rsp),%rsi
mov    %ebx,%edi
xor    %edx,%edx
call   10c0 <waitpid@plt>
mov    %eax,%ebp
lea    0x10(%rsp),%rdi
xor    %esi,%esi
call   1070 <gettimeofday@plt>
test   %ebp,%ebp
jns    12d8 <main+0xd8>
lea    0xe0a(%rip),%rdi
call   1030 <puts@plt>
mov    $0x3,%edi
call   10f0 <exit@plt>
cmp    %ebx,%ebp
jne    1303 <main+0x103>
mov    0xc(%rsp),%edi
call   10e0 <WIFEXITED@plt>
mov    0xc(%rsp),%edi
test   %rax,%rax
jne    1319 <main+0x119>
call   1080 <WIFSIGNALED@plt>
test   %rax,%rax
jne    1388 <main+0x188>
mov    %ebx,%edi
call   10f0 <exit@plt>
lea    0xdc9(%rip),%rdi
call   1030 <puts@plt>
mov    $0x4,%edi
call   10f0 <exit@plt>
call   10b0 <WEXITSTATUS@plt>
mov    %eax,%ebp
lea    0x18(%rsp),%rdi
lea    0x10(%rsp),%rsi
call   1050 <duration@plt>
lea    0xcd9(%rip),%rdi
mov    %ebp,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1060 <printf@plt>
mov    0xc(%rsp),%edi
call   10b0 <WEXITSTATUS@plt>
test   %eax,%eax
jne    13ab <main+0x1ab>
lea    0xd1d(%rip),%rdi
lea    0xcec(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,%r14
lea    0x18(%rsp),%rdi
lea    0x10(%rsp),%rsi
call   1050 <duration@plt>
lea    0xcb4(%rip),%rsi
mov    %r14,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <fprintf@plt>
jmp    13f3 <main+0x1f3>
mov    0xc(%rsp),%edi
call   10a0 <WTERMSIG@plt>
lea    0xcef(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x5,%edi
call   10f0 <exit@plt>
lea    0xc81(%rip),%rdi
lea    0xc8f(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,%r14
mov    0xc(%rsp),%edi
call   10b0 <WEXITSTATUS@plt>
mov    %eax,%ebp
lea    0x18(%rsp),%rdi
lea    0x10(%rsp),%rsi
call   1050 <duration@plt>
lea    0xc69(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
mov    %ebp,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
mov    0xc(%rsp),%edi
call   10b0 <WEXITSTATUS@plt>
mov    %eax,%edi
call   10f0 <exit@plt>

LLVM IR (-O0):
%struct.timeval = type { i32 }
@stderr = global i32 0
@.str = [15 x i8] c"fork failed !\0A\00"
@.str.1 = [17 x i8] c"waitpid FAILURE\0A\00"
@.str.2 = [36 x i8] c"SUCCESS Exit Code %d ,Duration %ld\0A\00"
@.str.3 = [21 x i8] c"/var/log/FAILURE.TXT\00"
@.str.4 = [3 x i8] c"w+\00"
@.str.5 = [39 x i8] c"Failure PID %d, exit %d, duration %ld\0A\00"
@.str.6 = [21 x i8] c"/var/log/SUCCESS.TXT\00"
@.str.7 = [5 x i8] c"%ld\0A\00"
@.str.8 = [16 x i8] c"SIGNALED : %d \0A\00"
@.str.9 = [14 x i8] c"ccncatchunks2\00"
@.str.10 = [3 x i8] c"-d\00"
@.str.11 = [3 x i8] c"-a\00"
@.str.12 = [15 x i8] c"ccnx:/DATAFILE\00"
@.str.13 = [25 x i8] c"exec return %d errno %d\0A\00"
@errno = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.timeval
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca %struct.timeval
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = call i32 @gettimeofday(%struct.timeval* %6, i32 0)
%15 = call i32 (...) @fork()
store i32 %15, i32* %7
%16 = load i32, i32* %7
%17 = icmp eq i32 -1, %16
br i1 %17, label %18, label %24
18: ; preds = %2
%19 = load i32, i32* @stderr
%20 = sext i32 %19 to i64
%21 = inttoptr i64 %20 to i32*
%22 = call i32 (i32*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%23 = call i32 @exit(i32 1)
unreachable
24: ; preds = %2
%25 = load i32, i32* %7
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %89
27: ; preds = %24
store i32 0, i32* %8
%28 = load i32, i32* %7
%29 = call i32 @waitpid(i32 %28, i32* %8, i32 0)
store i32 %29, i32* %9
%30 = call i32 @gettimeofday(%struct.timeval* %10, i32 0)
%31 = load i32, i32* %9
%32 = icmp slt i32 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %27
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%35 = call i32 @exit(i32 3)
unreachable
36: ; preds = %27
%37 = load i32, i32* %9
%38 = load i32, i32* %7
%39 = icmp eq i32 %37, %38
br i1 %39, label %40, label %83
40: ; preds = %36
%41 = load i32, i32* %8
%42 = call i64 @WIFEXITED(i32 %41)
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %73
44: ; preds = %40
%45 = load i32, i32* %8
%46 = call i32 @WEXITSTATUS(i32 %45)
%47 = call i32 @duration(%struct.timeval* %6, %struct.timeval* %10)
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i32 %46, i32 %47)
%49 = load i32, i32* %8
%50 = call i32 @WEXITSTATUS(i32 %49)
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %62
52: ; preds = %44
%53 = call i32* @fopen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32* %53, i32** %11
%54 = load i32*, i32** %11
%55 = load i32, i32* %7
%56 = load i32, i32* %8
%57 = call i32 @WEXITSTATUS(i32 %56)
%58 = call i32 @duration(%struct.timeval* %6, %struct.timeval* %10)
%59 = call i32 (i32*, i8*, ...) @fprintf(i32* %54, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0), i32 %55, i32 %57, i32 %58)
%60 = load i32*, i32** %11
%61 = call i32 @fclose(i32* %60)
br label %69
62: ; preds = %44
%63 = call i32* @fopen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32* %63, i32** %12
%64 = load i32*, i32** %12
%65 = call i32 @duration(%struct.timeval* %6, %struct.timeval* %10)
%66 = call i32 (i32*, i8*, ...) @fprintf(i32* %64, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %65)
%67 = load i32*, i32** %12
%68 = call i32 @fclose(i32* %67)
br label %69
69: ; preds = %62, %52
%70 = load i32, i32* %8
%71 = call i32 @WEXITSTATUS(i32 %70)
%72 = call i32 @exit(i32 %71)
unreachable
73: ; preds = %40
%74 = load i32, i32* %8
%75 = call i64 @WIFSIGNALED(i32 %74)
%76 = icmp ne i64 %75, 0
br i1 %76, label %77, label %82
77: ; preds = %73
%78 = load i32, i32* %8
%79 = call i32 @WTERMSIG(i32 %78)
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i32 %79)
%81 = call i32 @exit(i32 5)
unreachable
82: ; preds = %73
br label %86
83: ; preds = %36
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%85 = call i32 @exit(i32 4)
unreachable
86: ; preds = %82
%87 = load i32, i32* %9
%88 = call i32 @exit(i32 %87)
unreachable
89: ; preds = %24
%90 = call i32 @execlp(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i32* null)
store i32 %90, i32* %13
%91 = load i32, i32* %13
%92 = load i32, i32* @errno
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0), i32 %91, i32 %92)
%94 = call i32 @exit(i32 2)
unreachable
}

LLVM IR (-O2):
%struct.timeval = type { i32 }
@stderr = global i32 0
@.str = [15 x i8] c"fork failed !\0A\00"
@.str.2 = [36 x i8] c"SUCCESS Exit Code %d ,Duration %ld\0A\00"
@.str.3 = [21 x i8] c"/var/log/FAILURE.TXT\00"
@.str.4 = [3 x i8] c"w+\00"
@.str.5 = [39 x i8] c"Failure PID %d, exit %d, duration %ld\0A\00"
@.str.6 = [21 x i8] c"/var/log/SUCCESS.TXT\00"
@.str.7 = [5 x i8] c"%ld\0A\00"
@.str.8 = [16 x i8] c"SIGNALED : %d \0A\00"
@.str.9 = [14 x i8] c"ccncatchunks2\00"
@.str.10 = [3 x i8] c"-d\00"
@.str.11 = [3 x i8] c"-a\00"
@.str.12 = [15 x i8] c"ccnx:/DATAFILE\00"
@.str.13 = [25 x i8] c"exec return %d errno %d\0A\00"
@errno = global i32 0
@str.14 = [16 x i8] c"waitpid FAILURE\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca %struct.timeval
%4 = alloca i32
%5 = alloca %struct.timeval
%6 = bitcast %struct.timeval* %3 to i8*
%7 = call i32 @gettimeofday(%struct.timeval* %3, i32 0)
%8 = call i32 (...) @fork()
switch i32 %8, label %15 [
i32 -1, label %9
i32 0, label %67
]
9: ; preds = %2
%10 = load i32, i32* @stderr
%11 = sext i32 %10 to i64
%12 = inttoptr i64 %11 to i32*
%13 = call i64 @fwrite(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i64 14, i64 1, i32* %12)
%14 = call i32 @exit(i32 1)
unreachable
15: ; preds = %2
%16 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%17 = call i32 @waitpid(i32 %8, i32* %4, i32 0)
%18 = bitcast %struct.timeval* %5 to i8*
%19 = call i32 @gettimeofday(%struct.timeval* %5, i32 0)
%20 = icmp slt i32 %17, 0
br i1 %20, label %21, label %24
21: ; preds = %15
%22 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.14, i64 0, i64 0))
%23 = call i32 @exit(i32 3)
unreachable
24: ; preds = %15
%25 = icmp eq i32 %17, %8
br i1 %25, label %26, label %62
26: ; preds = %24
%27 = load i32, i32* %4
%28 = call i64 @WIFEXITED(i32 %27)
%29 = icmp eq i64 %28, 0
%30 = load i32, i32* %4
br i1 %29, label %54, label %31
31: ; preds = %26
%32 = call i32 @WEXITSTATUS(i32 %30)
%33 = call i32 @duration(%struct.timeval* %3, %struct.timeval* %5)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i32 %32, i32 %33)
%35 = load i32, i32* %4
%36 = call i32 @WEXITSTATUS(i32 %35)
%37 = icmp eq i32 %36, 0
br i1 %37, label %44, label %38
38: ; preds = %31
%39 = call i32* @fopen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%40 = load i32, i32* %4
%41 = call i32 @WEXITSTATUS(i32 %40)
%42 = call i32 @duration(%struct.timeval* %3, %struct.timeval* %5)
%43 = call i32 (i32*, i8*, ...) @fprintf(i32* %39, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0), i32 %8, i32 %41, i32 %42)
br label %48
44: ; preds = %31
%45 = call i32* @fopen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%46 = call i32 @duration(%struct.timeval* %3, %struct.timeval* %5)
%47 = call i32 (i32*, i8*, ...) @fprintf(i32* %45, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %46)
br label %48
48: ; preds = %44, %38
%49 = phi i32* [ %45, %44 ], [ %39, %38 ]
%50 = call i32 @fclose(i32* %49)
%51 = load i32, i32* %4
%52 = call i32 @WEXITSTATUS(i32 %51)
%53 = call i32 @exit(i32 %52)
unreachable
54: ; preds = %26
%55 = call i64 @WIFSIGNALED(i32 %30)
%56 = icmp eq i64 %55, 0
br i1 %56, label %65, label %57
57: ; preds = %54
%58 = load i32, i32* %4
%59 = call i32 @WTERMSIG(i32 %58)
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i32 %59)
%61 = call i32 @exit(i32 5)
unreachable
62: ; preds = %24
%63 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.14, i64 0, i64 0))
%64 = call i32 @exit(i32 4)
unreachable
65: ; preds = %54
%66 = call i32 @exit(i32 %8)
unreachable
67: ; preds = %2
%68 = call i32 @execlp(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i32* null)
%69 = load i32, i32* @errno
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0), i32 %68, i32 %69)
%71 = call i32 @exit(i32 2)
unreachable
}