#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*/ EXIT_SUCCESS;
int /*<<< orphan*/ PF_LOCAL;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ memset(char **, int /*<<< orphan*/, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int read(int, char *, int);
scalar_t__ socketpair(int /*<<< orphan*/, int /*<<< orphan*/,
                      int /*<<< orphan*/, int *);
int /*<<< orphan*/ sprintf(char *, char *, int);
int /*<<< orphan*/ strlen(char *);
int write(int, char *, int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  int j, rc, sv[2];
  char string[2][128];
  if (socketpair(PF_LOCAL, SOCK_STREAM, 0, sv)) {
    perror("Failed to make a socket pair");
    exit(errno);
  };
  printf("\n");
  for (j = 0; j < 2; j++) {
    sprintf(string[j], "This is the message going out on sv[%d]", j);
    printf("Initial string %d is:          %s\n", j, string[j]);
    rc = write(sv[j], string[j], strlen(string[j]));
    printf("     rc from write on %d is %d\n", j, rc);
    memset(&string[j], 0, 128);
  }
  printf("\n");
  for (j = 0; j < 2; j++)
    printf("After clear, string %d is:     %s\n", j, string[j]);
  printf("\n");
  for (j = 0; j < 2; j++) {
    rc = read(sv[j], string[j], 128);
    printf("     rc from read  on %d is %d\n", j, rc);
    printf("After read back, string %d is: %s\n", j, string[j]);
    close(sv[j]);
  }
  printf("\n");
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e08(%rip),%rax
mov    (%rax),%edi
mov    0x2e17(%rip),%rax
mov    (%rax),%esi
lea    -0x20(%rbp),%rcx
xor    %edx,%edx
call   1090 <socketpair@plt>
cmp    $0x0,%rax
je     11fa <main+0x5a>
lea    0xe19(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2de5(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>
lea    0xec8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x2,-0x14(%rbp)
jge    12f2 <main+0x152>
movslq -0x14(%rbp),%rax
lea    -0x120(%rbp),%rdi
shl    $0x7,%rax
add    %rax,%rdi
mov    -0x14(%rbp),%edx
lea    0xde8(%rip),%rsi
call   10b0 <sprintf@plt>
mov    -0x14(%rbp),%esi
movslq -0x14(%rbp),%rax
lea    -0x120(%rbp),%rdx
shl    $0x7,%rax
add    %rax,%rdx
lea    0xdef(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movslq -0x14(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%eax
mov    %eax,-0x12c(%rbp)
movslq -0x14(%rbp),%rcx
lea    -0x120(%rbp),%rax
shl    $0x7,%rcx
add    %rcx,%rax
mov    %rax,-0x128(%rbp)
movslq -0x14(%rbp),%rax
lea    -0x120(%rbp),%rdi
shl    $0x7,%rax
add    %rax,%rdi
call   1040 <strlen@plt>
mov    -0x12c(%rbp),%edi
mov    -0x128(%rbp),%rsi
mov    %eax,%edx
call   1030 <write@plt>
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movslq -0x14(%rbp),%rax
lea    -0x120(%rbp),%rdi
shl    $0x7,%rax
add    %rax,%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1060 <memset@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    120f <main+0x6f>
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x2,-0x14(%rbp)
jge    1342 <main+0x1a2>
mov    -0x14(%rbp),%esi
movslq -0x14(%rbp),%rax
lea    -0x120(%rbp),%rdx
shl    $0x7,%rax
add    %rax,%rdx
lea    0xd5b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1307 <main+0x167>
lea    0xd80(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x2,-0x14(%rbp)
jge    13da <main+0x23a>
movslq -0x14(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%edi
movslq -0x14(%rbp),%rax
lea    -0x120(%rbp),%rsi
shl    $0x7,%rax
add    %rax,%rsi
mov    $0x80,%edx
call   1080 <read@plt>
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xd16(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%esi
movslq -0x14(%rbp),%rax
lea    -0x120(%rbp),%rdx
shl    $0x7,%rax
add    %rax,%rdx
lea    0xd13(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movslq -0x14(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%edi
call   1070 <close@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1357 <main+0x1b7>
lea    0xce8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2be1(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x118,%rsp
mov    0x2e00(%rip),%rax
mov    (%rax),%edi
mov    0x2e0f(%rip),%rax
mov    (%rax),%esi
lea    0x8(%rsp),%rcx
xor    %edx,%edx
call   10a0 <socketpair@plt>
test   %rax,%rax
jne    1395 <main+0x1e5>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe24(%rip),%r15
lea    0x10(%rsp),%r14
mov    %r14,%rdi
mov    %r15,%rsi
xor    %edx,%edx
call   10c0 <sprintf@plt>
lea    0xe33(%rip),%r12
mov    %r12,%rdi
xor    %esi,%esi
mov    %r14,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x8(%rsp),%ebx
mov    %r14,%rdi
call   1050 <strlen@plt>
mov    %ebx,%edi
mov    %r14,%rsi
mov    %eax,%edx
call   1040 <write@plt>
lea    0xe28(%rip),%r13
mov    %r13,%rdi
xor    %esi,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1070 <memset@plt>
lea    0x90(%rsp),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x1,%edx
call   10c0 <sprintf@plt>
mov    %r12,%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    0xc(%rsp),%ebp
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <write@plt>
mov    %r13,%rdi
mov    $0x1,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1070 <memset@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xdb8(%rip),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
mov    %r14,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x8(%rsp),%edi
mov    %r14,%rsi
mov    $0x80,%edx
call   1090 <read@plt>
lea    0xd98(%rip),%r15
mov    %r15,%rdi
xor    %esi,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xda3(%rip),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
mov    %r14,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x8(%rsp),%edi
call   1080 <close@plt>
mov    0xc(%rsp),%edi
mov    %rbx,%rsi
mov    $0x80,%edx
call   1090 <read@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    0xc(%rsp),%edi
call   1080 <close@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2c42(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
lea    0xc64(%rip),%rdi
call   10b0 <perror@plt>
mov    0x2c30(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
@PF_LOCAL = global i32 0
@SOCK_STREAM = global i32 0
@.str = [29 x i8] c"Failed to make a socket pair\00"
@errno = global i32 0
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [40 x i8] c"This is the message going out on sv[%d]\00"
@.str.3 = [35 x i8] c"Initial string %d is: %s\0A\00"
@.str.4 = [32 x i8] c" rc from write on %d is %d\0A\00"
@.str.5 = [35 x i8] c"After clear, string %d is: %s\0A\00"
@.str.6 = [32 x i8] c" rc from read on %d is %d\0A\00"
@.str.7 = [35 x i8] c"After read back, string %d is: %s\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca [2 x i32]
%9 = alloca [2 x [128 x i8]]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i32, i32* @PF_LOCAL
%11 = load i32, i32* @SOCK_STREAM
%12 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 0
%13 = call i64 @socketpair(i32 %10, i32 %11, i32 0, i32* %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %2
%16 = call i32 @perror(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%17 = load i32, i32* @errno
%18 = call i32 @exit(i32 %17)
unreachable
19: ; preds = %2
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %6
br label %21
21: ; preds = %59, %19
%22 = load i32, i32* %6
%23 = icmp slt i32 %22, 2
br i1 %23, label %24, label %62
24: ; preds = %21
%25 = load i32, i32* %6
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [2 x [128 x i8]], [2 x [128 x i8]]* %9, i64 0, i64 %26
%28 = getelementptr inbounds [128 x i8], [128 x i8]* %27, i64 0, i64 0
%29 = load i32, i32* %6
%30 = call i32 @sprintf(i8* %28, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 %29)
%31 = load i32, i32* %6
%32 = load i32, i32* %6
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [2 x [128 x i8]], [2 x [128 x i8]]* %9, i64 0, i64 %33
%35 = getelementptr inbounds [128 x i8], [128 x i8]* %34, i64 0, i64 0
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 %31, i8* %35)
%37 = load i32, i32* %6
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 %38
%40 = load i32, i32* %39
%41 = load i32, i32* %6
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [2 x [128 x i8]], [2 x [128 x i8]]* %9, i64 0, i64 %42
%44 = getelementptr inbounds [128 x i8], [128 x i8]* %43, i64 0, i64 0
%45 = load i32, i32* %6
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [2 x [128 x i8]], [2 x [128 x i8]]* %9, i64 0, i64 %46
%48 = getelementptr inbounds [128 x i8], [128 x i8]* %47, i64 0, i64 0
%49 = call i32 @strlen(i8* %48)
%50 = call i32 @write(i32 %40, i8* %44, i32 %49)
store i32 %50, i32* %7
%51 = load i32, i32* %6
%52 = load i32, i32* %7
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 %51, i32 %52)
%54 = load i32, i32* %6
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [2 x [128 x i8]], [2 x [128 x i8]]* %9, i64 0, i64 %55
%57 = bitcast [128 x i8]* %56 to i8**
%58 = call i32 @memset(i8** %57, i32 0, i32 128)
br label %59
59: ; preds = %24
%60 = load i32, i32* %6
%61 = add nsw i32 %60, 1
store i32 %61, i32* %6
br label %21
62: ; preds = %21
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %6
br label %64
64: ; preds = %74, %62
%65 = load i32, i32* %6
%66 = icmp slt i32 %65, 2
br i1 %66, label %67, label %77
67: ; preds = %64
%68 = load i32, i32* %6
%69 = load i32, i32* %6
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [2 x [128 x i8]], [2 x [128 x i8]]* %9, i64 0, i64 %70
%72 = getelementptr inbounds [128 x i8], [128 x i8]* %71, i64 0, i64 0
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i32 %68, i8* %72)
br label %74
74: ; preds = %67
%75 = load i32, i32* %6
%76 = add nsw i32 %75, 1
store i32 %76, i32* %6
br label %64
77: ; preds = %64
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %6
br label %79
79: ; preds = %106, %77
%80 = load i32, i32* %6
%81 = icmp slt i32 %80, 2
br i1 %81, label %82, label %109
82: ; preds = %79
%83 = load i32, i32* %6
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 %84
%86 = load i32, i32* %85
%87 = load i32, i32* %6
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [2 x [128 x i8]], [2 x [128 x i8]]* %9, i64 0, i64 %88
%90 = getelementptr inbounds [128 x i8], [128 x i8]* %89, i64 0, i64 0
%91 = call i32 @read(i32 %86, i8* %90, i32 128)
store i32 %91, i32* %7
%92 = load i32, i32* %6
%93 = load i32, i32* %7
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i32 %92, i32 %93)
%95 = load i32, i32* %6
%96 = load i32, i32* %6
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [2 x [128 x i8]], [2 x [128 x i8]]* %9, i64 0, i64 %97
%99 = getelementptr inbounds [128 x i8], [128 x i8]* %98, i64 0, i64 0
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0), i32 %95, i8* %99)
%101 = load i32, i32* %6
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 %102
%104 = load i32, i32* %103
%105 = call i32 @close(i32 %104)
br label %106
106: ; preds = %82
%107 = load i32, i32* %6
%108 = add nsw i32 %107, 1
store i32 %108, i32* %6
br label %79
109: ; preds = %79
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%111 = load i32, i32* @EXIT_SUCCESS
%112 = call i32 @exit(i32 %111)
unreachable
}

LLVM IR (-O2):
@PF_LOCAL = global i32 0
@SOCK_STREAM = global i32 0
@.str = [29 x i8] c"Failed to make a socket pair\00"
@errno = global i32 0
@.str.2 = [40 x i8] c"This is the message going out on sv[%d]\00"
@.str.3 = [35 x i8] c"Initial string %d is: %s\0A\00"
@.str.4 = [32 x i8] c" rc from write on %d is %d\0A\00"
@.str.5 = [35 x i8] c"After clear, string %d is: %s\0A\00"
@.str.6 = [32 x i8] c" rc from read on %d is %d\0A\00"
@.str.7 = [35 x i8] c"After read back, string %d is: %s\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [2 x i32]
%4 = alloca [2 x [128 x i8]]
%5 = bitcast [2 x i32]* %3 to i8*
%6 = getelementptr inbounds [2 x [128 x i8]], [2 x [128 x i8]]* %4, i64 0, i64 0, i64 0
%7 = load i32, i32* @PF_LOCAL
%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 eq i64 %10, 0
br i1 %11, label %16, label %12
12: ; preds = %2
%13 = call i32 @perror(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%14 = load i32, i32* @errno
%15 = call i32 @exit(i32 %14)
unreachable
16: ; preds = %2
%17 = call i32 @putchar(i32 10)
%18 = getelementptr inbounds [2 x [128 x i8]], [2 x [128 x i8]]* %4, i64 0, i64 0, i64 0
%19 = call i32 @sprintf(i8* %18, i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 0)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 0, i8* %18)
%21 = load i32, i32* %9
%22 = call i32 @strlen(i8* %18)
%23 = call i32 @write(i32 %21, i8* %18, i32 %22)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 %23)
%25 = bitcast [2 x [128 x i8]]* %4 to i8**
%26 = call i32 @memset(i8** %25, i32 0, i32 128)
%27 = getelementptr inbounds [2 x [128 x i8]], [2 x [128 x i8]]* %4, i64 0, i64 1
%28 = getelementptr inbounds [128 x i8], [128 x i8]* %27, i64 0, i64 0
%29 = call i32 @sprintf(i8* %28, i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 1)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 1, i8* %28)
%31 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%32 = load i32, i32* %31
%33 = call i32 @strlen(i8* %28)
%34 = call i32 @write(i32 %32, i8* %28, i32 %33)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 1, i32 %34)
%36 = bitcast [128 x i8]* %27 to i8**
%37 = call i32 @memset(i8** %36, i32 0, i32 128)
%38 = call i32 @putchar(i32 10)
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i32 0, i8* %6)
%40 = getelementptr inbounds [2 x [128 x i8]], [2 x [128 x i8]]* %4, i64 0, i64 1, i64 0
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i32 1, i8* %40)
%42 = call i32 @putchar(i32 10)
%43 = load i32, i32* %9
%44 = call i32 @read(i32 %43, i8* %6, i32 128)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i32 0, i32 %44)
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0), i32 0, i8* %6)
%47 = load i32, i32* %9
%48 = call i32 @close(i32 %47)
%49 = load i32, i32* %31
%50 = call i32 @read(i32 %49, i8* %40, i32 128)
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i32 1, i32 %50)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0), i32 1, i8* %40)
%53 = load i32, i32* %31
%54 = call i32 @close(i32 %53)
%55 = call i32 @putchar(i32 10)
%56 = load i32, i32* @EXIT_SUCCESS
%57 = call i32 @exit(i32 %56)
unreachable
}