#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 tms {
  int dummy;
};
typedef scalar_t__ pid_t;
typedef scalar_t__ clock_t;

/* Variables and functions */
int /*<<< orphan*/ SIGTERM;
int WEXITSTATUS(int);
int /*<<< orphan*/ _SC_CLK_TCK;
int /*<<< orphan*/ exit(int);
scalar_t__ fork();
int /*<<< orphan*/ kill(scalar_t__, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
double sysconf(int /*<<< orphan*/);
scalar_t__ times(struct tms *);
int /*<<< orphan*/ wait(int *);
int main(int argc, char **argv) {
  int estado, i, N = 2060000, busqueda = 1502340;
  int array[N];
  for (i = 0; i < N; i++) {
    array[i] = i;
  }
  struct tms buf;
  clock_t t1 = times(&buf);
  pid_t id = fork();
  if (id == 0) {
    for (i = 0; i < N / 2; i++) {
      if (array[i] == busqueda) {
        exit(10);
      }
    }
    exit(11);
  } else {
    pid_t id2 = fork();
    if (id2 == 0) {
      for (i = N / 2; i < N; i++) {
        if (array[i] == busqueda) {
          exit(12);
        }
      }
      exit(13);
    } else {
      wait(&estado);
      int terminado = WEXITSTATUS(estado);
      if (terminado == 10) {
        printf("Encontrado por el hijo 1\n");
        kill(id2, SIGTERM);
      } else if (terminado == 12) {
        printf("Encontrado por el hijo 2\n");
        kill(id, SIGTERM);
      }
      wait(&estado);
      printf("Terminado: %d\n", terminado);
    }
  }
  double tvalor1 = sysconf(_SC_CLK_TCK);
  clock_t t2 = times(&buf);
  double tiempo = (double)(t2 - t1) / tvalor1;
  printf("El tiempo total ha sido: %f\n", tiempo);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1f6ee0,-0x1c(%rbp)
movl   $0x16ec84,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x28(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x78(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    11fd <main+0x7d>
mov    -0x78(%rbp),%rax
mov    -0x18(%rbp),%edx
movslq -0x18(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11d5 <main+0x55>
lea    -0x38(%rbp),%rdi
call   1060 <times@plt>
mov    %rax,-0x40(%rbp)
mov    $0x0,%al
call   10a0 <fork@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
jne    1280 <main+0x100>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x1c(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x7c(%rbp),%eax
cmp    %ecx,%eax
jge    1276 <main+0xf6>
mov    -0x78(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x20(%rbp),%eax
jne    1263 <main+0xe3>
mov    $0xa,%edi
call   1080 <exit@plt>
jmp    1268 <main+0xe8>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1227 <main+0xa7>
mov    $0xb,%edi
call   1080 <exit@plt>
mov    $0x0,%al
call   10a0 <fork@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
jne    12eb <main+0x16b>
mov    -0x1c(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12e1 <main+0x161>
mov    -0x78(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x20(%rbp),%eax
jne    12ce <main+0x14e>
mov    $0xc,%edi
call   1080 <exit@plt>
jmp    12d3 <main+0x153>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12a4 <main+0x124>
mov    $0xd,%edi
call   1080 <exit@plt>
lea    -0x14(%rbp),%rdi
call   1090 <wait@plt>
mov    -0x14(%rbp),%edi
call   1050 <WEXITSTATUS@plt>
mov    %eax,-0x54(%rbp)
cmpl   $0xa,-0x54(%rbp)
jne    132e <main+0x1ae>
lea    0xcf0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x50(%rbp),%rdi
mov    0x2cc6(%rip),%rax
mov    (%rax),%esi
call   1040 <kill@plt>
jmp    135d <main+0x1dd>
cmpl   $0xc,-0x54(%rbp)
jne    1358 <main+0x1d8>
lea    0xcdb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x48(%rbp),%rdi
mov    0x2c97(%rip),%rax
mov    (%rax),%esi
call   1040 <kill@plt>
jmp    135d <main+0x1dd>
lea    -0x14(%rbp),%rdi
call   1090 <wait@plt>
mov    -0x54(%rbp),%esi
lea    0xcc4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    137c <main+0x1fc>
mov    0x2c55(%rip),%rax
mov    (%rax),%edi
call   1070 <sysconf@plt>
movsd  %xmm0,-0x60(%rbp)
lea    -0x38(%rbp),%rdi
call   1060 <times@plt>
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rax
sub    -0x40(%rbp),%rax
cvtsi2sd %rax,%xmm0
divsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
lea    0xc84(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x7dbba0,%rsp
mov    %rsp,%r12
movdqa 0xe56(%rip),%xmm0
mov    $0x24,%eax
movdqa 0xe58(%rip),%xmm8
movdqa 0xe5f(%rip),%xmm9
movdqa 0xe66(%rip),%xmm10
movdqa 0xe6d(%rip),%xmm11
movdqa 0xe74(%rip),%xmm12
movdqa 0xe7c(%rip),%xmm6
movdqa 0xe84(%rip),%xmm7
movdqa 0xe8c(%rip),%xmm1
movdqa 0xe94(%rip),%xmm2
movdqa 0xe9c(%rip),%xmm3
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movdqa %xmm0,%xmm4
paddd  %xmm8,%xmm4
movdqa %xmm0,-0x70(%rsp,%rax,4)
movdqa %xmm4,-0x60(%rsp,%rax,4)
movdqa %xmm0,%xmm4
paddd  %xmm9,%xmm4
movdqa %xmm0,%xmm5
paddd  %xmm10,%xmm5
movdqa %xmm4,-0x50(%rsp,%rax,4)
movdqa %xmm5,-0x40(%rsp,%rax,4)
movdqa %xmm0,%xmm4
paddd  %xmm11,%xmm4
movdqa %xmm0,%xmm5
paddd  %xmm12,%xmm5
movdqa %xmm4,-0x30(%rsp,%rax,4)
movdqa %xmm5,-0x20(%rsp,%rax,4)
movdqa %xmm0,%xmm4
paddd  %xmm6,%xmm4
movdqa %xmm0,%xmm5
paddd  %xmm7,%xmm5
movdqa %xmm4,-0x10(%rsp,%rax,4)
movdqa %xmm5,(%rsp,%rax,4)
movdqa %xmm0,%xmm4
paddd  %xmm1,%xmm4
movdqa %xmm0,%xmm5
paddd  %xmm2,%xmm5
movdqa %xmm4,0x10(%rsp,%rax,4)
movdqa %xmm5,0x20(%rsp,%rax,4)
paddd  %xmm3,%xmm0
add    $0x28,%rax
cmp    $0x1f6f04,%rax
jne    1210 <main+0x80>
lea    0x10(%rsp),%rdi
call   1070 <times@plt>
mov    %rax,%r14
xor    %eax,%eax
call   10b0 <fork@plt>
test   %rax,%rax
je     1393 <main+0x203>
mov    %rax,%r15
xor    %eax,%eax
call   10b0 <fork@plt>
test   %rax,%rax
je     13ec <main+0x25c>
mov    %rax,%rbx
lea    0xc(%rsp),%rdi
call   10a0 <wait@plt>
mov    0xc(%rsp),%edi
call   1060 <WEXITSTATUS@plt>
mov    %eax,%ebp
cmp    $0xa,%eax
je     130a <main+0x17a>
cmp    $0xc,%ebp
jne    1327 <main+0x197>
lea    0xdd7(%rip),%rdi
mov    %r15,%rbx
jmp    1311 <main+0x181>
lea    0xde4(%rip),%rdi
call   1030 <puts@plt>
mov    0x2ccb(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1050 <kill@plt>
lea    0xc(%rsp),%rdi
call   10a0 <wait@plt>
lea    0xd78(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2c90(%rip),%rax
mov    (%rax),%edi
call   1080 <sysconf@plt>
movq   %xmm0,0x18(%rsp)
lea    0x10(%rsp),%rdi
call   1070 <times@plt>
sub    %r14,%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  0x18(%rsp),%xmm0
lea    0xd48(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %r12,%rsp
xor    %eax,%eax
add    $0x7dbba0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x4,%eax
cmpl   $0x16ec84,0x10(%rsp,%rax,4)
je     1445 <main+0x2b5>
cmpl   $0x16ec84,0x14(%rsp,%rax,4)
je     1445 <main+0x2b5>
cmpl   $0x16ec84,0x18(%rsp,%rax,4)
je     1445 <main+0x2b5>
cmpl   $0x16ec84,0x1c(%rsp,%rax,4)
je     1445 <main+0x2b5>
cmpl   $0x16ec84,0x20(%rsp,%rax,4)
je     1445 <main+0x2b5>
add    $0x5,%rax
cmp    $0xfb774,%rax
jne    1398 <main+0x208>
mov    $0xb,%edi
call   1090 <exit@plt>
xor    %eax,%eax
cmpl   $0x16ec84,0x3edde0(%rsp,%rax,4)
je     144f <main+0x2bf>
cmpl   $0x16ec84,0x3edde4(%rsp,%rax,4)
je     144f <main+0x2bf>
cmpl   $0x16ec84,0x3edde8(%rsp,%rax,4)
je     144f <main+0x2bf>
cmpl   $0x16ec84,0x3eddec(%rsp,%rax,4)
je     144f <main+0x2bf>
cmpl   $0x16ec84,0x3eddf0(%rsp,%rax,4)
je     144f <main+0x2bf>
add    $0x5,%rax
cmp    $0xfb770,%rax
jne    13ee <main+0x25e>
mov    $0xd,%edi
call   1090 <exit@plt>
mov    $0xa,%edi
call   1090 <exit@plt>
mov    $0xc,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
%struct.tms = type { i32 }
@.str = [26 x i8] c"Encontrado por el hijo 1\0A\00"
@SIGTERM = global i32 0
@.str.1 = [26 x i8] c"Encontrado por el hijo 2\0A\00"
@.str.2 = [15 x i8] c"Terminado: %d\0A\00"
@_SC_CLK_TCK = global i32 0
@.str.3 = [29 x i8] c"El tiempo total ha sido: %f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i64
%12 = alloca %struct.tms
%13 = alloca i64
%14 = alloca i64
%15 = alloca i64
%16 = alloca i32
%17 = alloca double
%18 = alloca i64
%19 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 2060000, i32* %8
store i32 1502340, i32* %9
%20 = load i32, i32* %8
%21 = zext i32 %20 to i64
%22 = call i8* @llvm.stacksave()
store i8* %22, i8** %10
%23 = alloca i32, i64 %21
store i64 %21, i64* %11
store i32 0, i32* %7
br label %24
24: ; preds = %33, %2
%25 = load i32, i32* %7
%26 = load i32, i32* %8
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %36
28: ; preds = %24
%29 = load i32, i32* %7
%30 = load i32, i32* %7
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, i32* %23, i64 %31
store i32 %29, i32* %32
br label %33
33: ; preds = %28
%34 = load i32, i32* %7
%35 = add nsw i32 %34, 1
store i32 %35, i32* %7
br label %24
36: ; preds = %24
%37 = call i64 @times(%struct.tms* %12)
store i64 %37, i64* %13
%38 = call i64 (...) @fork()
store i64 %38, i64* %14
%39 = load i64, i64* %14
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %62
41: ; preds = %36
store i32 0, i32* %7
br label %42
42: ; preds = %57, %41
%43 = load i32, i32* %7
%44 = load i32, i32* %8
%45 = sdiv i32 %44, 2
%46 = icmp slt i32 %43, %45
br i1 %46, label %47, label %60
47: ; preds = %42
%48 = load i32, i32* %7
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, i32* %23, i64 %49
%51 = load i32, i32* %50
%52 = load i32, i32* %9
%53 = icmp eq i32 %51, %52
br i1 %53, label %54, label %56
54: ; preds = %47
%55 = call i32 @exit(i32 10)
unreachable
56: ; preds = %47
br label %57
57: ; preds = %56
%58 = load i32, i32* %7
%59 = add nsw i32 %58, 1
store i32 %59, i32* %7
br label %42
60: ; preds = %42
%61 = call i32 @exit(i32 11)
unreachable
62: ; preds = %36
%63 = call i64 (...) @fork()
store i64 %63, i64* %15
%64 = load i64, i64* %15
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %88
66: ; preds = %62
%67 = load i32, i32* %8
%68 = sdiv i32 %67, 2
store i32 %68, i32* %7
br label %69
69: ; preds = %83, %66
%70 = load i32, i32* %7
%71 = load i32, i32* %8
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %86
73: ; preds = %69
%74 = load i32, i32* %7
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, i32* %23, i64 %75
%77 = load i32, i32* %76
%78 = load i32, i32* %9
%79 = icmp eq i32 %77, %78
br i1 %79, label %80, label %82
80: ; preds = %73
%81 = call i32 @exit(i32 12)
unreachable
82: ; preds = %73
br label %83
83: ; preds = %82
%84 = load i32, i32* %7
%85 = add nsw i32 %84, 1
store i32 %85, i32* %7
br label %69
86: ; preds = %69
%87 = call i32 @exit(i32 13)
unreachable
88: ; preds = %62
%89 = call i32 @wait(i32* %6)
%90 = load i32, i32* %6
%91 = call i32 @WEXITSTATUS(i32 %90)
store i32 %91, i32* %16
%92 = load i32, i32* %16
%93 = icmp eq i32 %92, 10
br i1 %93, label %94, label %99
94: ; preds = %88
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%96 = load i64, i64* %15
%97 = load i32, i32* @SIGTERM
%98 = call i32 @kill(i64 %96, i32 %97)
br label %108
99: ; preds = %88
%100 = load i32, i32* %16
%101 = icmp eq i32 %100, 12
br i1 %101, label %102, label %107
102: ; preds = %99
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%104 = load i64, i64* %14
%105 = load i32, i32* @SIGTERM
%106 = call i32 @kill(i64 %104, i32 %105)
br label %107
107: ; preds = %102, %99
br label %108
108: ; preds = %107, %94
%109 = call i32 @wait(i32* %6)
%110 = load i32, i32* %16
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %110)
br label %112
112: ; preds = %108
br label %113
113: ; preds = %112
%114 = load i32, i32* @_SC_CLK_TCK
%115 = call double @sysconf(i32 %114)
store double %115, double* %17
%116 = call i64 @times(%struct.tms* %12)
store i64 %116, i64* %18
%117 = load i64, i64* %18
%118 = load i64, i64* %13
%119 = sub nsw i64 %117, %118
%120 = sitofp i64 %119 to double
%121 = load double, double* %17
%122 = fdiv double %120, %121
store double %122, double* %19
%123 = load double, double* %19
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), double %123)
store i32 0, i32* %3
%125 = load i8*, i8** %10
%126 = load i32, i32* %3
ret i32 %126
}

LLVM IR (-O2):
%struct.tms = type { i32 }
@SIGTERM = global i32 0
@.str.2 = [15 x i8] c"Terminado: %d\0A\00"
@_SC_CLK_TCK = global i32 0
@.str.3 = [29 x i8] c"El tiempo total ha sido: %f\0A\00"
@str = [25 x i8] c"Encontrado por el hijo 2\00"
@str.4 = [25 x i8] c"Encontrado por el hijo 1\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca %struct.tms
%5 = bitcast i32* %3 to i8*
%6 = tail call i8* @llvm.stacksave()
%7 = alloca [2060000 x i32]
br label %8
8: ; preds = %8, %2
%9 = phi i64 [ 0, %2 ], [ %44, %8 ]
%10 = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %2 ], [ %45, %8 ]
%11 = add <4 x i32> %10, <i32 4, i32 4, i32 4, i32 4>
%12 = getelementptr inbounds [2060000 x i32], [2060000 x i32]* %7, i64 0, i64 %9
%13 = bitcast i32* %12 to <4 x i32>*
store <4 x i32> %10, <4 x i32>* %13
%14 = getelementptr inbounds i32, i32* %12, i64 4
%15 = bitcast i32* %14 to <4 x i32>*
store <4 x i32> %11, <4 x i32>* %15
%16 = add nuw nsw i64 %9, 8
%17 = add <4 x i32> %10, <i32 8, i32 8, i32 8, i32 8>
%18 = add <4 x i32> %10, <i32 12, i32 12, i32 12, i32 12>
%19 = getelementptr inbounds [2060000 x i32], [2060000 x i32]* %7, i64 0, i64 %16
%20 = bitcast i32* %19 to <4 x i32>*
store <4 x i32> %17, <4 x i32>* %20
%21 = getelementptr inbounds i32, i32* %19, i64 4
%22 = bitcast i32* %21 to <4 x i32>*
store <4 x i32> %18, <4 x i32>* %22
%23 = add nuw nsw i64 %9, 16
%24 = add <4 x i32> %10, <i32 16, i32 16, i32 16, i32 16>
%25 = add <4 x i32> %10, <i32 20, i32 20, i32 20, i32 20>
%26 = getelementptr inbounds [2060000 x i32], [2060000 x i32]* %7, i64 0, i64 %23
%27 = bitcast i32* %26 to <4 x i32>*
store <4 x i32> %24, <4 x i32>* %27
%28 = getelementptr inbounds i32, i32* %26, i64 4
%29 = bitcast i32* %28 to <4 x i32>*
store <4 x i32> %25, <4 x i32>* %29
%30 = add nuw nsw i64 %9, 24
%31 = add <4 x i32> %10, <i32 24, i32 24, i32 24, i32 24>
%32 = add <4 x i32> %10, <i32 28, i32 28, i32 28, i32 28>
%33 = getelementptr inbounds [2060000 x i32], [2060000 x i32]* %7, i64 0, i64 %30
%34 = bitcast i32* %33 to <4 x i32>*
store <4 x i32> %31, <4 x i32>* %34
%35 = getelementptr inbounds i32, i32* %33, i64 4
%36 = bitcast i32* %35 to <4 x i32>*
store <4 x i32> %32, <4 x i32>* %36
%37 = add nuw nsw i64 %9, 32
%38 = add <4 x i32> %10, <i32 32, i32 32, i32 32, i32 32>
%39 = add <4 x i32> %10, <i32 36, i32 36, i32 36, i32 36>
%40 = getelementptr inbounds [2060000 x i32], [2060000 x i32]* %7, i64 0, i64 %37
%41 = bitcast i32* %40 to <4 x i32>*
store <4 x i32> %38, <4 x i32>* %41
%42 = getelementptr inbounds i32, i32* %40, i64 4
%43 = bitcast i32* %42 to <4 x i32>*
store <4 x i32> %39, <4 x i32>* %43
%44 = add nuw nsw i64 %9, 40
%45 = add <4 x i32> %10, <i32 40, i32 40, i32 40, i32 40>
%46 = icmp eq i64 %44, 2060000
br i1 %46, label %47, label %8
47: ; preds = %8
%48 = bitcast %struct.tms* %4 to i8*
%49 = call i64 @times(%struct.tms* %4)
%50 = tail call i64 (...) @fork()
%51 = icmp eq i64 %50, 0
br i1 %51, label %75, label %84
52: ; preds = %75
%53 = add nuw nsw i64 %76, 1
%54 = getelementptr inbounds [2060000 x i32], [2060000 x i32]* %7, i64 0, i64 %53
%55 = load i32, i32* %54
%56 = icmp eq i32 %55, 1502340
br i1 %56, label %80, label %57
57: ; preds = %52
%58 = add nuw nsw i64 %76, 2
%59 = getelementptr inbounds [2060000 x i32], [2060000 x i32]* %7, i64 0, i64 %58
%60 = load i32, i32* %59
%61 = icmp eq i32 %60, 1502340
br i1 %61, label %80, label %62
62: ; preds = %57
%63 = add nuw nsw i64 %76, 3
%64 = getelementptr inbounds [2060000 x i32], [2060000 x i32]* %7, i64 0, i64 %63
%65 = load i32, i32* %64
%66 = icmp eq i32 %65, 1502340
br i1 %66, label %80, label %67
67: ; preds = %62
%68 = add nuw nsw i64 %76, 4
%69 = getelementptr inbounds [2060000 x i32], [2060000 x i32]* %7, i64 0, i64 %68
%70 = load i32, i32* %69
%71 = icmp eq i32 %70, 1502340
br i1 %71, label %80, label %72
72: ; preds = %67
%73 = add nuw nsw i64 %76, 5
%74 = icmp eq i64 %73, 1030000
br i1 %74, label %82, label %75
75: ; preds = %47, %72
%76 = phi i64 [ %73, %72 ], [ 0, %47 ]
%77 = getelementptr inbounds [2060000 x i32], [2060000 x i32]* %7, i64 0, i64 %76
%78 = load i32, i32* %77
%79 = icmp eq i32 %78, 1502340
br i1 %79, label %80, label %52
80: ; preds = %67, %62, %57, %52, %75
%81 = tail call i32 @exit(i32 10)
unreachable
82: ; preds = %72
%83 = tail call i32 @exit(i32 11)
unreachable
84: ; preds = %47
%85 = tail call i64 (...) @fork()
%86 = icmp eq i64 %85, 0
br i1 %86, label %110, label %119
87: ; preds = %110
%88 = add nuw nsw i64 %111, 1
%89 = getelementptr inbounds [2060000 x i32], [2060000 x i32]* %7, i64 0, i64 %88
%90 = load i32, i32* %89
%91 = icmp eq i32 %90, 1502340
br i1 %91, label %115, label %92
92: ; preds = %87
%93 = add nuw nsw i64 %111, 2
%94 = getelementptr inbounds [2060000 x i32], [2060000 x i32]* %7, i64 0, i64 %93
%95 = load i32, i32* %94
%96 = icmp eq i32 %95, 1502340
br i1 %96, label %115, label %97
97: ; preds = %92
%98 = add nuw nsw i64 %111, 3
%99 = getelementptr inbounds [2060000 x i32], [2060000 x i32]* %7, i64 0, i64 %98
%100 = load i32, i32* %99
%101 = icmp eq i32 %100, 1502340
br i1 %101, label %115, label %102
102: ; preds = %97
%103 = add nuw nsw i64 %111, 4
%104 = getelementptr inbounds [2060000 x i32], [2060000 x i32]* %7, i64 0, i64 %103
%105 = load i32, i32* %104
%106 = icmp eq i32 %105, 1502340
br i1 %106, label %115, label %107
107: ; preds = %102
%108 = add nuw nsw i64 %111, 5
%109 = icmp eq i64 %108, 2060000
br i1 %109, label %117, label %110
110: ; preds = %84, %107
%111 = phi i64 [ %108, %107 ], [ 1030000, %84 ]
%112 = getelementptr inbounds [2060000 x i32], [2060000 x i32]* %7, i64 0, i64 %111
%113 = load i32, i32* %112
%114 = icmp eq i32 %113, 1502340
br i1 %114, label %115, label %87
115: ; preds = %102, %97, %92, %87, %110
%116 = tail call i32 @exit(i32 12)
unreachable
117: ; preds = %107
%118 = tail call i32 @exit(i32 13)
unreachable
119: ; preds = %84
%120 = call i32 @wait(i32* %3)
%121 = load i32, i32* %3
%122 = call i32 @WEXITSTATUS(i32 %121)
switch i32 %122, label %130 [
i32 10, label %124
i32 12, label %123
]
123: ; preds = %119
br label %124
124: ; preds = %119, %123
%125 = phi i8* [ getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0), %123 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @str.4, i64 0, i64 0), %119 ]
%126 = phi i64 [ %50, %123 ], [ %85, %119 ]
%127 = call i32 @puts(i8* dereferenceable(1) %125)
%128 = load i32, i32* @SIGTERM
%129 = call i32 @kill(i64 %126, i32 %128)
br label %130
130: ; preds = %124, %119
%131 = call i32 @wait(i32* %3)
%132 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %122)
%133 = load i32, i32* @_SC_CLK_TCK
%134 = call double @sysconf(i32 %133)
%135 = call i64 @times(%struct.tms* %4)
%136 = sub nsw i64 %135, %49
%137 = sitofp i64 %136 to double
%138 = fdiv double %137, %134
%139 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), double %138)
ret i32 0
}