#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;

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ execl(char *, char *, char *, char *, char *, char *,
                         char *);
int /*<<< orphan*/ exit(int);
int fork();
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ sprintf(char *, char *, int);
int sscanf(char *, char *, int *);
int /*<<< orphan*/ wait(int);
int main(int argc, char *argv[]) {
  pid_t p;
  int n, x, y, t, i;
  char cNumber[10];
  n = 4;
  if (argc != 4) {
    printf(
        "\n USAGE: Please enter three numbers, the second should be nonzero, "
        "and the third, must be greater than zero, and less than 50 \n");
    exit(1);
  }
  int count;
  for (count = 1; count < 4; count++) {
    int value;
    if (sscanf(argv[count], "%d", &value) != 1) {
      printf(
          "\n USAGE: Please enter three numbers, the second should be nonzero, "
          "and the third, must be greater than zero, and less than 50 \n");
      exit(1);
    }
  }
  if (atoi(argv[3]) < 1 || atoi(argv[3]) > 50) {
    printf(
        "\n USAGE: Please enter three numbers, the second should be nonzero, "
        "and the third, must be greater than zero, and less than 50 \n");
    exit(1);
  }
  x = atoi(argv[1]);
  y = atoi(argv[2]);
  t = atoi(argv[3]);
  printf("\nI am the parent process, the max sleep time is %d and the two "
         "numbers are %d and %d\n",
         t, x, y);
  for (i = 0; i < n; i++) {
    sprintf(cNumber, "%d", i);
    switch (p = fork()) {
    case 0:
      execl("./child", "child", cNumber, argv[1], argv[2], argv[3], (char *)0);
      perror("Exec failure");
      return (1);
    case -1:
      perror("Fork failure!");
      return (2);
    default:
      sleep(2);
      printf("\nForked child %d\n", p);
    }
  }
  wait(p);
  exit(1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x4,-0x18(%rbp)
cmpl   $0x4,-0x8(%rbp)
je     11df <main+0x3f>
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
movl   $0x1,-0x38(%rbp)
cmpl   $0x4,-0x38(%rbp)
jge    1240 <main+0xa0>
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe7d(%rip),%rsi
lea    -0x3c(%rbp),%rdx
call   1040 <sscanf@plt>
cmp    $0x1,%eax
je     122d <main+0x8d>
lea    0xde4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
jmp    1232 <main+0x92>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11e6 <main+0x46>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1060 <atoi@plt>
cmp    $0x1,%eax
jl     126c <main+0xcc>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1060 <atoi@plt>
cmp    $0x32,%eax
jle    1284 <main+0xe4>
lea    0xd8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <atoi@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1060 <atoi@plt>
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1060 <atoi@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xdbf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    13b5 <main+0x215>
mov    -0x28(%rbp),%edx
lea    0xd98(%rip),%rsi
lea    -0x32(%rbp),%rdi
call   1070 <sprintf@plt>
xor    %eax,%eax
call   10c0 <fork@plt>
mov    %eax,-0x14(%rbp)
mov    %eax,%ecx
mov    %ecx,-0x40(%rbp)
sub    $0xffffffff,%eax
je     136f <main+0x1cf>
jmp    130e <main+0x16e>
mov    -0x40(%rbp),%eax
test   %eax,%eax
jne    1387 <main+0x1e7>
jmp    131e <main+0x17e>
lea    -0x32(%rbp),%rdx
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rcx
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%r8
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%r9
lea    0xd98(%rip),%rdi
lea    0xd93(%rip),%rsi
xor    %eax,%eax
movq   $0x0,(%rsp)
call   1090 <execl@plt>
lea    0xd83(%rip),%rdi
call   1050 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    13c7 <main+0x227>
lea    0xd78(%rip),%rdi
call   1050 <perror@plt>
movl   $0x2,-0x4(%rbp)
jmp    13c7 <main+0x227>
mov    $0x2,%edi
call   10a0 <sleep@plt>
mov    -0x14(%rbp),%esi
lea    0xd61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13a7 <main+0x207>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    12d2 <main+0x132>
mov    -0x14(%rbp),%edi
call   10b0 <wait@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
cmp    $0x4,%edi
jne    13d7 <main+0x227>
mov    %rsi,%r13
mov    0x8(%rsi),%rdi
lea    0xe2b(%rip),%rsi
lea    0x8(%rsp),%rdx
call   1050 <sscanf@plt>
cmp    $0x1,%eax
jne    13d7 <main+0x227>
mov    0x10(%r13),%rdi
lea    0xe0d(%rip),%rsi
lea    0x8(%rsp),%rdx
call   1050 <sscanf@plt>
cmp    $0x1,%eax
jne    13d7 <main+0x227>
mov    0x18(%r13),%rdi
lea    0xdef(%rip),%rsi
lea    0x8(%rsp),%rdx
call   1050 <sscanf@plt>
cmp    $0x1,%eax
jne    13d7 <main+0x227>
mov    0x18(%r13),%rdi
call   1070 <atoi@plt>
mov    %eax,%ebp
lea    -0x33(%rbp),%eax
cmp    $0xffffffcd,%eax
jbe    13d7 <main+0x227>
mov    0x8(%r13),%rdi
call   1070 <atoi@plt>
mov    %eax,%ebx
mov    0x10(%r13),%rdi
call   1070 <atoi@plt>
lea    0xdad(%rip),%rdi
mov    %ebp,%esi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd96(%rip),%rsi
lea    0xe(%rsp),%rdi
xor    %edx,%edx
call   1080 <sprintf@plt>
xor    %eax,%eax
call   10d0 <fork@plt>
lea    0xdea(%rip),%r14
cmp    $0xffffffff,%eax
je     13b7 <main+0x207>
mov    %eax,%ebp
test   %eax,%eax
je     137c <main+0x1cc>
mov    $0x2,%r12d
mov    $0x2,%edi
call   10b0 <sleep@plt>
lea    0xdce(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd42(%rip),%rsi
lea    0xe(%rsp),%rdi
mov    $0x1,%edx
call   1080 <sprintf@plt>
xor    %eax,%eax
call   10d0 <fork@plt>
cmp    $0xffffffff,%eax
je     13bd <main+0x20d>
mov    %eax,%ebp
test   %eax,%eax
je     137c <main+0x1cc>
mov    $0x2,%r12d
mov    $0x2,%edi
call   10b0 <sleep@plt>
lea    0xd7e(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xcf2(%rip),%rsi
lea    0xe(%rsp),%rdi
mov    $0x2,%edx
call   1080 <sprintf@plt>
xor    %eax,%eax
call   10d0 <fork@plt>
cmp    $0xffffffff,%eax
je     13bd <main+0x20d>
mov    %eax,%ebp
test   %eax,%eax
je     137c <main+0x1cc>
mov    $0x2,%r12d
mov    $0x2,%edi
call   10b0 <sleep@plt>
lea    0xd32(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xca6(%rip),%rsi
lea    0xe(%rsp),%rdi
mov    $0x3,%edx
call   1080 <sprintf@plt>
xor    %eax,%eax
call   10d0 <fork@plt>
cmp    $0xffffffff,%eax
je     13bd <main+0x20d>
mov    %eax,%r15d
test   %eax,%eax
jne    13ed <main+0x23d>
mov    0x8(%r13),%rcx
mov    0x10(%r13),%r8
mov    0x18(%r13),%r9
movq   $0x0,(%rsp)
lea    0xcc2(%rip),%rdi
lea    0xcbd(%rip),%rsi
lea    0xe(%rsp),%rdx
call   10a0 <execl@plt>
mov    $0x1,%r12d
lea    0xcac(%rip),%r14
jmp    13bd <main+0x20d>
mov    $0x2,%r12d
mov    %r14,%rdi
call   1060 <perror@plt>
mov    %r12d,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcb0(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    $0x2,%edi
call   10b0 <sleep@plt>
lea    0xc7e(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15d,%edi
call   10c0 <wait@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [128 x i8] c"\0A USAGE: Please enter three numbers, the second should be nonzero, and the third, must be greater than zero, and less than 50 \0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [86 x i8] c"\0AI am the parent process, the max sleep time is %d and the two numbers are %d and %d\0A\00"
@.str.3 = [8 x i8] c"./child\00"
@.str.4 = [6 x i8] c"child\00"
@.str.5 = [13 x i8] c"Exec failure\00"
@.str.6 = [14 x i8] c"Fork failure!\00"
@.str.7 = [18 x i8] c"\0AForked child %d\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 i32
%11 = alloca i32
%12 = alloca [10 x i8]
%13 = alloca i32
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 4, i32* %7
%15 = load i32, i32* %4
%16 = icmp ne i32 %15, 4
br i1 %16, label %17, label %20
17: ; preds = %2
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0))
%19 = call i32 @exit(i32 1)
unreachable
20: ; preds = %2
store i32 1, i32* %13
br label %21
21: ; preds = %36, %20
%22 = load i32, i32* %13
%23 = icmp slt i32 %22, 4
br i1 %23, label %24, label %39
24: ; preds = %21
%25 = load i8**, i8*** %5
%26 = load i32, i32* %13
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8*, i8** %25, i64 %27
%29 = load i8*, i8** %28
%30 = call i32 @sscanf(i8* %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %14)
%31 = icmp ne i32 %30, 1
br i1 %31, label %32, label %35
32: ; preds = %24
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0))
%34 = call i32 @exit(i32 1)
unreachable
35: ; preds = %24
br label %36
36: ; preds = %35
%37 = load i32, i32* %13
%38 = add nsw i32 %37, 1
store i32 %38, i32* %13
br label %21
39: ; preds = %21
%40 = load i8**, i8*** %5
%41 = getelementptr inbounds i8*, i8** %40, i64 3
%42 = load i8*, i8** %41
%43 = call i32 @atoi(i8* %42)
%44 = icmp slt i32 %43, 1
br i1 %44, label %51, label %45
45: ; preds = %39
%46 = load i8**, i8*** %5
%47 = getelementptr inbounds i8*, i8** %46, i64 3
%48 = load i8*, i8** %47
%49 = call i32 @atoi(i8* %48)
%50 = icmp sgt i32 %49, 50
br i1 %50, label %51, label %54
51: ; preds = %45, %39
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0))
%53 = call i32 @exit(i32 1)
unreachable
54: ; preds = %45
%55 = load i8**, i8*** %5
%56 = getelementptr inbounds i8*, i8** %55, i64 1
%57 = load i8*, i8** %56
%58 = call i32 @atoi(i8* %57)
store i32 %58, i32* %8
%59 = load i8**, i8*** %5
%60 = getelementptr inbounds i8*, i8** %59, i64 2
%61 = load i8*, i8** %60
%62 = call i32 @atoi(i8* %61)
store i32 %62, i32* %9
%63 = load i8**, i8*** %5
%64 = getelementptr inbounds i8*, i8** %63, i64 3
%65 = load i8*, i8** %64
%66 = call i32 @atoi(i8* %65)
store i32 %66, i32* %10
%67 = load i32, i32* %10
%68 = load i32, i32* %8
%69 = load i32, i32* %9
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.2, i64 0, i64 0), i32 %67, i32 %68, i32 %69)
store i32 0, i32* %11
br label %71
71: ; preds = %100, %54
%72 = load i32, i32* %11
%73 = load i32, i32* %7
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %103
75: ; preds = %71
%76 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%77 = load i32, i32* %11
%78 = call i32 @sprintf(i8* %76, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %77)
%79 = call i32 (...) @fork()
store i32 %79, i32* %6
switch i32 %79, label %95 [
i32 0, label %80
i32 -1, label %93
]
80: ; preds = %75
%81 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%82 = load i8**, i8*** %5
%83 = getelementptr inbounds i8*, i8** %82, i64 1
%84 = load i8*, i8** %83
%85 = load i8**, i8*** %5
%86 = getelementptr inbounds i8*, i8** %85, i64 2
%87 = load i8*, i8** %86
%88 = load i8**, i8*** %5
%89 = getelementptr inbounds i8*, i8** %88, i64 3
%90 = load i8*, i8** %89
%91 = call i32 @execl(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %81, i8* %84, i8* %87, i8* %90, i8* null)
%92 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
store i32 1, i32* %3
br label %107
93: ; preds = %75
%94 = call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
store i32 2, i32* %3
br label %107
95: ; preds = %75
%96 = call i32 @sleep(i32 2)
%97 = load i32, i32* %6
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i32 %97)
br label %99
99: ; preds = %95
br label %100
100: ; preds = %99
%101 = load i32, i32* %11
%102 = add nsw i32 %101, 1
store i32 %102, i32* %11
br label %71
103: ; preds = %71
%104 = load i32, i32* %6
%105 = call i32 @wait(i32 %104)
%106 = call i32 @exit(i32 1)
unreachable
107: ; preds = %93, %80
%108 = load i32, i32* %3
ret i32 %108
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [86 x i8] c"\0AI am the parent process, the max sleep time is %d and the two numbers are %d and %d\0A\00"
@.str.3 = [8 x i8] c"./child\00"
@.str.4 = [6 x i8] c"child\00"
@.str.5 = [13 x i8] c"Exec failure\00"
@.str.6 = [14 x i8] c"Fork failure!\00"
@.str.7 = [18 x i8] c"\0AForked child %d\0A\00"
@str.9 = [127 x i8] c"\0A USAGE: Please enter three numbers, the second should be nonzero, and the third, must be greater than zero, and less than 50 \00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [10 x i8]
%4 = alloca i32
%5 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%6 = icmp eq i32 %0, 4
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = bitcast i32* %4 to i8*
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = call i32 @sscanf(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%12 = icmp eq i32 %11, 1
br i1 %12, label %19, label %16
13: ; preds = %2
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([127 x i8], [127 x i8]* @str.9, i64 0, i64 0))
%15 = tail call i32 @exit(i32 1)
unreachable
16: ; preds = %24, %19, %7
%17 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([127 x i8], [127 x i8]* @str.9, i64 0, i64 0))
%18 = call i32 @exit(i32 1)
unreachable
19: ; preds = %7
%20 = getelementptr inbounds i8*, i8** %1, i64 2
%21 = load i8*, i8** %20
%22 = call i32 @sscanf(i8* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%23 = icmp eq i32 %22, 1
br i1 %23, label %24, label %16
24: ; preds = %19
%25 = getelementptr inbounds i8*, i8** %1, i64 3
%26 = load i8*, i8** %25
%27 = call i32 @sscanf(i8* %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%28 = icmp eq i32 %27, 1
br i1 %28, label %29, label %16
29: ; preds = %24
%30 = load i8*, i8** %25
%31 = call i32 @atoi(i8* %30)
%32 = add i32 %31, -51
%33 = icmp ult i32 %32, -50
br i1 %33, label %34, label %37
34: ; preds = %29
%35 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([127 x i8], [127 x i8]* @str.9, i64 0, i64 0))
%36 = call i32 @exit(i32 1)
unreachable
37: ; preds = %29
%38 = load i8*, i8** %9
%39 = call i32 @atoi(i8* %38)
%40 = load i8*, i8** %20
%41 = call i32 @atoi(i8* %40)
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @.str.2, i64 0, i64 0), i32 %31, i32 %39, i32 %41)
%43 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 0)
%44 = call i32 (...) @fork()
switch i32 %44, label %50 [
i32 0, label %45
i32 -1, label %70
]
45: ; preds = %60, %55, %50, %37
%46 = load i8*, i8** %9
%47 = load i8*, i8** %20
%48 = load i8*, i8** %25
%49 = call i32 @execl(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %5, i8* %46, i8* %47, i8* %48, i8* null)
br label %70
50: ; preds = %37
%51 = call i32 @sleep(i32 2)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i32 %44)
%53 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 1)
%54 = call i32 (...) @fork()
switch i32 %54, label %55 [
i32 0, label %45
i32 -1, label %70
]
55: ; preds = %50
%56 = call i32 @sleep(i32 2)
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i32 %54)
%58 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 2)
%59 = call i32 (...) @fork()
switch i32 %59, label %60 [
i32 0, label %45
i32 -1, label %70
]
60: ; preds = %55
%61 = call i32 @sleep(i32 2)
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i32 %59)
%63 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 3)
%64 = call i32 (...) @fork()
switch i32 %64, label %65 [
i32 0, label %45
i32 -1, label %70
]
65: ; preds = %60
%66 = call i32 @sleep(i32 2)
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i32 %64)
%68 = call i32 @wait(i32 %64)
%69 = call i32 @exit(i32 1)
unreachable
70: ; preds = %37, %50, %55, %60, %45
%71 = phi i8* [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), %45 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), %60 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), %55 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), %50 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), %37 ]
%72 = phi i32 [ 1, %45 ], [ 2, %60 ], [ 2, %55 ], [ 2, %50 ], [ 2, %37 ]
%73 = call i32 @perror(i8* %71)
ret i32 %72
}