#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 */
typedef int /*<<< orphan*/ time_t;
struct timeval {
  int /*<<< orphan*/ tv_usec;
};
struct TYPE_4__ {
  int tv_usec;
};
struct TYPE_3__ {
  int tv_usec;
};
struct rusage {
  int /*<<< orphan*/ ru_minflt;
  int /*<<< orphan*/ ru_majflt;
  int /*<<< orphan*/ ru_nvcsw;
  int /*<<< orphan*/ ru_nivcsw;
  TYPE_2__ ru_stime;
  TYPE_1__ ru_utime;
};
typedef int pid_t;

/* Variables and functions */
int /*<<< orphan*/ RUSAGE_CHILDREN;
int /*<<< orphan*/ errno;
int /*<<< orphan*/ execvp(char *, char **);
int /*<<< orphan*/ exit(int);
int fork();
int /*<<< orphan*/ getrusage(int /*<<< orphan*/, struct rusage *);
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
char *strerror(int /*<<< orphan*/);
int /*<<< orphan*/ wait(int *);
int main(int argc, char *argv[]) {
  struct rusage ru;
  struct timeval wallclock;
  time_t begin, end;
  pid_t pid;
  int i;
  char *arg[argc + 1];
  if (argc == 1) {
    printf("Aucun argument n'a été passé.\n");
  } else {
    gettimeofday(&wallclock, NULL);
    begin = wallclock.tv_usec;
    for (i = 1; i < argc; ++i) {
      arg[i - 1] = argv[i];
    }
    arg[argc] = NULL;
    if ((pid = fork()) < 0) {
      printf("Erreur %s\n", strerror(errno));
      exit(-1);
    } else if (pid == 0) {
      printf("%s\n", "Child");
      execvp(arg[0], arg);
    } else {
      printf("%s\n", "Parent");
      int status;
      wait(&status);
      gettimeofday(&wallclock, NULL);
      end = wallclock.tv_usec;
      getrusage(RUSAGE_CHILDREN, &ru);
      printf(
          "*************************STATISTIQUES*************************\n");
      printf("* PID: %d\n", pid);
      printf("* Temps écoulé pour exécution (wall-clock time): %ld ms\n",
             end - begin);
      printf("* Temps CPU utilisé (user mode): %d ms\n", ru.ru_utime.tv_usec);
      printf("* Temps CPU utilisé (kernel mode): %d ms\n", ru.ru_stime.tv_usec);
      printf("* Nombre d'interruptions involontaires: %ld\n", ru.ru_nivcsw);
      printf("* Nombre de fois que le CPU a été libéré volontairement: %ld\n",
             ru.ru_nvcsw);
      printf("* Nombre de défauts de pages: %ld\n", ru.ru_majflt);
      printf("* Nombre de défauts de pages satisfaits par cache: %ld\n",
             ru.ru_minflt);
      printf(
          "**************************************************************\n");
      exit(0);
    }
  }
  return 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)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %rsp,%rcx
mov    %rcx,-0x48(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x60(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x50(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    11dd <main+0x5d>
lea    0xe2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13a5 <main+0x225>
lea    -0x30(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <gettimeofday@plt>
mov    -0x30(%rbp),%eax
mov    %eax,-0x34(%rbp)
movl   $0x1,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    122e <main+0xae>
mov    -0x60(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq -0x40(%rbp),%rdx
mov    (%rcx,%rdx,8),%rdx
mov    -0x40(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    11f7 <main+0x77>
mov    -0x60(%rbp),%rax
movslq -0x8(%rbp),%rcx
movq   $0x0,(%rax,%rcx,8)
mov    $0x0,%al
call   10a0 <fork@plt>
mov    %eax,-0x3c(%rbp)
cmp    $0x0,%eax
jge    127a <main+0xfa>
mov    0x2d80(%rip),%rax
mov    (%rax),%edi
call   1080 <strerror@plt>
mov    %rax,%rsi
lea    0xdb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1070 <exit@plt>
cmpl   $0x0,-0x3c(%rbp)
jne    12aa <main+0x12a>
lea    0xd9e(%rip),%rdi
lea    0xd9b(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x60(%rbp),%rsi
mov    (%rsi),%rdi
call   1060 <execvp@plt>
jmp    139b <main+0x21b>
lea    0xd78(%rip),%rdi
lea    0xd7b(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x54(%rbp),%rdi
call   1090 <wait@plt>
lea    -0x30(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <gettimeofday@plt>
mov    -0x30(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    0x2cfe(%rip),%rax
mov    (%rax),%edi
lea    -0x28(%rbp),%rsi
call   1050 <getrusage@plt>
lea    0xd46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x3c(%rbp),%esi
lea    0xd75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%esi
sub    -0x34(%rbp),%esi
lea    0xd6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xd97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xdaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%esi
lea    0xdc9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%esi
lea    0xde5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%esi
lea    0xe16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%esi
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe54(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1070 <exit@plt>
jmp    13a0 <main+0x220>
jmp    13a5 <main+0x225>
movl   $0x0,-0x4(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %edi,%r14d
mov    %rsp,%r12
lea    0x1(%r14),%eax
mov    %rsp,%rbx
lea    0xf(,%rax,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
cmp    $0x1,%edi
jne    11e3 <main+0x43>
lea    0x1021(%rip),%rdi
call   1030 <puts@plt>
jmp    1241 <main+0xa1>
mov    %rsi,%r15
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
call   1050 <gettimeofday@plt>
mov    -0x30(%rbp),%r13d
cmp    $0x2,%r14d
jl     1212 <main+0x72>
add    $0x8,%r15
lea    -0x1(%r14),%edx
shl    $0x3,%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1060 <memcpy@plt>
movslq %r14d,%rax
movq   $0x0,(%rbx,%rax,8)
xor    %eax,%eax
call   10c0 <fork@plt>
test   %eax,%eax
js     1255 <main+0xb5>
jne    127e <main+0xde>
lea    0xdda(%rip),%rdi
call   1030 <puts@plt>
mov    (%rbx),%rdi
mov    %rbx,%rsi
call   1080 <execvp@plt>
mov    %r12,%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2d7c(%rip),%rax
mov    (%rax),%edi
call   10a0 <strerror@plt>
lea    0xd96(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
mov    %eax,%r14d
lea    0xd89(%rip),%rdi
call   1030 <puts@plt>
lea    -0x4c(%rbp),%rdi
call   10b0 <wait@plt>
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
call   1050 <gettimeofday@plt>
mov    -0x30(%rbp),%ebx
sub    %r13d,%ebx
mov    0x2d32(%rip),%rax
mov    (%rax),%edi
lea    -0x48(%rbp),%rsi
call   1070 <getrusage@plt>
lea    0xebf(%rip),%rdi
call   1030 <puts@plt>
lea    0xd4c(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd46(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x34(%rbp),%esi
lea    0xd6f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x38(%rbp),%esi
lea    0xd87(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x3c(%rbp),%esi
lea    0xda1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x40(%rbp),%esi
lea    0xdbd(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x44(%rbp),%esi
lea    0xdee(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x48(%rbp),%esi
lea    0xe01(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe6b(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
%struct.rusage = type { i32, i32, i32, i32, %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { i32 }
%struct.TYPE_3__ = type { i32 }
%struct.timeval = type { i32 }
@.str = [34 x i8] c"Aucun argument n'a \C3\A9t\C3\A9 pass\C3\A9.\0A\00"
@.str.1 = [11 x i8] c"Erreur %s\0A\00"
@errno = global i32 0
@.str.2 = [4 x i8] c"%s\0A\00"
@.str.3 = [6 x i8] c"Child\00"
@.str.4 = [7 x i8] c"Parent\00"
@RUSAGE_CHILDREN = global i32 0
@.str.5 = [64 x i8] c"*************************STATISTIQUES*************************\0A\00"
@.str.6 = [11 x i8] c"* PID: %d\0A\00"
@.str.7 = [60 x i8] c"* Temps \C3\A9coul\C3\A9 pour ex\C3\A9cution (wall-clock time): %ld ms\0A\00"
@.str.8 = [41 x i8] c"* Temps CPU utilis\C3\A9 (user mode): %d ms\0A\00"
@.str.9 = [43 x i8] c"* Temps CPU utilis\C3\A9 (kernel mode): %d ms\0A\00"
@.str.10 = [45 x i8] c"* Nombre d'interruptions involontaires: %ld\0A\00"
@.str.11 = [66 x i8] c"* Nombre de fois que le CPU a \C3\A9t\C3\A9 lib\C3\A9r\C3\A9 volontairement: %ld\0A\00"
@.str.12 = [36 x i8] c"* Nombre de d\C3\A9fauts de pages: %ld\0A\00"
@.str.13 = [57 x i8] c"* Nombre de d\C3\A9fauts de pages satisfaits par cache: %ld\0A\00"
@.str.14 = [64 x i8] c"**************************************************************\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.rusage
%7 = alloca %struct.timeval
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i64
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = load i32, i32* %4
%16 = add nsw i32 %15, 1
%17 = zext i32 %16 to i64
%18 = call i8* @llvm.stacksave()
store i8* %18, i8** %12
%19 = alloca i8*, i64 %17
store i64 %17, i64* %13
%20 = load i32, i32* %4
%21 = icmp eq i32 %20, 1
br i1 %21, label %22, label %24
22: ; preds = %2
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
br label %103
24: ; preds = %2
%25 = call i32 @gettimeofday(%struct.timeval* %7, i32* null)
%26 = getelementptr inbounds %struct.timeval, %struct.timeval* %7, i32 0, i32 0
%27 = load i32, i32* %26
store i32 %27, i32* %8
store i32 1, i32* %11
br label %28
28: ; preds = %42, %24
%29 = load i32, i32* %11
%30 = load i32, i32* %4
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %45
32: ; preds = %28
%33 = load i8**, i8*** %5
%34 = load i32, i32* %11
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8*, i8** %33, i64 %35
%37 = load i8*, i8** %36
%38 = load i32, i32* %11
%39 = sub nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8*, i8** %19, i64 %40
store i8* %37, i8** %41
br label %42
42: ; preds = %32
%43 = load i32, i32* %11
%44 = add nsw i32 %43, 1
store i32 %44, i32* %11
br label %28
45: ; preds = %28
%46 = load i32, i32* %4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8*, i8** %19, i64 %47
store i8* null, i8** %48
%49 = call i32 (...) @fork()
store i32 %49, i32* %10
%50 = icmp slt i32 %49, 0
br i1 %50, label %51, label %56
51: ; preds = %45
%52 = load i32, i32* @errno
%53 = call i8* @strerror(i32 %52)
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %53)
%55 = call i32 @exit(i32 -1)
unreachable
56: ; preds = %45
%57 = load i32, i32* %10
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %64
59: ; preds = %56
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%61 = getelementptr inbounds i8*, i8** %19, i64 0
%62 = load i8*, i8** %61
%63 = call i32 @execvp(i8* %62, i8** %19)
br label %101
64: ; preds = %56
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%66 = call i32 @wait(i32* %14)
%67 = call i32 @gettimeofday(%struct.timeval* %7, i32* null)
%68 = getelementptr inbounds %struct.timeval, %struct.timeval* %7, i32 0, i32 0
%69 = load i32, i32* %68
store i32 %69, i32* %9
%70 = load i32, i32* @RUSAGE_CHILDREN
%71 = call i32 @getrusage(i32 %70, %struct.rusage* %6)
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0))
%73 = load i32, i32* %10
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i32 %73)
%75 = load i32, i32* %9
%76 = load i32, i32* %8
%77 = sub nsw i32 %75, %76
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.7, i64 0, i64 0), i32 %77)
%79 = getelementptr inbounds %struct.rusage, %struct.rusage* %6, i32 0, i32 5
%80 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %79, i32 0, i32 0
%81 = load i32, i32* %80
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.8, i64 0, i64 0), i32 %81)
%83 = getelementptr inbounds %struct.rusage, %struct.rusage* %6, i32 0, i32 4
%84 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %83, i32 0, i32 0
%85 = load i32, i32* %84
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0), i32 %85)
%87 = getelementptr inbounds %struct.rusage, %struct.rusage* %6, i32 0, i32 3
%88 = load i32, i32* %87
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.10, i64 0, i64 0), i32 %88)
%90 = getelementptr inbounds %struct.rusage, %struct.rusage* %6, i32 0, i32 2
%91 = load i32, i32* %90
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.11, i64 0, i64 0), i32 %91)
%93 = getelementptr inbounds %struct.rusage, %struct.rusage* %6, i32 0, i32 1
%94 = load i32, i32* %93
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0), i32 %94)
%96 = getelementptr inbounds %struct.rusage, %struct.rusage* %6, i32 0, i32 0
%97 = load i32, i32* %96
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0), i32 %97)
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.14, i64 0, i64 0))
%100 = call i32 @exit(i32 0)
unreachable
101: ; preds = %59
br label %102
102: ; preds = %101
br label %103
103: ; preds = %102, %22
store i32 0, i32* %3
%104 = load i8*, i8** %12
%105 = load i32, i32* %3
ret i32 %105
}

LLVM IR (-O2):
%struct.rusage = type { i32, i32, i32, i32, %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { i32 }
%struct.TYPE_3__ = type { i32 }
%struct.timeval = type { i32 }
@.str.1 = [11 x i8] c"Erreur %s\0A\00"
@errno = global i32 0
@.str.3 = [6 x i8] c"Child\00"
@.str.4 = [7 x i8] c"Parent\00"
@RUSAGE_CHILDREN = global i32 0
@.str.6 = [11 x i8] c"* PID: %d\0A\00"
@.str.7 = [60 x i8] c"* Temps \C3\A9coul\C3\A9 pour ex\C3\A9cution (wall-clock time): %ld ms\0A\00"
@.str.8 = [41 x i8] c"* Temps CPU utilis\C3\A9 (user mode): %d ms\0A\00"
@.str.9 = [43 x i8] c"* Temps CPU utilis\C3\A9 (kernel mode): %d ms\0A\00"
@.str.10 = [45 x i8] c"* Nombre d'interruptions involontaires: %ld\0A\00"
@.str.11 = [66 x i8] c"* Nombre de fois que le CPU a \C3\A9t\C3\A9 lib\C3\A9r\C3\A9 volontairement: %ld\0A\00"
@.str.12 = [36 x i8] c"* Nombre de d\C3\A9fauts de pages: %ld\0A\00"
@.str.13 = [57 x i8] c"* Nombre de d\C3\A9fauts de pages satisfaits par cache: %ld\0A\00"
@str = [63 x i8] c"*************************STATISTIQUES*************************\00"
@str.15 = [63 x i8] c"**************************************************************\00"
@str.16 = [33 x i8] c"Aucun argument n'a \C3\A9t\C3\A9 pass\C3\A9.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.rusage
%4 = alloca %struct.timeval
%5 = alloca i32
%6 = bitcast %struct.rusage* %3 to i8*
%7 = bitcast %struct.timeval* %4 to i8*
%8 = add nsw i32 %0, 1
%9 = zext i32 %8 to i64
%10 = tail call i8* @llvm.stacksave()
%11 = alloca i8*, i64 %9
%12 = bitcast i8** %11 to i8*
%13 = icmp eq i32 %0, 1
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.16, i64 0, i64 0))
br label %75
16: ; preds = %2
%17 = call i32 @gettimeofday(%struct.timeval* %4, i32* null)
%18 = getelementptr inbounds %struct.timeval, %struct.timeval* %4, i64 0, i32 0
%19 = load i32, i32* %18
%20 = icmp sgt i32 %0, 1
br i1 %20, label %21, label %27
21: ; preds = %16
%22 = getelementptr i8*, i8** %1, i64 1
%23 = bitcast i8** %22 to i8*
%24 = add nsw i32 %0, -1
%25 = zext i32 %24 to i64
%26 = shl nuw nsw i64 %25, 3
br label %27
27: ; preds = %21, %16
%28 = sext i32 %0 to i64
%29 = getelementptr inbounds i8*, i8** %11, i64 %28
store i8* null, i8** %29
%30 = tail call i32 (...) @fork()
%31 = icmp slt i32 %30, 0
br i1 %31, label %32, label %37
32: ; preds = %27
%33 = load i32, i32* @errno
%34 = tail call i8* @strerror(i32 %33)
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %34)
%36 = tail call i32 @exit(i32 -1)
unreachable
37: ; preds = %27
%38 = icmp eq i32 %30, 0
br i1 %38, label %39, label %43
39: ; preds = %37
%40 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%41 = load i8*, i8** %11
%42 = call i32 @execvp(i8* %41, i8** %11)
br label %75
43: ; preds = %37
%44 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%45 = bitcast i32* %5 to i8*
%46 = call i32 @wait(i32* %5)
%47 = call i32 @gettimeofday(%struct.timeval* %4, i32* null)
%48 = load i32, i32* %18
%49 = load i32, i32* @RUSAGE_CHILDREN
%50 = call i32 @getrusage(i32 %49, %struct.rusage* %3)
%51 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str, i64 0, i64 0))
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i32 %30)
%53 = sub nsw i32 %48, %19
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.7, i64 0, i64 0), i32 %53)
%55 = getelementptr inbounds %struct.rusage, %struct.rusage* %3, i64 0, i32 5, i32 0
%56 = load i32, i32* %55
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.8, i64 0, i64 0), i32 %56)
%58 = getelementptr inbounds %struct.rusage, %struct.rusage* %3, i64 0, i32 4, i32 0
%59 = load i32, i32* %58
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0), i32 %59)
%61 = getelementptr inbounds %struct.rusage, %struct.rusage* %3, i64 0, i32 3
%62 = load i32, i32* %61
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.10, i64 0, i64 0), i32 %62)
%64 = getelementptr inbounds %struct.rusage, %struct.rusage* %3, i64 0, i32 2
%65 = load i32, i32* %64
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.11, i64 0, i64 0), i32 %65)
%67 = getelementptr inbounds %struct.rusage, %struct.rusage* %3, i64 0, i32 1
%68 = load i32, i32* %67
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0), i32 %68)
%70 = getelementptr inbounds %struct.rusage, %struct.rusage* %3, i64 0, i32 0
%71 = load i32, i32* %70
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0), i32 %71)
%73 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.15, i64 0, i64 0))
%74 = call i32 @exit(i32 0)
unreachable
75: ; preds = %39, %14
ret i32 0
}