#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 */
typedef struct TYPE_4__ TYPE_2__;
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct timespec {
  double tv_sec;
  double tv_nsec;
};
struct sigaction {
  scalar_t__ sa_flags;
  int /*<<< orphan*/ sa_mask;
  int /*<<< orphan*/ sa_handler;
};
struct TYPE_4__ {
  double tv_sec;
  double tv_usec;
};
struct TYPE_3__ {
  double tv_sec;
  double tv_usec;
};
struct rusage {
  TYPE_2__ ru_stime;
  TYPE_1__ ru_utime;
};
typedef scalar_t__ pid_t;

/* Variables and functions */
int /*<<< orphan*/ CLOCK_REALTIME;
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ SIGINT;
int /*<<< orphan*/ SIG_IGN;
scalar_t__ clock_gettime(int /*<<< orphan*/, struct timespec *);
scalar_t__ execvp(char *, char **);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
scalar_t__ fork();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ perror(char *);
scalar_t__ sigaction(int /*<<< orphan*/, struct sigaction *,
                     int /*<<< orphan*/ *);
int /*<<< orphan*/ sigemptyset(int /*<<< orphan*/ *);
int /*<<< orphan*/ stderr;
scalar_t__ wait3(int *, int /*<<< orphan*/, struct rusage *);
int main(int argc, char *argv[]) {
  if (argc < 2) {
    fprintf(stderr, "Usage: %s command [arguments]\n", argv[0]);
    exit(EXIT_FAILURE);
  }
  struct timespec rtime_begin, rtime_end;
  if (clock_gettime(CLOCK_REALTIME, &rtime_begin) < 0) {
    perror("Error measuring wall clock time");
    exit(EXIT_FAILURE);
  }
  pid_t f;
  if ((f = fork()) < 0) {
    perror("Couldn't fork");
    exit(EXIT_FAILURE);
  }
  if (f == 0) {
    if (execvp(argv[1], &argv[1]) < 0) {
      perror("exec error");
      exit(EXIT_FAILURE);
    }
  }
  struct sigaction sigint_ign;
  sigint_ign.sa_handler = SIG_IGN;
  sigemptyset(&sigint_ign.sa_mask);
  sigint_ign.sa_flags = 0;
  if (sigaction(SIGINT, &sigint_ign, NULL) < 0) {
    perror("Couldn't ignore SIGINT");
    exit(EXIT_FAILURE);
  }
  int status;
  struct rusage rusage;
  if (wait3(&status, 0, &rusage) == (pid_t)-1) {
    perror("wait error");
    exit(EXIT_FAILURE);
  }
  if (clock_gettime(CLOCK_REALTIME, &rtime_end) < 0) {
    perror("Error measuring wall clock time");
    exit(EXIT_FAILURE);
  }
  double real, user, sys;
  real = (rtime_end.tv_sec - rtime_begin.tv_sec) +
         (rtime_end.tv_nsec - rtime_begin.tv_nsec) / 1000000000.0;
  user = rusage.ru_utime.tv_sec + rusage.ru_utime.tv_usec / 1000000.0;
  sys = rusage.ru_stime.tv_sec + rusage.ru_stime.tv_usec / 1000000.0;
  fprintf(stderr, "\nreal\t%.4f secs.\nuser\t%.4f secs.\nsys\t%.4f secs.\n",
          real, user, sys);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    11df <main+0x4f>
mov    0x2e16(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe46(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2df0(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
mov    0x2dda(%rip),%rax
mov    (%rax),%edi
lea    -0x20(%rbp),%rsi
call   1040 <clock_gettime@plt>
cmp    $0x0,%rax
jge    1215 <main+0x85>
lea    0xe2d(%rip),%rdi
call   1080 <perror@plt>
mov    0x2dba(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
mov    $0x0,%al
call   10b0 <fork@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
jge    1244 <main+0xb4>
lea    0xe1e(%rip),%rdi
call   1080 <perror@plt>
mov    0x2d8b(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
cmpq   $0x0,-0x38(%rbp)
jne    128d <main+0xfd>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1090 <execvp@plt>
cmp    $0x0,%rax
jge    1288 <main+0xf8>
lea    0xde8(%rip),%rdi
call   1080 <perror@plt>
mov    0x2d47(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
jmp    128d <main+0xfd>
mov    0x2d4c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
lea    -0x48(%rbp),%rdi
add    $0x8,%rdi
call   1070 <sigemptyset@plt>
movq   $0x0,-0x48(%rbp)
mov    0x2d33(%rip),%rax
mov    (%rax),%edi
lea    -0x48(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <sigaction@plt>
cmp    $0x0,%rax
jge    12e8 <main+0x158>
lea    0xd93(%rip),%rdi
call   1080 <perror@plt>
mov    0x2ce7(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
lea    -0x4c(%rbp),%rdi
xor    %esi,%esi
lea    -0x70(%rbp),%rdx
call   1050 <wait3@plt>
cmp    $0xffffffffffffffff,%rax
jne    131b <main+0x18b>
lea    0xd77(%rip),%rdi
call   1080 <perror@plt>
mov    0x2cb4(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
mov    0x2c9e(%rip),%rax
mov    (%rax),%edi
lea    -0x30(%rbp),%rsi
call   1040 <clock_gettime@plt>
cmp    $0x0,%rax
jge    1351 <main+0x1c1>
lea    0xcf1(%rip),%rdi
call   1080 <perror@plt>
mov    0x2c7e(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
movsd  -0x30(%rbp),%xmm0
subsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
subsd  -0x18(%rbp),%xmm1
movsd  0xc9b(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
movsd  0xc74(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm1
movsd  0xc55(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    0x2c0e(%rip),%rax
mov    (%rax),%edi
movsd  -0x78(%rbp),%xmm0
movsd  -0x80(%rbp),%xmm1
movsd  -0x88(%rbp),%xmm2
ff
lea    0xcad(%rip),%rsi
mov    $0x3,%al
call   1060 <fprintf@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x68,%rsp
mov    %rsi,%rbx
cmp    $0x1,%edi
jle    12c8 <main+0x138>
mov    0x2e16(%rip),%r14
mov    (%r14),%edi
lea    0x50(%rsp),%rsi
call   1040 <clock_gettime@plt>
test   %rax,%rax
js     12bf <main+0x12f>
xor    %eax,%eax
call   10b0 <fork@plt>
test   %rax,%rax
js     12e4 <main+0x154>
jne    11eb <main+0x5b>
mov    0x8(%rbx),%rdi
add    $0x8,%rbx
mov    %rbx,%rsi
call   1090 <execvp@plt>
test   %rax,%rax
js     12ff <main+0x16f>
mov    0x2dee(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x14(%rsp)
lea    0x10(%rsp),%rdi
call   1070 <sigemptyset@plt>
movq   $0x0,0x8(%rsp)
mov    0x2dd6(%rip),%rax
mov    (%rax),%edi
lea    0x8(%rsp),%rsi
xor    %edx,%edx
call   1030 <sigaction@plt>
test   %rax,%rax
js     12ed <main+0x15d>
lea    0x1c(%rsp),%rdi
lea    0x20(%rsp),%rdx
xor    %esi,%esi
call   1050 <wait3@plt>
cmp    $0xffffffffffffffff,%rax
je     12f6 <main+0x166>
mov    (%r14),%edi
lea    0x40(%rsp),%rsi
call   1040 <clock_gettime@plt>
test   %rax,%rax
js     12bf <main+0x12f>
movapd 0x40(%rsp),%xmm1
subpd  0x50(%rsp),%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
divsd  0xd8e(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  0x28(%rsp),%xmm2
movsd  0x38(%rsp),%xmm1
movsd  0xd7e(%rip),%xmm3
divsd  %xmm3,%xmm1
addsd  0x30(%rsp),%xmm1
divsd  %xmm3,%xmm2
addsd  0x20(%rsp),%xmm2
mov    0x2d2b(%rip),%rax
mov    (%rax),%edi
lea    0xddc(%rip),%rsi
mov    $0x3,%al
call   1060 <fprintf@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r14
ret
lea    0xd69(%rip),%rdi
jmp    1306 <main+0x176>
mov    0x2d01(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xd35(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    130b <main+0x17b>
lea    0xd64(%rip),%rdi
jmp    1306 <main+0x176>
lea    0xd74(%rip),%rdi
jmp    1306 <main+0x176>
lea    0xd82(%rip),%rdi
jmp    1306 <main+0x176>
lea    0xd57(%rip),%rdi
call   1080 <perror@plt>
mov    0x2cb6(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
%struct.timespec = type { double, double }
%struct.sigaction = type { i64, i32, i32 }
%struct.rusage = type { %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { double, double }
%struct.TYPE_3__ = type { double, double }
@stderr = global i32 0
@.str = [31 x i8] c"Usage: %s command [arguments]\0A\00"
@EXIT_FAILURE = global i32 0
@CLOCK_REALTIME = global i32 0
@.str.1 = [32 x i8] c"Error measuring wall clock time\00"
@.str.2 = [14 x i8] c"Couldn't fork\00"
@.str.3 = [11 x i8] c"exec error\00"
@SIG_IGN = global i32 0
@SIGINT = global i32 0
@.str.4 = [23 x i8] c"Couldn't ignore SIGINT\00"
@.str.5 = [11 x i8] c"wait error\00"
@.str.6 = [49 x i8] c"\0Areal\09%.4f secs.\0Auser\09%.4f secs.\0Asys\09%.4f secs.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.timespec
%7 = alloca %struct.timespec
%8 = alloca i64
%9 = alloca %struct.sigaction
%10 = alloca i32
%11 = alloca %struct.rusage
%12 = alloca double
%13 = alloca double
%14 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = load i32, i32* %4
%16 = icmp slt i32 %15, 2
br i1 %16, label %17, label %25
17: ; preds = %2
%18 = load i32, i32* @stderr
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 0
%21 = load i8*, i8** %20
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8* %21)
%23 = load i32, i32* @EXIT_FAILURE
%24 = call i32 @exit(i32 %23)
unreachable
25: ; preds = %2
%26 = load i32, i32* @CLOCK_REALTIME
%27 = call i64 @clock_gettime(i32 %26, %struct.timespec* %6)
%28 = icmp slt i64 %27, 0
br i1 %28, label %29, label %33
29: ; preds = %25
%30 = call i32 @perror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%31 = load i32, i32* @EXIT_FAILURE
%32 = call i32 @exit(i32 %31)
unreachable
33: ; preds = %25
%34 = call i64 (...) @fork()
store i64 %34, i64* %8
%35 = icmp slt i64 %34, 0
br i1 %35, label %36, label %40
36: ; preds = %33
%37 = call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%38 = load i32, i32* @EXIT_FAILURE
%39 = call i32 @exit(i32 %38)
unreachable
40: ; preds = %33
%41 = load i64, i64* %8
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %56
43: ; preds = %40
%44 = load i8**, i8*** %5
%45 = getelementptr inbounds i8*, i8** %44, i64 1
%46 = load i8*, i8** %45
%47 = load i8**, i8*** %5
%48 = getelementptr inbounds i8*, i8** %47, i64 1
%49 = call i64 @execvp(i8* %46, i8** %48)
%50 = icmp slt i64 %49, 0
br i1 %50, label %51, label %55
51: ; preds = %43
%52 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%53 = load i32, i32* @EXIT_FAILURE
%54 = call i32 @exit(i32 %53)
unreachable
55: ; preds = %43
br label %56
56: ; preds = %55, %40
%57 = load i32, i32* @SIG_IGN
%58 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %9, i32 0, i32 2
store i32 %57, i32* %58
%59 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %9, i32 0, i32 1
%60 = call i32 @sigemptyset(i32* %59)
%61 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %9, i32 0, i32 0
store i64 0, i64* %61
%62 = load i32, i32* @SIGINT
%63 = call i64 @sigaction(i32 %62, %struct.sigaction* %9, i32* null)
%64 = icmp slt i64 %63, 0
br i1 %64, label %65, label %69
65: ; preds = %56
%66 = call i32 @perror(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%67 = load i32, i32* @EXIT_FAILURE
%68 = call i32 @exit(i32 %67)
unreachable
69: ; preds = %56
%70 = call i64 @wait3(i32* %10, i32 0, %struct.rusage* %11)
%71 = icmp eq i64 %70, -1
br i1 %71, label %72, label %76
72: ; preds = %69
%73 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%74 = load i32, i32* @EXIT_FAILURE
%75 = call i32 @exit(i32 %74)
unreachable
76: ; preds = %69
%77 = load i32, i32* @CLOCK_REALTIME
%78 = call i64 @clock_gettime(i32 %77, %struct.timespec* %7)
%79 = icmp slt i64 %78, 0
br i1 %79, label %80, label %84
80: ; preds = %76
%81 = call i32 @perror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%82 = load i32, i32* @EXIT_FAILURE
%83 = call i32 @exit(i32 %82)
unreachable
84: ; preds = %76
%85 = getelementptr inbounds %struct.timespec, %struct.timespec* %7, i32 0, i32 0
%86 = load double, double* %85
%87 = getelementptr inbounds %struct.timespec, %struct.timespec* %6, i32 0, i32 0
%88 = load double, double* %87
%89 = fsub double %86, %88
%90 = getelementptr inbounds %struct.timespec, %struct.timespec* %7, i32 0, i32 1
%91 = load double, double* %90
%92 = getelementptr inbounds %struct.timespec, %struct.timespec* %6, i32 0, i32 1
%93 = load double, double* %92
%94 = fsub double %91, %93
%95 = fdiv double %94, 1.000000e+09
%96 = fadd double %89, %95
store double %96, double* %12
%97 = getelementptr inbounds %struct.rusage, %struct.rusage* %11, i32 0, i32 1
%98 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %97, i32 0, i32 0
%99 = load double, double* %98
%100 = getelementptr inbounds %struct.rusage, %struct.rusage* %11, i32 0, i32 1
%101 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %100, i32 0, i32 1
%102 = load double, double* %101
%103 = fdiv double %102, 1.000000e+06
%104 = fadd double %99, %103
store double %104, double* %13
%105 = getelementptr inbounds %struct.rusage, %struct.rusage* %11, i32 0, i32 0
%106 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %105, i32 0, i32 0
%107 = load double, double* %106
%108 = getelementptr inbounds %struct.rusage, %struct.rusage* %11, i32 0, i32 0
%109 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %108, i32 0, i32 1
%110 = load double, double* %109
%111 = fdiv double %110, 1.000000e+06
%112 = fadd double %107, %111
store double %112, double* %14
%113 = load i32, i32* @stderr
%114 = load double, double* %12
%115 = load double, double* %13
%116 = load double, double* %14
%117 = call i32 (i32, i8*, ...) @fprintf(i32 %113, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0), double %114, double %115, double %116)
ret i32 0
}

LLVM IR (-O2):
%struct.timespec = type { double, double }
%struct.sigaction = type { i64, i32, i32 }
%struct.rusage = type { %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { double, double }
%struct.TYPE_3__ = type { double, double }
@stderr = global i32 0
@.str = [31 x i8] c"Usage: %s command [arguments]\0A\00"
@EXIT_FAILURE = global i32 0
@CLOCK_REALTIME = global i32 0
@.str.1 = [32 x i8] c"Error measuring wall clock time\00"
@.str.2 = [14 x i8] c"Couldn't fork\00"
@.str.3 = [11 x i8] c"exec error\00"
@SIG_IGN = global i32 0
@SIGINT = global i32 0
@.str.4 = [23 x i8] c"Couldn't ignore SIGINT\00"
@.str.5 = [11 x i8] c"wait error\00"
@.str.6 = [49 x i8] c"\0Areal\09%.4f secs.\0Auser\09%.4f secs.\0Asys\09%.4f secs.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca <2 x double>
%4 = alloca <2 x double>
%5 = bitcast <2 x double>* %4 to %struct.timespec*
%6 = alloca %struct.sigaction
%7 = alloca i32
%8 = alloca %struct.rusage
%9 = icmp slt i32 %0, 2
br i1 %9, label %10, label %16
10: ; preds = %2
%11 = load i32, i32* @stderr
%12 = load i8*, i8** %1
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8* %12)
%14 = load i32, i32* @EXIT_FAILURE
%15 = tail call i32 @exit(i32 %14)
unreachable
16: ; preds = %2
%17 = bitcast <2 x double>* %3 to %struct.timespec*
%18 = bitcast <2 x double>* %3 to i8*
%19 = bitcast <2 x double>* %4 to i8*
%20 = load i32, i32* @CLOCK_REALTIME
%21 = call i64 @clock_gettime(i32 %20, %struct.timespec* %17)
%22 = icmp slt i64 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %16
%24 = call i32 @perror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%25 = load i32, i32* @EXIT_FAILURE
%26 = call i32 @exit(i32 %25)
unreachable
27: ; preds = %16
%28 = call i64 (...) @fork()
%29 = icmp slt i64 %28, 0
br i1 %29, label %30, label %34
30: ; preds = %27
%31 = call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%32 = load i32, i32* @EXIT_FAILURE
%33 = call i32 @exit(i32 %32)
unreachable
34: ; preds = %27
%35 = icmp eq i64 %28, 0
br i1 %35, label %36, label %45
36: ; preds = %34
%37 = getelementptr inbounds i8*, i8** %1, i64 1
%38 = load i8*, i8** %37
%39 = call i64 @execvp(i8* %38, i8** %37)
%40 = icmp slt i64 %39, 0
br i1 %40, label %41, label %45
41: ; preds = %36
%42 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%43 = load i32, i32* @EXIT_FAILURE
%44 = call i32 @exit(i32 %43)
unreachable
45: ; preds = %36, %34
%46 = bitcast %struct.sigaction* %6 to i8*
%47 = load i32, i32* @SIG_IGN
%48 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %6, i64 0, i32 2
store i32 %47, i32* %48
%49 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %6, i64 0, i32 1
%50 = call i32 @sigemptyset(i32* %49)
%51 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %6, i64 0, i32 0
store i64 0, i64* %51
%52 = load i32, i32* @SIGINT
%53 = call i64 @sigaction(i32 %52, %struct.sigaction* %6, i32* null)
%54 = icmp slt i64 %53, 0
br i1 %54, label %55, label %59
55: ; preds = %45
%56 = call i32 @perror(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%57 = load i32, i32* @EXIT_FAILURE
%58 = call i32 @exit(i32 %57)
unreachable
59: ; preds = %45
%60 = bitcast i32* %7 to i8*
%61 = bitcast %struct.rusage* %8 to i8*
%62 = call i64 @wait3(i32* %7, i32 0, %struct.rusage* %8)
%63 = icmp eq i64 %62, -1
br i1 %63, label %64, label %68
64: ; preds = %59
%65 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%66 = load i32, i32* @EXIT_FAILURE
%67 = call i32 @exit(i32 %66)
unreachable
68: ; preds = %59
%69 = load i32, i32* @CLOCK_REALTIME
%70 = call i64 @clock_gettime(i32 %69, %struct.timespec* %5)
%71 = icmp slt i64 %70, 0
br i1 %71, label %72, label %76
72: ; preds = %68
%73 = call i32 @perror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%74 = load i32, i32* @EXIT_FAILURE
%75 = call i32 @exit(i32 %74)
unreachable
76: ; preds = %68
%77 = load <2 x double>, <2 x double>* %4
%78 = load <2 x double>, <2 x double>* %3
%79 = fsub <2 x double> %77, %78
%80 = extractelement <2 x double> %79, i64 1
%81 = fdiv double %80, 1.000000e+09
%82 = extractelement <2 x double> %79, i64 0
%83 = fadd double %82, %81
%84 = getelementptr inbounds %struct.rusage, %struct.rusage* %8, i64 0, i32 1, i32 0
%85 = load double, double* %84
%86 = getelementptr inbounds %struct.rusage, %struct.rusage* %8, i64 0, i32 1, i32 1
%87 = load double, double* %86
%88 = fdiv double %87, 1.000000e+06
%89 = fadd double %85, %88
%90 = getelementptr inbounds %struct.rusage, %struct.rusage* %8, i64 0, i32 0, i32 0
%91 = load double, double* %90
%92 = getelementptr inbounds %struct.rusage, %struct.rusage* %8, i64 0, i32 0, i32 1
%93 = load double, double* %92
%94 = fdiv double %93, 1.000000e+06
%95 = fadd double %91, %94
%96 = load i32, i32* @stderr
%97 = call i32 (i32, i8*, ...) @fprintf(i32 %96, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0), double %83, double %89, double %95)
ret i32 0
}