#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 */

/* Variables and functions */
int IPC_CREAT;
int IPC_EXCL;
int /*<<< orphan*/ IPC_RMID;
int SHM_R;
int SHM_W;
int /*<<< orphan*/ exit(int);
int fork();
int /*<<< orphan*/ printf(char *);
scalar_t__ shmat(int, int /*<<< orphan*/ *, int /*<<< orphan*/);
int shmctl(int, int /*<<< orphan*/, int /*<<< orphan*/ *);
int shmdt(int *);
int shmget(int, int, int);
int /*<<< orphan*/ system(char *);
int /*<<< orphan*/ wait(int /*<<< orphan*/);
int main() {
  int shm;
  int idHijo;
  int *dir = NULL;
  shm = shmget(1555, sizeof(int), IPC_CREAT | SHM_R | SHM_W | IPC_EXCL);
  if (shm == -1) {
    printf(">El segmento de memoria compartida ya ha sido creado\n");
    shm = shmget(1555, sizeof(int), SHM_R | SHM_W);
    if (shm == -1) {
      printf("Error al obtener el id de la memoria compartida\n");
      exit(-1);
    }
  } else
    printf("\n>El segmento de memoria compartida ha sido creado\n");
  printf("*********************************************************************"
         "***\n");
  system("ipcs -m");
  printf("*********************************************************************"
         "***\n");
  dir = (int *)shmat(shm, NULL, 0);
  if (dir == (int *)-1) {
    printf("Error al obtener la dirección de memoria compartida\n");
    if (shmctl(shm, IPC_RMID, NULL) == -1) {
      printf("Error al eliminar la memoria compartida\n");
      exit(-1);
    }
    exit(-1);
  }
  printf(">Proceso Padre Vinculado a memoria compartida\n");
  idHijo = fork();
  if (idHijo < 0) {
    printf("Error al crear el proceso hijo\n");
    exit(-1);
  }
  if (idHijo == 0) {
    if (shmctl(shm, IPC_RMID, NULL) == -1) {
      printf("Error al eliminar la memoria compartida\n");
      exit(-1);
    }
    printf(">Memoria compartida marcada como borrada por el proceso Hijo\n");
    printf("*******************************************************************"
           "*****\n");
    system("ipcs -m");
    printf("*******************************************************************"
           "*****\n");
    exit(0);
  }
  if (idHijo > 0) {
    wait(0);
    if (shmdt(dir) == -1) {
      printf("Error al desvincular la memoria compartida\n");
      exit(-1);
    }
    printf(">Proceso Padre desvinculado de la memoria compartida\n");
    printf(">Memoria compartida borrada por el Sistema Operativo \n");
    printf("*******************************************************************"
           "*****\n");
    system("ipcs -m");
    printf("*******************************************************************"
           "*****\n");
  }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x18(%rbp)
mov    0x2e1a(%rip),%rax
mov    (%rax),%edx
mov    0x2e29(%rip),%rax
or     (%rax),%edx
mov    0x2e00(%rip),%rax
or     (%rax),%edx
mov    0x2e27(%rip),%rax
or     (%rax),%edx
mov    $0x613,%edi
mov    $0x4,%esi
call   1080 <shmget@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0xffffffff,-0x8(%rbp)
jne    123c <main+0xac>
lea    0xe12(%rip),%rdi
call   1050 <printf@plt>
mov    0x2de6(%rip),%rax
mov    (%rax),%edx
mov    0x2dbd(%rip),%rax
or     (%rax),%edx
mov    $0x613,%edi
mov    $0x4,%esi
call   1080 <shmget@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0xffffffff,-0x8(%rbp)
jne    1237 <main+0xa7>
lea    0xe0e(%rip),%rdi
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
jmp    1248 <main+0xb8>
lea    0xe24(%rip),%rdi
call   1050 <printf@plt>
lea    0xe4c(%rip),%rdi
call   1050 <printf@plt>
lea    0xe8a(%rip),%rdi
call   1040 <system@plt>
lea    0xe34(%rip),%rdi
call   1050 <printf@plt>
mov    -0x8(%rbp),%edi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1070 <shmat@plt>
mov    %rax,-0x18(%rbp)
mov    $0xffffffffffffffff,%rax
cmp    %rax,-0x18(%rbp)
jne    12d9 <main+0x149>
lea    0xe57(%rip),%rdi
call   1050 <printf@plt>
mov    -0x8(%rbp),%edi
mov    0x2d2b(%rip),%rax
mov    (%rax),%esi
xor    %eax,%eax
mov    %eax,%edx
call   1060 <shmctl@plt>
cmp    $0xffffffff,%eax
jne    12cf <main+0x13f>
lea    0xe63(%rip),%rdi
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
lea    0xe6c(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   10b0 <fork@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jge    130f <main+0x17f>
lea    0xe7b(%rip),%rdi
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
cmpl   $0x0,-0xc(%rbp)
jne    1384 <main+0x1f4>
mov    -0x8(%rbp),%edi
mov    0x2cad(%rip),%rax
mov    (%rax),%esi
xor    %eax,%eax
mov    %eax,%edx
call   1060 <shmctl@plt>
cmp    $0xffffffff,%eax
jne    134d <main+0x1bd>
lea    0xde5(%rip),%rdi
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
lea    0xe47(%rip),%rdi
call   1050 <printf@plt>
lea    0xd3b(%rip),%rdi
call   1050 <printf@plt>
lea    0xd79(%rip),%rdi
call   1040 <system@plt>
lea    0xd23(%rip),%rdi
call   1050 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
cmpl   $0x0,-0xc(%rbp)
jle    13f9 <main+0x269>
xor    %edi,%edi
call   10a0 <wait@plt>
mov    -0x18(%rbp),%rdi
call   1030 <shmdt@plt>
cmp    $0xffffffff,%eax
jne    13bd <main+0x22d>
lea    0xe2b(%rip),%rdi
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
lea    0xe41(%rip),%rdi
call   1050 <printf@plt>
lea    0xe6b(%rip),%rdi
call   1050 <printf@plt>
lea    0xcbf(%rip),%rdi
call   1050 <printf@plt>
lea    0xcfd(%rip),%rdi
call   1040 <system@plt>
lea    0xca7(%rip),%rdi
call   1050 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
mov    0x2e2c(%rip),%rax
mov    0x2e3d(%rip),%r14
mov    (%r14),%edx
or     (%rax),%edx
mov    0x2e11(%rip),%r15
or     (%r15),%edx
mov    0x2e37(%rip),%rax
or     (%rax),%edx
mov    $0x613,%edi
mov    $0x4,%esi
call   1080 <shmget@plt>
cmp    $0xffffffff,%eax
jne    1203 <main+0x73>
lea    0x102b(%rip),%rdi
call   1030 <puts@plt>
mov    (%r15),%edx
or     (%r14),%edx
mov    $0x613,%edi
mov    $0x4,%esi
call   1080 <shmget@plt>
mov    %eax,%ebx
cmp    $0xffffffff,%eax
jne    1211 <main+0x81>
lea    0x1038(%rip),%rdi
jmp    12b5 <main+0x125>
mov    %eax,%ebx
lea    0xdfc(%rip),%rdi
call   1030 <puts@plt>
lea    0xf24(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xdd9(%rip),%rdi
call   1050 <system@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1070 <shmat@plt>
cmp    $0xffffffffffffffff,%rax
jne    1272 <main+0xe2>
lea    0xf58(%rip),%rdi
call   1030 <puts@plt>
mov    0x2d78(%rip),%rax
mov    (%rax),%esi
mov    %ebx,%edi
xor    %edx,%edx
call   1060 <shmctl@plt>
cmp    $0xffffffff,%eax
je     12ae <main+0x11e>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
mov    %rax,%r14
lea    0xdbf(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   10b0 <fork@plt>
test   %eax,%eax
jns    1295 <main+0x105>
lea    0xef2(%rip),%rdi
jmp    12b5 <main+0x125>
jne    12c4 <main+0x134>
mov    0x2d32(%rip),%rax
mov    (%rax),%esi
mov    %ebx,%edi
xor    %edx,%edx
call   1060 <shmctl@plt>
cmp    $0xffffffff,%eax
jne    12e1 <main+0x151>
lea    0xf24(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
xor    %edi,%edi
call   10a0 <wait@plt>
mov    %r14,%rdi
call   1040 <shmdt@plt>
cmp    $0xffffffff,%eax
jne    12ea <main+0x15a>
lea    0xdf5(%rip),%rdi
jmp    12b5 <main+0x125>
lea    0xe17(%rip),%rdi
jmp    12fd <main+0x16d>
lea    0xd78(%rip),%rdi
call   1030 <puts@plt>
lea    0xda1(%rip),%rdi
call   1030 <puts@plt>
lea    0xe33(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xce8(%rip),%rdi
call   1050 <system@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@IPC_CREAT = global i32 0
@SHM_R = global i32 0
@SHM_W = global i32 0
@IPC_EXCL = global i32 0
@.str = [54 x i8] c">El segmento de memoria compartida ya ha sido creado\0A\00"
@.str.1 = [49 x i8] c"Error al obtener el id de la memoria compartida\0A\00"
@.str.2 = [52 x i8] c"\0A>El segmento de memoria compartida ha sido creado\0A\00"
@.str.3 = [74 x i8] c"************************************************************************\0A\00"
@.str.4 = [8 x i8] c"ipcs -m\00"
@.str.5 = [54 x i8] c"Error al obtener la direcci\C3\B3n de memoria compartida\0A\00"
@IPC_RMID = global i32 0
@.str.6 = [41 x i8] c"Error al eliminar la memoria compartida\0A\00"
@.str.7 = [47 x i8] c">Proceso Padre Vinculado a memoria compartida\0A\00"
@.str.8 = [32 x i8] c"Error al crear el proceso hijo\0A\00"
@.str.9 = [62 x i8] c">Memoria compartida marcada como borrada por el proceso Hijo\0A\00"
@.str.10 = [44 x i8] c"Error al desvincular la memoria compartida\0A\00"
@.str.11 = [54 x i8] c">Proceso Padre desvinculado de la memoria compartida\0A\00"
@.str.12 = [55 x i8] c">Memoria compartida borrada por el Sistema Operativo \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32*
store i32 0, i32* %1
store i32* null, i32** %4
%5 = load i32, i32* @IPC_CREAT
%6 = load i32, i32* @SHM_R
%7 = or i32 %5, %6
%8 = load i32, i32* @SHM_W
%9 = or i32 %7, %8
%10 = load i32, i32* @IPC_EXCL
%11 = or i32 %9, %10
%12 = call i32 @shmget(i32 1555, i32 4, i32 %11)
store i32 %12, i32* %2
%13 = load i32, i32* %2
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %27
15: ; preds = %0
%16 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0))
%17 = load i32, i32* @SHM_R
%18 = load i32, i32* @SHM_W
%19 = or i32 %17, %18
%20 = call i32 @shmget(i32 1555, i32 4, i32 %19)
store i32 %20, i32* %2
%21 = load i32, i32* %2
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %26
23: ; preds = %15
%24 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0))
%25 = call i32 @exit(i32 -1)
unreachable
26: ; preds = %15
br label %29
27: ; preds = %0
%28 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0))
br label %29
29: ; preds = %27, %26
%30 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.3, i64 0, i64 0))
%31 = call i32 @system(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%32 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.3, i64 0, i64 0))
%33 = load i32, i32* %2
%34 = call i64 @shmat(i32 %33, i32* null, i32 0)
%35 = inttoptr i64 %34 to i32*
store i32* %35, i32** %4
%36 = load i32*, i32** %4
%37 = icmp eq i32* %36, inttoptr (i64 -1 to i32*)
br i1 %37, label %38, label %49
38: ; preds = %29
%39 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.5, i64 0, i64 0))
%40 = load i32, i32* %2
%41 = load i32, i32* @IPC_RMID
%42 = call i32 @shmctl(i32 %40, i32 %41, i32* null)
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %47
44: ; preds = %38
%45 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0))
%46 = call i32 @exit(i32 -1)
unreachable
47: ; preds = %38
%48 = call i32 @exit(i32 -1)
unreachable
49: ; preds = %29
%50 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
%51 = call i32 (...) @fork()
store i32 %51, i32* %3
%52 = load i32, i32* %3
%53 = icmp slt i32 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %49
%55 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.8, i64 0, i64 0))
%56 = call i32 @exit(i32 -1)
unreachable
57: ; preds = %49
%58 = load i32, i32* %3
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %74
60: ; preds = %57
%61 = load i32, i32* %2
%62 = load i32, i32* @IPC_RMID
%63 = call i32 @shmctl(i32 %61, i32 %62, i32* null)
%64 = icmp eq i32 %63, -1
br i1 %64, label %65, label %68
65: ; preds = %60
%66 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0))
%67 = call i32 @exit(i32 -1)
unreachable
68: ; preds = %60
%69 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0))
%70 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.3, i64 0, i64 0))
%71 = call i32 @system(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%72 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.3, i64 0, i64 0))
%73 = call i32 @exit(i32 0)
unreachable
74: ; preds = %57
%75 = load i32, i32* %3
%76 = icmp sgt i32 %75, 0
br i1 %76, label %77, label %91
77: ; preds = %74
%78 = call i32 @wait(i32 0)
%79 = load i32*, i32** %4
%80 = call i32 @shmdt(i32* %79)
%81 = icmp eq i32 %80, -1
br i1 %81, label %82, label %85
82: ; preds = %77
%83 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.10, i64 0, i64 0))
%84 = call i32 @exit(i32 -1)
unreachable
85: ; preds = %77
%86 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.11, i64 0, i64 0))
%87 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.12, i64 0, i64 0))
%88 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.3, i64 0, i64 0))
%89 = call i32 @system(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%90 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.3, i64 0, i64 0))
br label %91
91: ; preds = %85, %74
%92 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@IPC_CREAT = global i32 0
@SHM_R = global i32 0
@SHM_W = global i32 0
@IPC_EXCL = global i32 0
@.str.4 = [8 x i8] c"ipcs -m\00"
@IPC_RMID = global i32 0
@str = [51 x i8] c"\0A>El segmento de memoria compartida ha sido creado\00"
@str.15 = [46 x i8] c">Proceso Padre Vinculado a memoria compartida\00"
@str.16 = [53 x i8] c">Proceso Padre desvinculado de la memoria compartida\00"
@str.17 = [54 x i8] c">Memoria compartida borrada por el Sistema Operativo \00"
@str.20 = [43 x i8] c"Error al desvincular la memoria compartida\00"
@str.21 = [61 x i8] c">Memoria compartida marcada como borrada por el proceso Hijo\00"
@str.23 = [73 x i8] c"************************************************************************\00"
@str.25 = [31 x i8] c"Error al crear el proceso hijo\00"
@str.26 = [53 x i8] c"Error al obtener la direcci\C3\B3n de memoria compartida\00"
@str.27 = [40 x i8] c"Error al eliminar la memoria compartida\00"
@str.28 = [53 x i8] c">El segmento de memoria compartida ya ha sido creado\00"
@str.29 = [48 x i8] c"Error al obtener el id de la memoria compartida\00"
define i32 @main() {
%1 = load i32, i32* @IPC_CREAT
%2 = load i32, i32* @SHM_R
%3 = or i32 %2, %1
%4 = load i32, i32* @SHM_W
%5 = or i32 %3, %4
%6 = load i32, i32* @IPC_EXCL
%7 = or i32 %5, %6
%8 = tail call i32 @shmget(i32 1555, i32 4, i32 %7)
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %20
10: ; preds = %0
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.28, i64 0, i64 0))
%12 = load i32, i32* @SHM_R
%13 = load i32, i32* @SHM_W
%14 = or i32 %13, %12
%15 = tail call i32 @shmget(i32 1555, i32 4, i32 %14)
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %22
17: ; preds = %10
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.29, i64 0, i64 0))
%19 = tail call i32 @exit(i32 -1)
unreachable
20: ; preds = %0
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str, i64 0, i64 0))
br label %22
22: ; preds = %10, %20
%23 = phi i32 [ %15, %10 ], [ %8, %20 ]
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.23, i64 0, i64 0))
%25 = tail call i32 @system(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.23, i64 0, i64 0))
%27 = tail call i64 @shmat(i32 %23, i32* null, i32 0)
%28 = inttoptr i64 %27 to i32*
%29 = icmp eq i32* %28, inttoptr (i64 -1 to i32*)
br i1 %29, label %30, label %40
30: ; preds = %22
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.26, i64 0, i64 0))
%32 = load i32, i32* @IPC_RMID
%33 = tail call i32 @shmctl(i32 %23, i32 %32, i32* null)
%34 = icmp eq i32 %33, -1
br i1 %34, label %35, label %38
35: ; preds = %30
%36 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.27, i64 0, i64 0))
%37 = tail call i32 @exit(i32 -1)
unreachable
38: ; preds = %30
%39 = tail call i32 @exit(i32 -1)
unreachable
40: ; preds = %22
%41 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.15, i64 0, i64 0))
%42 = tail call i32 (...) @fork()
%43 = icmp slt i32 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %40
%45 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.25, i64 0, i64 0))
%46 = tail call i32 @exit(i32 -1)
unreachable
47: ; preds = %40
%48 = icmp eq i32 %42, 0
br i1 %48, label %49, label %62
49: ; preds = %47
%50 = load i32, i32* @IPC_RMID
%51 = tail call i32 @shmctl(i32 %23, i32 %50, i32* null)
%52 = icmp eq i32 %51, -1
br i1 %52, label %53, label %56
53: ; preds = %49
%54 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.27, i64 0, i64 0))
%55 = tail call i32 @exit(i32 -1)
unreachable
56: ; preds = %49
%57 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.21, i64 0, i64 0))
%58 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.23, i64 0, i64 0))
%59 = tail call i32 @system(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%60 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.23, i64 0, i64 0))
%61 = tail call i32 @exit(i32 0)
unreachable
62: ; preds = %47
%63 = tail call i32 @wait(i32 0)
%64 = tail call i32 @shmdt(i32* %28)
%65 = icmp eq i32 %64, -1
br i1 %65, label %66, label %69
66: ; preds = %62
%67 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.20, i64 0, i64 0))
%68 = tail call i32 @exit(i32 -1)
unreachable
69: ; preds = %62
%70 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.16, i64 0, i64 0))
%71 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.17, i64 0, i64 0))
%72 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.23, i64 0, i64 0))
%73 = tail call i32 @system(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%74 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.23, i64 0, i64 0))
%75 = tail call i32 @exit(i32 0)
unreachable
}