#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 /*<<< orphan*/ child_send(int *);
int /*<<< orphan*/ child_wait(int *);
int /*<<< orphan*/ close(int);
int fork();
int /*<<< orphan*/ pipe(int *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ read(int, int **, int);
int /*<<< orphan*/ write(int, int **, int);
int main(int argc, char *argv[]) {
  int pid[3] = {0, 0, 0};
  int child1, child2, child3;
  int fd1[2], fd2[2], fd3[2];
  pipe(fd1);
  pipe(fd2);
  pipe(fd3);
  child1 = fork();
  if (!child1) {
    close(fd1[1]);
    read(fd1[0], &pid, sizeof(int) * 3);
    printf("CHILD1: pids %d, %d, %d\n", pid[0], pid[1], pid[2]);
    close(fd1[0]);
    child_send(pid);
    child_wait(pid);
  } else {
    child2 = fork();
    if (!child2) {
      close(fd2[1]);
      read(fd2[0], &pid, sizeof(int) * 3);
      printf("CHILD2: pids %d, %d, %d\n", pid[0], pid[1], pid[2]);
      close(fd2[0]);
      child_send(pid);
      child_wait(pid);
    } else {
      child3 = fork();
      if (!child3) {
        close(fd3[1]);
        read(fd3[0], &pid, sizeof(int) * 3);
        printf("CHILD3: pids %d, %d, %d\n", pid[0], pid[1], pid[2]);
        close(fd3[0]);
        child_send(pid);
        child_wait(pid);
      } else {
        close(fd1[0]);
        close(fd2[0]);
        close(fd3[0]);
        pid[0] = child1;
        pid[1] = child2;
        pid[2] = child3;
        write(fd1[1], &pid, sizeof(int) * 3);
        write(fd2[1], &pid, sizeof(int) * 3);
        write(fd3[1], &pid, sizeof(int) * 3);
        printf("PARENT: Wrote to children\n");
      }
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x1c(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
lea    -0x30(%rbp),%rdi
call   1070 <pipe@plt>
lea    -0x38(%rbp),%rdi
call   1070 <pipe@plt>
lea    -0x40(%rbp),%rdi
call   1070 <pipe@plt>
mov    $0x0,%al
call   10b0 <fork@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
jne    1234 <main+0xa4>
mov    -0x2c(%rbp),%edi
call   1060 <close@plt>
mov    -0x30(%rbp),%edi
lea    -0x1c(%rbp),%rsi
mov    $0xc,%edx
call   1080 <read@plt>
mov    -0x1c(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x14(%rbp),%ecx
lea    0xdf2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%edi
call   1060 <close@plt>
lea    -0x1c(%rbp),%rdi
call   10a0 <child_send@plt>
lea    -0x1c(%rbp),%rdi
call   1090 <child_wait@plt>
jmp    136f <main+0x1df>
mov    $0x0,%al
call   10b0 <fork@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jne    1297 <main+0x107>
mov    -0x34(%rbp),%edi
call   1060 <close@plt>
mov    -0x38(%rbp),%edi
lea    -0x1c(%rbp),%rsi
mov    $0xc,%edx
call   1080 <read@plt>
mov    -0x1c(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x14(%rbp),%ecx
lea    0xda8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%edi
call   1060 <close@plt>
lea    -0x1c(%rbp),%rdi
call   10a0 <child_send@plt>
lea    -0x1c(%rbp),%rdi
call   1090 <child_wait@plt>
jmp    136a <main+0x1da>
mov    $0x0,%al
call   10b0 <fork@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x0,-0x28(%rbp)
jne    12fa <main+0x16a>
mov    -0x3c(%rbp),%edi
call   1060 <close@plt>
mov    -0x40(%rbp),%edi
lea    -0x1c(%rbp),%rsi
mov    $0xc,%edx
call   1080 <read@plt>
mov    -0x1c(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x14(%rbp),%ecx
lea    0xd5e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x40(%rbp),%edi
call   1060 <close@plt>
lea    -0x1c(%rbp),%rdi
call   10a0 <child_send@plt>
lea    -0x1c(%rbp),%rdi
call   1090 <child_wait@plt>
jmp    1365 <main+0x1d5>
mov    -0x30(%rbp),%edi
call   1060 <close@plt>
mov    -0x38(%rbp),%edi
call   1060 <close@plt>
mov    -0x40(%rbp),%edi
call   1060 <close@plt>
mov    -0x20(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x2c(%rbp),%edi
lea    -0x1c(%rbp),%rsi
mov    $0xc,%edx
call   1030 <write@plt>
mov    -0x34(%rbp),%edi
lea    -0x1c(%rbp),%rsi
mov    $0xc,%edx
call   1030 <write@plt>
mov    -0x3c(%rbp),%edi
lea    -0x1c(%rbp),%rsi
mov    $0xc,%edx
call   1030 <write@plt>
lea    0xced(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    136a <main+0x1da>
jmp    136f <main+0x1df>
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x30,%rsp
movl   $0x0,0x10(%rsp)
movq   $0x0,0x8(%rsp)
lea    0x28(%rsp),%rdi
call   1070 <pipe@plt>
lea    0x20(%rsp),%rdi
call   1070 <pipe@plt>
lea    0x18(%rsp),%rdi
call   1070 <pipe@plt>
xor    %eax,%eax
call   10b0 <fork@plt>
test   %eax,%eax
je     126c <main+0xdc>
mov    %eax,%ebx
xor    %eax,%eax
call   10b0 <fork@plt>
test   %eax,%eax
je     12ab <main+0x11b>
mov    %eax,%ebp
xor    %eax,%eax
call   10b0 <fork@plt>
test   %eax,%eax
je     12ea <main+0x15a>
mov    %eax,%r14d
mov    0x28(%rsp),%edi
call   1060 <close@plt>
mov    0x20(%rsp),%edi
call   1060 <close@plt>
mov    0x18(%rsp),%edi
call   1060 <close@plt>
mov    %ebx,0x8(%rsp)
mov    %ebp,0xc(%rsp)
mov    %r14d,0x10(%rsp)
mov    0x2c(%rsp),%edi
lea    0x8(%rsp),%rbx
mov    %rbx,%rsi
mov    $0xc,%edx
call   1040 <write@plt>
mov    0x24(%rsp),%edi
mov    %rbx,%rsi
mov    $0xc,%edx
call   1040 <write@plt>
mov    0x1c(%rsp),%edi
mov    %rbx,%rsi
mov    $0xc,%edx
call   1040 <write@plt>
lea    0xde9(%rip),%rdi
call   1030 <puts@plt>
jmp    133c <main+0x1ac>
mov    0x2c(%rsp),%edi
call   1060 <close@plt>
mov    0x28(%rsp),%edi
lea    0x8(%rsp),%rbx
mov    %rbx,%rsi
mov    $0xc,%edx
call   1080 <read@plt>
mov    0x8(%rsp),%esi
mov    0xc(%rsp),%edx
mov    0x10(%rsp),%ecx
lea    0xd62(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x28(%rsp),%edi
jmp    1327 <main+0x197>
mov    0x24(%rsp),%edi
call   1060 <close@plt>
mov    0x20(%rsp),%edi
lea    0x8(%rsp),%rbx
mov    %rbx,%rsi
mov    $0xc,%edx
call   1080 <read@plt>
mov    0x8(%rsp),%esi
mov    0xc(%rsp),%edx
mov    0x10(%rsp),%ecx
lea    0xd3c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rsp),%edi
jmp    1327 <main+0x197>
mov    0x1c(%rsp),%edi
call   1060 <close@plt>
mov    0x18(%rsp),%edi
lea    0x8(%rsp),%rbx
mov    %rbx,%rsi
mov    $0xc,%edx
call   1080 <read@plt>
mov    0x8(%rsp),%esi
mov    0xc(%rsp),%edx
mov    0x10(%rsp),%ecx
lea    0xd16(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rsp),%edi
call   1060 <close@plt>
mov    %rbx,%rdi
call   10a0 <child_send@plt>
mov    %rbx,%rdi
call   1090 <child_wait@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [25 x i8] c"CHILD1: pids %d, %d, %d\0A\00"
@.str.1 = [25 x i8] c"CHILD2: pids %d, %d, %d\0A\00"
@.str.2 = [25 x i8] c"CHILD3: pids %d, %d, %d\0A\00"
@.str.3 = [27 x i8] c"PARENT: Wrote to children\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [3 x i32]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca [2 x i32]
%11 = alloca [2 x i32]
%12 = alloca [2 x i32]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = bitcast [3 x i32]* %6 to i8*
%14 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 0
%15 = call i32 @pipe(i32* %14)
%16 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%17 = call i32 @pipe(i32* %16)
%18 = getelementptr inbounds [2 x i32], [2 x i32]* %12, i64 0, i64 0
%19 = call i32 @pipe(i32* %18)
%20 = call i32 (...) @fork()
store i32 %20, i32* %7
%21 = load i32, i32* %7
%22 = icmp ne i32 %21, 0
br i1 %22, label %45, label %23
23: ; preds = %2
%24 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 1
%25 = load i32, i32* %24
%26 = call i32 @close(i32 %25)
%27 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 0
%28 = load i32, i32* %27
%29 = bitcast [3 x i32]* %6 to i32**
%30 = call i32 @read(i32 %28, i32** %29, i32 12)
%31 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%32 = load i32, i32* %31
%33 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 1
%34 = load i32, i32* %33
%35 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 2
%36 = load i32, i32* %35
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %32, i32 %34, i32 %36)
%38 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 0
%39 = load i32, i32* %38
%40 = call i32 @close(i32 %39)
%41 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%42 = call i32 @child_send(i32* %41)
%43 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%44 = call i32 @child_wait(i32* %43)
br label %128
45: ; preds = %2
%46 = call i32 (...) @fork()
store i32 %46, i32* %8
%47 = load i32, i32* %8
%48 = icmp ne i32 %47, 0
br i1 %48, label %71, label %49
49: ; preds = %45
%50 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 1
%51 = load i32, i32* %50
%52 = call i32 @close(i32 %51)
%53 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%54 = load i32, i32* %53
%55 = bitcast [3 x i32]* %6 to i32**
%56 = call i32 @read(i32 %54, i32** %55, i32 12)
%57 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%58 = load i32, i32* %57
%59 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 1
%60 = load i32, i32* %59
%61 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 2
%62 = load i32, i32* %61
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %58, i32 %60, i32 %62)
%64 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%65 = load i32, i32* %64
%66 = call i32 @close(i32 %65)
%67 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%68 = call i32 @child_send(i32* %67)
%69 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%70 = call i32 @child_wait(i32* %69)
br label %127
71: ; preds = %45
%72 = call i32 (...) @fork()
store i32 %72, i32* %9
%73 = load i32, i32* %9
%74 = icmp ne i32 %73, 0
br i1 %74, label %97, label %75
75: ; preds = %71
%76 = getelementptr inbounds [2 x i32], [2 x i32]* %12, i64 0, i64 1
%77 = load i32, i32* %76
%78 = call i32 @close(i32 %77)
%79 = getelementptr inbounds [2 x i32], [2 x i32]* %12, i64 0, i64 0
%80 = load i32, i32* %79
%81 = bitcast [3 x i32]* %6 to i32**
%82 = call i32 @read(i32 %80, i32** %81, i32 12)
%83 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%84 = load i32, i32* %83
%85 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 1
%86 = load i32, i32* %85
%87 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 2
%88 = load i32, i32* %87
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 %84, i32 %86, i32 %88)
%90 = getelementptr inbounds [2 x i32], [2 x i32]* %12, i64 0, i64 0
%91 = load i32, i32* %90
%92 = call i32 @close(i32 %91)
%93 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%94 = call i32 @child_send(i32* %93)
%95 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%96 = call i32 @child_wait(i32* %95)
br label %126
97: ; preds = %71
%98 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 0
%99 = load i32, i32* %98
%100 = call i32 @close(i32 %99)
%101 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%102 = load i32, i32* %101
%103 = call i32 @close(i32 %102)
%104 = getelementptr inbounds [2 x i32], [2 x i32]* %12, i64 0, i64 0
%105 = load i32, i32* %104
%106 = call i32 @close(i32 %105)
%107 = load i32, i32* %7
%108 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
store i32 %107, i32* %108
%109 = load i32, i32* %8
%110 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 1
store i32 %109, i32* %110
%111 = load i32, i32* %9
%112 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 2
store i32 %111, i32* %112
%113 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 1
%114 = load i32, i32* %113
%115 = bitcast [3 x i32]* %6 to i32**
%116 = call i32 @write(i32 %114, i32** %115, i32 12)
%117 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 1
%118 = load i32, i32* %117
%119 = bitcast [3 x i32]* %6 to i32**
%120 = call i32 @write(i32 %118, i32** %119, i32 12)
%121 = getelementptr inbounds [2 x i32], [2 x i32]* %12, i64 0, i64 1
%122 = load i32, i32* %121
%123 = bitcast [3 x i32]* %6 to i32**
%124 = call i32 @write(i32 %122, i32** %123, i32 12)
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
br label %126
126: ; preds = %97, %75
br label %127
127: ; preds = %126, %49
br label %128
128: ; preds = %127, %23
%129 = load i32, i32* %3
ret i32 %129
}

LLVM IR (-O2):
@.str = [25 x i8] c"CHILD1: pids %d, %d, %d\0A\00"
@.str.1 = [25 x i8] c"CHILD2: pids %d, %d, %d\0A\00"
@.str.2 = [25 x i8] c"CHILD3: pids %d, %d, %d\0A\00"
@str = [26 x i8] c"PARENT: Wrote to children\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [3 x i32]
%4 = alloca [2 x i32]
%5 = alloca [2 x i32]
%6 = alloca [2 x i32]
%7 = bitcast [3 x i32]* %3 to i8*
%8 = bitcast [2 x i32]* %4 to i8*
%9 = bitcast [2 x i32]* %5 to i8*
%10 = bitcast [2 x i32]* %6 to i8*
%11 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 0
%12 = call i32 @pipe(i32* %11)
%13 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
%14 = call i32 @pipe(i32* %13)
%15 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
%16 = call i32 @pipe(i32* %15)
%17 = call i32 (...) @fork()
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %37
19: ; preds = %2
%20 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
%21 = load i32, i32* %20
%22 = call i32 @close(i32 %21)
%23 = load i32, i32* %11
%24 = bitcast [3 x i32]* %3 to i32**
%25 = call i32 @read(i32 %23, i32** %24, i32 12)
%26 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
%27 = load i32, i32* %26
%28 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 1
%29 = load i32, i32* %28
%30 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
%31 = load i32, i32* %30
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %27, i32 %29, i32 %31)
%33 = load i32, i32* %11
%34 = call i32 @close(i32 %33)
%35 = call i32 @child_send(i32* %26)
%36 = call i32 @child_wait(i32* %26)
br label %100
37: ; preds = %2
%38 = call i32 (...) @fork()
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %58
40: ; preds = %37
%41 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
%42 = load i32, i32* %41
%43 = call i32 @close(i32 %42)
%44 = load i32, i32* %13
%45 = bitcast [3 x i32]* %3 to i32**
%46 = call i32 @read(i32 %44, i32** %45, i32 12)
%47 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
%48 = load i32, i32* %47
%49 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 1
%50 = load i32, i32* %49
%51 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
%52 = load i32, i32* %51
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %48, i32 %50, i32 %52)
%54 = load i32, i32* %13
%55 = call i32 @close(i32 %54)
%56 = call i32 @child_send(i32* %47)
%57 = call i32 @child_wait(i32* %47)
br label %100
58: ; preds = %37
%59 = call i32 (...) @fork()
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %79
61: ; preds = %58
%62 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 1
%63 = load i32, i32* %62
%64 = call i32 @close(i32 %63)
%65 = load i32, i32* %15
%66 = bitcast [3 x i32]* %3 to i32**
%67 = call i32 @read(i32 %65, i32** %66, i32 12)
%68 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
%69 = load i32, i32* %68
%70 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 1
%71 = load i32, i32* %70
%72 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
%73 = load i32, i32* %72
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 %69, i32 %71, i32 %73)
%75 = load i32, i32* %15
%76 = call i32 @close(i32 %75)
%77 = call i32 @child_send(i32* %68)
%78 = call i32 @child_wait(i32* %68)
br label %100
79: ; preds = %58
%80 = load i32, i32* %11
%81 = call i32 @close(i32 %80)
%82 = load i32, i32* %13
%83 = call i32 @close(i32 %82)
%84 = load i32, i32* %15
%85 = call i32 @close(i32 %84)
%86 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
store i32 %17, i32* %86
%87 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 1
store i32 %38, i32* %87
%88 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
store i32 %59, i32* %88
%89 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
%90 = load i32, i32* %89
%91 = bitcast [3 x i32]* %3 to i32**
%92 = call i32 @write(i32 %90, i32** %91, i32 12)
%93 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
%94 = load i32, i32* %93
%95 = call i32 @write(i32 %94, i32** %91, i32 12)
%96 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 1
%97 = load i32, i32* %96
%98 = call i32 @write(i32 %97, i32** %91, i32 12)
%99 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
br label %100
100: ; preds = %40, %79, %61, %19
ret i32 0
}