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

/* Variables and functions */
int /*<<< orphan*/ SIGCONT;
int /*<<< orphan*/ SIGSTOP;
int /*<<< orphan*/ WCONTINUED;
scalar_t__ WIFCONTINUED(int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ kill(scalar_t__, int /*<<< orphan*/);
scalar_t__ pipe(int *);
int read(int, char *, int);
int /*<<< orphan*/ test_daemon();
scalar_t__ test_fork_id(int);
int /*<<< orphan*/ test_init(int, char **);
int /*<<< orphan*/ test_msg(char *, ...);
int /*<<< orphan*/ test_waitsig();
int waitpid(scalar_t__, int *, int /*<<< orphan*/);
int /*<<< orphan*/ write(int, char *, int);
int main(int argc, char **argv) {
  pid_t pid;
  int p[2], ret, status;
  test_init(argc, argv);
  if (pipe(p)) {
    test_msg("ERR: %s:%d: "
             "Unable to create pipe"
             " (errno = %d (%m))\n",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/kawamuray/criu/refs/heads/master/test/"
             "zdtm/live/static/stopped.c",
             19, errno);
    return 1;
  }
  pid = test_fork_id(-1);
  if (pid < 0)
    return -1;
  else if (pid == 0) {
    char c;
    close(p[1]);
    ret = read(p[0], &c, 1);
    if (ret != 1) {
      test_msg("ERR: %s:%d: "
               "Unable to read: %d"
               " (errno = %d (%m))\n",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/kawamuray/criu/refs/heads/"
               "master/test/zdtm/live/static/stopped.c",
               32, ret, errno);
      return 1;
    }
    ret = read(p[0], &c, 1);
    if (ret != 0) {
      test_msg("ERR: %s:%d: "
               "Unable to read: %d"
               " (errno = %d (%m))\n",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/kawamuray/criu/refs/heads/"
               "master/test/zdtm/live/static/stopped.c",
               38, ret, errno);
      return 1;
    }
    return 0;
  }
  close(p[0]);
  kill(pid, SIGSTOP);
  write(p[1], "0", 1);
  test_daemon();
  test_waitsig();
  kill(pid, SIGCONT);
  if (waitpid(pid, &status, WCONTINUED) == -1) {
    test_msg("ERR: %s:%d: "
             "Unable to wait child"
             " (errno = %d (%m))\n",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/kawamuray/criu/refs/heads/master/test/"
             "zdtm/live/static/stopped.c",
             54, errno);
    goto out;
  }
  if (WIFCONTINUED(status))
    test_msg("PASS\n");
  else
    test_msg("FAIL: %s:%d: "
             "The process doesn't continue"
             " (errno = %d (%m))\n",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/kawamuray/criu/refs/heads/master/test/"
             "zdtm/live/static/stopped.c",
             61, errno);
out:
  close(p[1]);
  waitpid(pid, &status, 0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <test_init@plt>
lea    -0x20(%rbp),%rdi
call   1070 <pipe@plt>
cmp    $0x0,%rax
je     1224 <main+0x64>
mov    0x2ddc(%rip),%rax
mov    (%rax),%ecx
lea    0xdfb(%rip),%rdi
lea    0xe29(%rip),%rsi
mov    $0x13,%edx
mov    $0x0,%al
call   1080 <test_msg@plt>
movl   $0x1,-0x4(%rbp)
jmp    140f <main+0x24f>
mov    $0xffffffff,%edi
call   10e0 <test_fork_id@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jge    1249 <main+0x89>
movl   $0xffffffff,-0x4(%rbp)
jmp    140f <main+0x24f>
cmpq   $0x0,-0x18(%rbp)
jne    130a <main+0x14a>
mov    -0x1c(%rbp),%edi
call   1060 <close@plt>
mov    -0x20(%rbp),%edi
lea    -0x29(%rbp),%rsi
mov    $0x1,%edx
call   1090 <read@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x1,-0x24(%rbp)
je     12ad <main+0xed>
mov    -0x24(%rbp),%ecx
mov    0x2d54(%rip),%rax
mov    (%rax),%r8d
lea    0xe42(%rip),%rdi
lea    0xda0(%rip),%rsi
mov    $0x20,%edx
mov    $0x0,%al
call   1080 <test_msg@plt>
movl   $0x1,-0x4(%rbp)
jmp    140f <main+0x24f>
mov    -0x20(%rbp),%edi
lea    -0x29(%rbp),%rsi
mov    $0x1,%edx
call   1090 <read@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     12fe <main+0x13e>
mov    -0x24(%rbp),%ecx
mov    0x2d03(%rip),%rax
mov    (%rax),%r8d
lea    0xdf1(%rip),%rdi
lea    0xd4f(%rip),%rsi
mov    $0x26,%edx
mov    $0x0,%al
call   1080 <test_msg@plt>
movl   $0x1,-0x4(%rbp)
jmp    140f <main+0x24f>
movl   $0x0,-0x4(%rbp)
jmp    140f <main+0x24f>
jmp    130f <main+0x14f>
mov    -0x20(%rbp),%edi
call   1060 <close@plt>
mov    -0x18(%rbp),%rdi
mov    0x2cae(%rip),%rax
mov    (%rax),%esi
call   10c0 <kill@plt>
mov    -0x1c(%rbp),%edi
lea    0xdcf(%rip),%rsi
mov    $0x1,%edx
call   1040 <write@plt>
mov    $0x0,%al
call   1050 <test_daemon@plt>
mov    $0x0,%al
call   10a0 <test_waitsig@plt>
mov    -0x18(%rbp),%rdi
mov    0x2c92(%rip),%rax
mov    (%rax),%esi
call   10c0 <kill@plt>
mov    -0x18(%rbp),%rdi
mov    0x2c58(%rip),%rax
mov    (%rax),%edx
lea    -0x28(%rbp),%rsi
call   10d0 <waitpid@plt>
cmp    $0xffffffff,%eax
jne    13a4 <main+0x1e4>
mov    0x2c55(%rip),%rax
mov    (%rax),%ecx
lea    0xd78(%rip),%rdi
lea    0xca2(%rip),%rsi
mov    $0x36,%edx
mov    $0x0,%al
call   1080 <test_msg@plt>
jmp    13f1 <main+0x231>
mov    -0x28(%rbp),%edi
call   10b0 <WIFCONTINUED@plt>
cmp    $0x0,%rax
je     13c9 <main+0x209>
lea    0xd7b(%rip),%rdi
mov    $0x0,%al
call   1080 <test_msg@plt>
jmp    13ec <main+0x22c>
mov    0x2c08(%rip),%rax
mov    (%rax),%ecx
lea    0xd65(%rip),%rdi
lea    0xc55(%rip),%rsi
mov    $0x3d,%edx
mov    $0x0,%al
call   1080 <test_msg@plt>
jmp    13f1 <main+0x231>
mov    -0x1c(%rbp),%edi
call   1060 <close@plt>
mov    -0x18(%rbp),%rdi
lea    -0x28(%rbp),%rsi
xor    %edx,%edx
call   10d0 <waitpid@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x18,%rsp
call   1030 <test_init@plt>
lea    0xc(%rsp),%rdi
call   1070 <pipe@plt>
test   %rax,%rax
je     120b <main+0x4b>
mov    0x2df7(%rip),%rax
mov    (%rax),%ecx
lea    0xe16(%rip),%rdi
lea    0xe44(%rip),%rsi
mov    $0x13,%edx
xor    %eax,%eax
call   1080 <test_msg@plt>
mov    $0x1,%ebp
mov    %ebp,%eax
add    $0x18,%rsp
pop    %rbx
pop    %rbp
ret
mov    $0xffffffff,%ebp
mov    $0xffffffff,%edi
call   10e0 <test_fork_id@plt>
test   %rax,%rax
js     1202 <main+0x42>
je     12ba <main+0xfa>
mov    %rax,%rbx
mov    0xc(%rsp),%edi
call   1060 <close@plt>
mov    0x2d98(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   10c0 <kill@plt>
mov    0x10(%rsp),%edi
lea    0xeb5(%rip),%rsi
mov    $0x1,%edx
call   1040 <write@plt>
xor    %eax,%eax
call   1050 <test_daemon@plt>
xor    %eax,%eax
call   10a0 <test_waitsig@plt>
mov    0x2d7c(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   10c0 <kill@plt>
mov    0x2d43(%rip),%rax
mov    (%rax),%edx
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   10d0 <waitpid@plt>
cmp    $0xffffffff,%eax
je     131f <main+0x15f>
mov    0x14(%rsp),%edi
call   10b0 <WIFCONTINUED@plt>
test   %rax,%rax
je     1368 <main+0x1a8>
lea    0xe8a(%rip),%rdi
xor    %eax,%eax
call   1080 <test_msg@plt>
jmp    138b <main+0x1cb>
mov    0x10(%rsp),%edi
call   1060 <close@plt>
mov    0xc(%rsp),%edi
lea    0xb(%rsp),%rsi
mov    $0x1,%ebp
mov    $0x1,%edx
call   1090 <read@plt>
cmp    $0x1,%eax
jne    133d <main+0x17d>
mov    0xc(%rsp),%edi
lea    0xb(%rsp),%rsi
mov    $0x1,%ebp
mov    $0x1,%edx
call   1090 <read@plt>
test   %eax,%eax
je     13aa <main+0x1ea>
mov    0x2cd1(%rip),%rcx
mov    (%rcx),%r8d
lea    0xdbf(%rip),%rdi
lea    0xd1d(%rip),%rsi
mov    $0x26,%edx
jmp    135a <main+0x19a>
mov    0x2cb2(%rip),%rax
mov    (%rax),%ecx
lea    0xdd5(%rip),%rdi
lea    0xcff(%rip),%rsi
mov    $0x36,%edx
jmp    1384 <main+0x1c4>
mov    0x2c94(%rip),%rcx
mov    (%rcx),%r8d
lea    0xd82(%rip),%rdi
lea    0xce0(%rip),%rsi
mov    $0x20,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1080 <test_msg@plt>
jmp    1202 <main+0x42>
mov    0x2c69(%rip),%rax
mov    (%rax),%ecx
lea    0xdc6(%rip),%rdi
lea    0xcb6(%rip),%rsi
mov    $0x3d,%edx
xor    %eax,%eax
call   1080 <test_msg@plt>
mov    0x10(%rsp),%edi
call   1060 <close@plt>
lea    0x14(%rsp),%rsi
xor    %ebp,%ebp
mov    %rbx,%rdi
xor    %edx,%edx
call   10d0 <waitpid@plt>
jmp    1202 <main+0x42>
xor    %ebp,%ebp
jmp    1202 <main+0x42>

LLVM IR (-O0):
@.str = [53 x i8] c"ERR: %s:%d: Unable to create pipe (errno = %d (%m))\0A\00"
@.str.1 = [155 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kawamuray/criu/refs/heads/master/test/zdtm/live/static/stopped.c\00"
@errno = global i32 0
@.str.2 = [50 x i8] c"ERR: %s:%d: Unable to read: %d (errno = %d (%m))\0A\00"
@SIGSTOP = global i32 0
@.str.3 = [2 x i8] c"0\00"
@SIGCONT = global i32 0
@WCONTINUED = global i32 0
@.str.4 = [52 x i8] c"ERR: %s:%d: Unable to wait child (errno = %d (%m))\0A\00"
@.str.5 = [6 x i8] c"PASS\0A\00"
@.str.6 = [61 x i8] c"FAIL: %s:%d: The process doesn't continue (errno = %d (%m))\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i64
%7 = alloca [2 x i32]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = load i32, i32* %4
%12 = load i8**, i8*** %5
%13 = call i32 @test_init(i32 %11, i8** %12)
%14 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%15 = call i64 @pipe(i32* %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %2
%18 = load i32, i32* @errno
%19 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str.1, i64 0, i64 0), i32 19, i32 %18)
store i32 1, i32* %3
br label %91
20: ; preds = %2
%21 = call i64 @test_fork_id(i32 -1)
store i64 %21, i64* %6
%22 = load i64, i64* %6
%23 = icmp slt i64 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %20
store i32 -1, i32* %3
br label %91
25: ; preds = %20
%26 = load i64, i64* %6
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %52
28: ; preds = %25
%29 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%30 = load i32, i32* %29
%31 = call i32 @close(i32 %30)
%32 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%33 = load i32, i32* %32
%34 = call i32 @read(i32 %33, i8* %10, i32 1)
store i32 %34, i32* %8
%35 = load i32, i32* %8
%36 = icmp ne i32 %35, 1
br i1 %36, label %37, label %41
37: ; preds = %28
%38 = load i32, i32* %8
%39 = load i32, i32* @errno
%40 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str.1, i64 0, i64 0), i32 32, i32 %38, i32 %39)
store i32 1, i32* %3
br label %91
41: ; preds = %28
%42 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%43 = load i32, i32* %42
%44 = call i32 @read(i32 %43, i8* %10, i32 1)
store i32 %44, i32* %8
%45 = load i32, i32* %8
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %51
47: ; preds = %41
%48 = load i32, i32* %8
%49 = load i32, i32* @errno
%50 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str.1, i64 0, i64 0), i32 38, i32 %48, i32 %49)
store i32 1, i32* %3
br label %91
51: ; preds = %41
store i32 0, i32* %3
br label %91
52: ; preds = %25
br label %53
53: ; preds = %52
%54 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%55 = load i32, i32* %54
%56 = call i32 @close(i32 %55)
%57 = load i64, i64* %6
%58 = load i32, i32* @SIGSTOP
%59 = call i32 @kill(i64 %57, i32 %58)
%60 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%61 = load i32, i32* %60
%62 = call i32 @write(i32 %61, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%63 = call i32 (...) @test_daemon()
%64 = call i32 (...) @test_waitsig()
%65 = load i64, i64* %6
%66 = load i32, i32* @SIGCONT
%67 = call i32 @kill(i64 %65, i32 %66)
%68 = load i64, i64* %6
%69 = load i32, i32* @WCONTINUED
%70 = call i32 @waitpid(i64 %68, i32* %9, i32 %69)
%71 = icmp eq i32 %70, -1
br i1 %71, label %72, label %75
72: ; preds = %53
%73 = load i32, i32* @errno
%74 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str.1, i64 0, i64 0), i32 54, i32 %73)
br label %85
75: ; preds = %53
%76 = load i32, i32* %9
%77 = call i64 @WIFCONTINUED(i32 %76)
%78 = icmp ne i64 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %75
%80 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
br label %84
81: ; preds = %75
%82 = load i32, i32* @errno
%83 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str.1, i64 0, i64 0), i32 61, i32 %82)
br label %84
84: ; preds = %81, %79
br label %85
85: ; preds = %84, %72
%86 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%87 = load i32, i32* %86
%88 = call i32 @close(i32 %87)
%89 = load i64, i64* %6
%90 = call i32 @waitpid(i64 %89, i32* %9, i32 0)
store i32 0, i32* %3
br label %91
91: ; preds = %85, %51, %47, %37, %24, %17
%92 = load i32, i32* %3
ret i32 %92
}

LLVM IR (-O2):
@.str = [53 x i8] c"ERR: %s:%d: Unable to create pipe (errno = %d (%m))\0A\00"
@.str.1 = [155 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kawamuray/criu/refs/heads/master/test/zdtm/live/static/stopped.c\00"
@errno = global i32 0
@.str.2 = [50 x i8] c"ERR: %s:%d: Unable to read: %d (errno = %d (%m))\0A\00"
@SIGSTOP = global i32 0
@.str.3 = [2 x i8] c"0\00"
@SIGCONT = global i32 0
@WCONTINUED = global i32 0
@.str.4 = [52 x i8] c"ERR: %s:%d: Unable to wait child (errno = %d (%m))\0A\00"
@.str.5 = [6 x i8] c"PASS\0A\00"
@.str.6 = [61 x i8] c"FAIL: %s:%d: The process doesn't continue (errno = %d (%m))\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca [2 x i32]
%4 = alloca i32
%5 = alloca i8
%6 = bitcast [2 x i32]* %3 to i8*
%7 = bitcast i32* %4 to i8*
%8 = tail call i32 @test_init(i32 %0, i8** %1)
%9 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%10 = call i64 @pipe(i32* %9)
%11 = icmp eq i64 %10, 0
br i1 %11, label %15, label %12
12: ; preds = %2
%13 = load i32, i32* @errno
%14 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str.1, i64 0, i64 0), i32 19, i32 %13)
br label %70
15: ; preds = %2
%16 = call i64 @test_fork_id(i32 -1)
%17 = icmp slt i64 %16, 0
br i1 %17, label %70, label %18
18: ; preds = %15
%19 = icmp eq i64 %16, 0
br i1 %19, label %20, label %39
20: ; preds = %18
%21 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%22 = load i32, i32* %21
%23 = call i32 @close(i32 %22)
%24 = load i32, i32* %9
%25 = call i32 @read(i32 %24, i8* %5, i32 1)
%26 = icmp eq i32 %25, 1
br i1 %26, label %30, label %27
27: ; preds = %20
%28 = load i32, i32* @errno
%29 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str.1, i64 0, i64 0), i32 32, i32 %25, i32 %28)
br label %37
30: ; preds = %20
%31 = load i32, i32* %9
%32 = call i32 @read(i32 %31, i8* %5, i32 1)
%33 = icmp eq i32 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %30
%35 = load i32, i32* @errno
%36 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str.1, i64 0, i64 0), i32 38, i32 %32, i32 %35)
br label %37
37: ; preds = %30, %34, %27
%38 = phi i32 [ 1, %27 ], [ 1, %34 ], [ 0, %30 ]
br label %70
39: ; preds = %18
%40 = load i32, i32* %9
%41 = call i32 @close(i32 %40)
%42 = load i32, i32* @SIGSTOP
%43 = call i32 @kill(i64 %16, i32 %42)
%44 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%45 = load i32, i32* %44
%46 = call i32 @write(i32 %45, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%47 = call i32 (...) @test_daemon()
%48 = call i32 (...) @test_waitsig()
%49 = load i32, i32* @SIGCONT
%50 = call i32 @kill(i64 %16, i32 %49)
%51 = load i32, i32* @WCONTINUED
%52 = call i32 @waitpid(i64 %16, i32* %4, i32 %51)
%53 = icmp eq i32 %52, -1
br i1 %53, label %54, label %57
54: ; preds = %39
%55 = load i32, i32* @errno
%56 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str.1, i64 0, i64 0), i32 54, i32 %55)
br label %66
57: ; preds = %39
%58 = load i32, i32* %4
%59 = call i64 @WIFCONTINUED(i32 %58)
%60 = icmp eq i64 %59, 0
br i1 %60, label %63, label %61
61: ; preds = %57
%62 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
br label %66
63: ; preds = %57
%64 = load i32, i32* @errno
%65 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str.1, i64 0, i64 0), i32 61, i32 %64)
br label %66
66: ; preds = %61, %63, %54
%67 = load i32, i32* %44
%68 = call i32 @close(i32 %67)
%69 = call i32 @waitpid(i64 %16, i32* %4, i32 0)
br label %70
70: ; preds = %15, %66, %37, %12
%71 = phi i32 [ 1, %12 ], [ %38, %37 ], [ 0, %66 ], [ -1, %15 ]
ret i32 %71
}