#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 /*<<< orphan*/ buf;

/* Variables and functions */
int /*<<< orphan*/ AF_UNIX;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ exit(int);
scalar_t__ fork();
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int read(int, unsigned char *, int);
int /*<<< orphan*/ sleep(int);
scalar_t__ socketpair(int /*<<< orphan*/, int /*<<< orphan*/,
                      int /*<<< orphan*/, int *);
int write(int, unsigned char *, int);
int main(int argc, char *argv[]) {
  int count = 1;
  int sockets[2];
  if (socketpair(AF_UNIX, SOCK_STREAM, 0, sockets) < 0) {
    perror("socketpair()");
    return -1;
  }
  const char *me;
  if (fork() > 0) {
    close(sockets[0]);
    me = "parent";
    unsigned char data;
    unsigned char count = 0;
    while (1) {
      if (read(sockets[1], &data, 1) != 1) {
        perror("read failed");
        exit(1);
      }
      printf("%s %d\n", me, data);
      assert(count == data);
      count++;
      sleep(2);
    }
  } else {
    unsigned char buf[256];
    unsigned int i;
    for (i = 0; i < sizeof(buf); i++) {
      buf[i] = i;
    }
    printf("%s", buf);
    if (write(sockets[0], buf, sizeof(buf)) != sizeof(buf)) {
      perror("Write failed");
      exit(1);
    }
    close(sockets[0]);
    close(sockets[1]);
    me = "child";
    while (1) {
      printf("%s %d\n", me, count++);
      sleep(2);
    }
  }
  printf("%s done\n", me);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
mov    0x2e21(%rip),%rax
mov    (%rax),%edi
mov    0x2e08(%rip),%rax
mov    (%rax),%esi
lea    -0x1c(%rbp),%rcx
xor    %edx,%edx
call   1080 <socketpair@plt>
cmp    $0x0,%rax
jge    1201 <main+0x61>
lea    0xe12(%rip),%rdi
call   1090 <perror@plt>
mov    $0xffffffff,%eax
add    $0x140,%rsp
pop    %rbp
ret
mov    $0x0,%al
call   10c0 <fork@plt>
cmp    $0x0,%rax
jle    129d <main+0xfd>
mov    -0x1c(%rbp),%edi
call   1050 <close@plt>
lea    0xdec(%rip),%rax
mov    %rax,-0x28(%rbp)
movb   $0x0,-0x2a(%rbp)
mov    -0x18(%rbp),%edi
lea    -0x29(%rbp),%rsi
mov    $0x1,%edx
call   1060 <read@plt>
cmp    $0x1,%eax
je     1259 <main+0xb9>
lea    0xdca(%rip),%rdi
call   1090 <perror@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x28(%rbp),%rsi
movzbl -0x29(%rbp),%edx
lea    0xdb8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movzbl -0x2a(%rbp),%eax
movzbl -0x29(%rbp),%ecx
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x2a(%rbp),%al
add    $0x1,%al
mov    %al,-0x2a(%rbp)
mov    $0x2,%edi
call   10b0 <sleep@plt>
jmp    1229 <main+0x89>
movl   $0x0,-0x134(%rbp)
mov    -0x134(%rbp),%eax
cmp    $0x100,%rax
jae    12e2 <main+0x142>
mov    -0x134(%rbp),%eax
mov    %al,%cl
mov    -0x134(%rbp),%eax
mov    %cl,-0x130(%rbp,%rax,1)
mov    -0x134(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x134(%rbp)
jmp    12a7 <main+0x107>
lea    -0x130(%rbp),%rsi
lea    0xd37(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1c(%rbp),%edi
lea    -0x130(%rbp),%rsi
mov    $0x100,%edx
call   1030 <write@plt>
cltq
cmp    $0x100,%rax
je     132f <main+0x18f>
lea    0xd0a(%rip),%rdi
call   1090 <perror@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x1c(%rbp),%edi
call   1050 <close@plt>
mov    -0x18(%rbp),%edi
call   1050 <close@plt>
lea    0xcf1(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    %edx,%eax
add    $0x1,%eax
mov    %eax,-0x138(%rbp)
mov    %eax,-0x14(%rbp)
lea    0xcba(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x2,%edi
call   10b0 <sleep@plt>
jmp    134a <main+0x1aa>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x110,%rsp
mov    0x2e32(%rip),%rax
mov    (%rax),%edi
mov    0x2e19(%rip),%rax
mov    (%rax),%esi
lea    0x8(%rsp),%rcx
xor    %edx,%edx
call   1080 <socketpair@plt>
test   %rax,%rax
js     133e <main+0x19e>
xor    %eax,%eax
call   10c0 <fork@plt>
test   %rax,%rax
jg     135f <main+0x1bf>
movaps 0xe13(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe17(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe1b(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe1f(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xe23(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xe27(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xe2b(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xe2f(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xe30(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xe31(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xe32(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xe33(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xe34(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xe35(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movaps 0xe36(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xe37(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
lea    0xe5f(%rip),%rdi
lea    0x10(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%edi
mov    %rbx,%rsi
mov    $0x100,%edx
call   1030 <write@plt>
cmp    $0x100,%eax
jne    13ee <main+0x24e>
mov    0x8(%rsp),%edi
call   1050 <close@plt>
mov    0xc(%rsp),%edi
call   1050 <close@plt>
mov    $0x1,%edx
lea    0xe0f(%rip),%r14
lea    0xe1f(%rip),%rbx
nopl   0x0(%rax,%rax,1)
lea    0x1(%rdx),%ebp
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x2,%edi
call   10b0 <sleep@plt>
mov    %ebp,%edx
jmp    1320 <main+0x180>
lea    0xdbb(%rip),%rdi
call   1090 <perror@plt>
mov    $0xffffffff,%eax
add    $0x110,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x8(%rsp),%edi
call   1050 <close@plt>
mov    0xc(%rsp),%edi
lea    0x10(%rsp),%rsi
mov    $0x1,%edx
call   1060 <read@plt>
cmp    $0x1,%eax
jne    13e5 <main+0x245>
lea    0xd99(%rip),%r14
lea    0xd7f(%rip),%r15
lea    0x10(%rsp),%r12
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
movzbl 0x10(%rsp),%ebp
mov    %r14,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
cmp    %bpl,%bl
sete   %dil
call   1070 <assert@plt>
add    $0x1,%bl
mov    $0x2,%edi
call   10b0 <sleep@plt>
mov    0xc(%rsp),%edi
mov    %r12,%rsi
mov    $0x1,%edx
call   1060 <read@plt>
cmp    $0x1,%eax
je     13a0 <main+0x200>
lea    0xd28(%rip),%rdi
jmp    13f5 <main+0x255>
lea    0xd35(%rip),%rdi
call   1090 <perror@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@AF_UNIX = global i32 0
@SOCK_STREAM = global i32 0
@.str = [13 x i8] c"socketpair()\00"
@.str.1 = [7 x i8] c"parent\00"
@.str.2 = [12 x i8] c"read failed\00"
@.str.3 = [7 x i8] c"%s %d\0A\00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [13 x i8] c"Write failed\00"
@.str.6 = [6 x i8] c"child\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [2 x i32]
%8 = alloca i8*
%9 = alloca i8
%10 = alloca i8
%11 = alloca [256 x i8]
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
%13 = load i32, i32* @AF_UNIX
%14 = load i32, i32* @SOCK_STREAM
%15 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%16 = call i64 @socketpair(i32 %13, i32 %14, i32 0, i32* %15)
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %2
%19 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret i32 -1
20: ; preds = %2
%21 = call i64 (...) @fork()
%22 = icmp sgt i64 %21, 0
br i1 %22, label %23, label %50
23: ; preds = %20
%24 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%25 = load i32, i32* %24
%26 = call i32 @close(i32 %25)
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8** %8
store i8 0, i8* %10
br label %27
27: ; preds = %23, %35
%28 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%29 = load i32, i32* %28
%30 = call i32 @read(i32 %29, i8* %9, i32 1)
%31 = icmp ne i32 %30, 1
br i1 %31, label %32, label %35
32: ; preds = %27
%33 = call i32 @perror(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%34 = call i32 @exit(i32 1)
unreachable
35: ; preds = %27
%36 = load i8*, i8** %8
%37 = load i8, i8* %9
%38 = zext i8 %37 to i32
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* %36, i32 %38)
%40 = load i8, i8* %10
%41 = zext i8 %40 to i32
%42 = load i8, i8* %9
%43 = zext i8 %42 to i32
%44 = icmp eq i32 %41, %43
%45 = zext i1 %44 to i32
%46 = call i32 @assert(i32 %45)
%47 = load i8, i8* %10
%48 = add i8 %47, 1
store i8 %48, i8* %10
%49 = call i32 @sleep(i32 2)
br label %27
50: ; preds = %20
store i32 0, i32* %12
br label %51
51: ; preds = %61, %50
%52 = load i32, i32* %12
%53 = zext i32 %52 to i64
%54 = icmp ult i64 %53, 256
br i1 %54, label %55, label %64
55: ; preds = %51
%56 = load i32, i32* %12
%57 = trunc i32 %56 to i8
%58 = load i32, i32* %12
%59 = zext i32 %58 to i64
%60 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 %59
store i8 %57, i8* %60
br label %61
61: ; preds = %55
%62 = load i32, i32* %12
%63 = add i32 %62, 1
store i32 %63, i32* %12
br label %51
64: ; preds = %51
%65 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %65)
%67 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%68 = load i32, i32* %67
%69 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%70 = call i32 @write(i32 %68, i8* %69, i32 256)
%71 = sext i32 %70 to i64
%72 = icmp ne i64 %71, 256
br i1 %72, label %73, label %76
73: ; preds = %64
%74 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%75 = call i32 @exit(i32 1)
unreachable
76: ; preds = %64
%77 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%78 = load i32, i32* %77
%79 = call i32 @close(i32 %78)
%80 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%81 = load i32, i32* %80
%82 = call i32 @close(i32 %81)
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8** %8
br label %83
83: ; preds = %76, %83
%84 = load i8*, i8** %8
%85 = load i32, i32* %6
%86 = add nsw i32 %85, 1
store i32 %86, i32* %6
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* %84, i32 %85)
%88 = call i32 @sleep(i32 2)
br label %83
}

LLVM IR (-O2):
@AF_UNIX = global i32 0
@SOCK_STREAM = global i32 0
@.str = [13 x i8] c"socketpair()\00"
@.str.1 = [7 x i8] c"parent\00"
@.str.2 = [12 x i8] c"read failed\00"
@.str.3 = [7 x i8] c"%s %d\0A\00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [13 x i8] c"Write failed\00"
@.str.6 = [6 x i8] c"child\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [2 x i32]
%4 = alloca i8
%5 = alloca [256 x i8]
%6 = bitcast [2 x i32]* %3 to i8*
%7 = load i32, i32* @AF_UNIX
%8 = load i32, i32* @SOCK_STREAM
%9 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%10 = call i64 @socketpair(i32 %7, i32 %8, i32 0, i32* %9)
%11 = icmp slt i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret i32 -1
14: ; preds = %2
%15 = call i64 (...) @fork()
%16 = icmp sgt i64 %15, 0
br i1 %16, label %17, label %40
17: ; preds = %14
%18 = load i32, i32* %9
%19 = call i32 @close(i32 %18)
%20 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%21 = load i32, i32* %20
%22 = call i32 @read(i32 %21, i8* %4, i32 1)
%23 = icmp eq i32 %22, 1
br i1 %23, label %27, label %24
24: ; preds = %27, %17
%25 = call i32 @perror(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%26 = call i32 @exit(i32 1)
unreachable
27: ; preds = %17, %27
%28 = phi i8 [ %35, %27 ], [ 0, %17 ]
%29 = load i8, i8* %4
%30 = zext i8 %29 to i32
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %30)
%32 = icmp eq i8 %28, %29
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 %33)
%35 = add i8 %28, 1
%36 = call i32 @sleep(i32 2)
%37 = load i32, i32* %20
%38 = call i32 @read(i32 %37, i8* %4, i32 1)
%39 = icmp eq i32 %38, 1
br i1 %39, label %27, label %24
40: ; preds = %14
%41 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%42 = bitcast [256 x i8]* %5 to <16 x i8>*
store <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, <16 x i8>* %42
%43 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 16
%44 = bitcast i8* %43 to <16 x i8>*
store <16 x i8> <i8 16, i8 17, i8 18, i8 19, i8 20, i8 21, i8 22, i8 23, i8 24, i8 25, i8 26, i8 27, i8 28, i8 29, i8 30, i8 31>, <16 x i8>* %44
%45 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 32
%46 = bitcast i8* %45 to <16 x i8>*
store <16 x i8> <i8 32, i8 33, i8 34, i8 35, i8 36, i8 37, i8 38, i8 39, i8 40, i8 41, i8 42, i8 43, i8 44, i8 45, i8 46, i8 47>, <16 x i8>* %46
%47 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 48
%48 = bitcast i8* %47 to <16 x i8>*
store <16 x i8> <i8 48, i8 49, i8 50, i8 51, i8 52, i8 53, i8 54, i8 55, i8 56, i8 57, i8 58, i8 59, i8 60, i8 61, i8 62, i8 63>, <16 x i8>* %48
%49 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 64
%50 = bitcast i8* %49 to <16 x i8>*
store <16 x i8> <i8 64, i8 65, i8 66, i8 67, i8 68, i8 69, i8 70, i8 71, i8 72, i8 73, i8 74, i8 75, i8 76, i8 77, i8 78, i8 79>, <16 x i8>* %50
%51 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 80
%52 = bitcast i8* %51 to <16 x i8>*
store <16 x i8> <i8 80, i8 81, i8 82, i8 83, i8 84, i8 85, i8 86, i8 87, i8 88, i8 89, i8 90, i8 91, i8 92, i8 93, i8 94, i8 95>, <16 x i8>* %52
%53 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 96
%54 = bitcast i8* %53 to <16 x i8>*
store <16 x i8> <i8 96, i8 97, i8 98, i8 99, i8 100, i8 101, i8 102, i8 103, i8 104, i8 105, i8 106, i8 107, i8 108, i8 109, i8 110, i8 111>, <16 x i8>* %54
%55 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 112
%56 = bitcast i8* %55 to <16 x i8>*
store <16 x i8> <i8 112, i8 113, i8 114, i8 115, i8 116, i8 117, i8 118, i8 119, i8 120, i8 121, i8 122, i8 123, i8 124, i8 125, i8 126, i8 127>, <16 x i8>* %56
%57 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 128
%58 = bitcast i8* %57 to <16 x i8>*
store <16 x i8> <i8 -128, i8 -127, i8 -126, i8 -125, i8 -124, i8 -123, i8 -122, i8 -121, i8 -120, i8 -119, i8 -118, i8 -117, i8 -116, i8 -115, i8 -114, i8 -113>, <16 x i8>* %58
%59 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 144
%60 = bitcast i8* %59 to <16 x i8>*
store <16 x i8> <i8 -112, i8 -111, i8 -110, i8 -109, i8 -108, i8 -107, i8 -106, i8 -105, i8 -104, i8 -103, i8 -102, i8 -101, i8 -100, i8 -99, i8 -98, i8 -97>, <16 x i8>* %60
%61 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 160
%62 = bitcast i8* %61 to <16 x i8>*
store <16 x i8> <i8 -96, i8 -95, i8 -94, i8 -93, i8 -92, i8 -91, i8 -90, i8 -89, i8 -88, i8 -87, i8 -86, i8 -85, i8 -84, i8 -83, i8 -82, i8 -81>, <16 x i8>* %62
%63 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 176
%64 = bitcast i8* %63 to <16 x i8>*
store <16 x i8> <i8 -80, i8 -79, i8 -78, i8 -77, i8 -76, i8 -75, i8 -74, i8 -73, i8 -72, i8 -71, i8 -70, i8 -69, i8 -68, i8 -67, i8 -66, i8 -65>, <16 x i8>* %64
%65 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 192
%66 = bitcast i8* %65 to <16 x i8>*
store <16 x i8> <i8 -64, i8 -63, i8 -62, i8 -61, i8 -60, i8 -59, i8 -58, i8 -57, i8 -56, i8 -55, i8 -54, i8 -53, i8 -52, i8 -51, i8 -50, i8 -49>, <16 x i8>* %66
%67 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 208
%68 = bitcast i8* %67 to <16 x i8>*
store <16 x i8> <i8 -48, i8 -47, i8 -46, i8 -45, i8 -44, i8 -43, i8 -42, i8 -41, i8 -40, i8 -39, i8 -38, i8 -37, i8 -36, i8 -35, i8 -34, i8 -33>, <16 x i8>* %68
%69 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 224
%70 = bitcast i8* %69 to <16 x i8>*
store <16 x i8> <i8 -32, i8 -31, i8 -30, i8 -29, i8 -28, i8 -27, i8 -26, i8 -25, i8 -24, i8 -23, i8 -22, i8 -21, i8 -20, i8 -19, i8 -18, i8 -17>, <16 x i8>* %70
%71 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 240
%72 = bitcast i8* %71 to <16 x i8>*
store <16 x i8> <i8 -16, i8 -15, i8 -14, i8 -13, i8 -12, i8 -11, i8 -10, i8 -9, i8 -8, i8 -7, i8 -6, i8 -5, i8 -4, i8 -3, i8 -2, i8 -1>, <16 x i8>* %72
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %41)
%74 = load i32, i32* %9
%75 = call i32 @write(i32 %74, i8* %41, i32 256)
%76 = icmp eq i32 %75, 256
br i1 %76, label %80, label %77
77: ; preds = %40
%78 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%79 = call i32 @exit(i32 1)
unreachable
80: ; preds = %40
%81 = load i32, i32* %9
%82 = call i32 @close(i32 %81)
%83 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%84 = load i32, i32* %83
%85 = call i32 @close(i32 %84)
br label %86
86: ; preds = %86, %80
%87 = phi i32 [ 1, %80 ], [ %88, %86 ]
%88 = add nuw nsw i32 %87, 1
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %87)
%90 = call i32 @sleep(i32 2)
br label %86
}