#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*/ AF_UNIX;
int MAP_ANON;
char *MAP_FAILED;
int MAP_SHARED;
int PROT_READ;
int PROT_WRITE;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ abort();
int /*<<< orphan*/ assert(int);
int atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fork();
int /*<<< orphan*/ free(int *);
int /*<<< orphan*/ internal_recv(int, double *, int);
int /*<<< orphan*/ internal_send(int, double *, int);
double log_perf(char *, ...);
int *malloc(int);
int /*<<< orphan*/ memcpy(char *, void *, int);
char *mmap(int /*<<< orphan*/, int, int, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, double);
int socketpair(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/,
               int *);
int /*<<< orphan*/ syncup(int);
int /*<<< orphan*/ wait(int /*<<< orphan*/ *);
int main(int argc, char *argv[]) {
  int size, length, i;
  int *data;
  int *target;
  int fds[2];
  int shm_size = 360000;
  char *area;
  double bs, as, br, ar;
  if (argc > 1) {
    size = atoi(argv[1]);
    length = size / sizeof(int);
    size = sizeof(int) * length;
  } else
    exit(1);
  if (argc > 2) {
    shm_size = atoi(argv[2]);
  }
  if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == -1) {
    perror("socketpair");
    exit(1);
  }
  area =
      mmap(0, shm_size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_SHARED, -1, 0);
  if (area == MAP_FAILED) {
    perror("mmap: ");
    abort();
  }
  log_perf("before init, size=%d", size);
  data = malloc(size);
  for (i = 0; i < length; i++)
    data[i] = i;
  log_perf("after init");
  int count = 0;
  if (!fork()) {
    free(data);
    target = malloc(size);
    count = 0;
    syncup(fds[1]);
    br = log_perf("start read");
    while (count < size) {
      syncup(fds[1]);
      int read_size = (size - count) > shm_size ? shm_size : (size - count);
      memcpy(((void *)target) + count, area, read_size);
      count += read_size;
      syncup(fds[1]);
    }
    ar = log_perf("done read");
    internal_send(fds[1], &br, sizeof(double));
    internal_send(fds[1], &ar, sizeof(double));
    for (i = 0; i < length; i++)
      assert(target[i] == i);
  } else {
    count = 0;
    syncup(fds[0]);
    bs = log_perf("start write");
    while (count < size) {
      int write_size = (size - count) > shm_size ? shm_size : (size - count);
      memcpy(area, ((void *)data) + count, write_size);
      count += write_size;
      syncup(fds[0]);
      syncup(fds[0]);
    }
    as = log_perf("done write");
    internal_recv(fds[0], &br, sizeof(double));
    internal_recv(fds[0], &ar, sizeof(double));
    printf("TIME: %f\n",
           (((as) > (ar)) ? (as) : (ar)) - (((bs) < (br)) ? (bs) : (br)));
    wait(NULL);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x57e40,-0x3c(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    1265 <main+0x55>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10e0 <atoi@plt>
mov    %eax,-0x14(%rbp)
movslq -0x14(%rbp),%rax
shr    $0x2,%rax
mov    %eax,-0x18(%rbp)
movslq -0x18(%rbp),%rax
shl    $0x2,%rax
mov    %eax,-0x14(%rbp)
jmp    126f <main+0x5f>
mov    $0x1,%edi
call   10f0 <exit@plt>
cmpl   $0x2,-0x8(%rbp)
jle    1289 <main+0x79>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10e0 <atoi@plt>
mov    %eax,-0x3c(%rbp)
mov    0x2d48(%rip),%rax
mov    (%rax),%edi
mov    0x2d2f(%rip),%rax
mov    (%rax),%esi
lea    -0x38(%rbp),%rcx
xor    %edx,%edx
call   1090 <socketpair@plt>
cmp    $0xffffffff,%eax
jne    12c5 <main+0xb5>
lea    0xd4a(%rip),%rdi
call   10d0 <perror@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
mov    -0x3c(%rbp),%esi
mov    0x2d29(%rip),%rax
mov    (%rax),%edx
mov    0x2ce8(%rip),%rax
or     (%rax),%edx
mov    0x2cd7(%rip),%rax
mov    (%rax),%ecx
mov    0x2cfe(%rip),%rax
or     (%rax),%ecx
xor    %r9d,%r9d
mov    $0xffffffff,%r8d
mov    %r9d,%edi
call   1050 <mmap@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    0x2ca4(%rip),%rcx
cmp    (%rcx),%rax
jne    1328 <main+0x118>
lea    0xcef(%rip),%rdi
call   10d0 <perror@plt>
mov    $0x0,%al
call   1040 <abort@plt>
mov    -0x14(%rbp),%esi
lea    0xce0(%rip),%rdi
mov    $0x0,%al
call   10c0 <log_perf@plt>
mov    -0x14(%rbp),%edi
call   10a0 <malloc@plt>
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1374 <main+0x164>
mov    -0x1c(%rbp),%edx
mov    -0x28(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    134c <main+0x13c>
lea    0xcac(%rip),%rdi
mov    $0x0,%al
call   10c0 <log_perf@plt>
movl   $0x0,-0x6c(%rbp)
mov    $0x0,%al
call   1120 <fork@plt>
cmp    $0x0,%eax
jne    14b0 <main+0x2a0>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x14(%rbp),%edi
call   10a0 <malloc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x6c(%rbp)
mov    -0x34(%rbp),%edi
call   1100 <syncup@plt>
lea    0xc6e(%rip),%rdi
mov    $0x0,%al
call   10c0 <log_perf@plt>
movsd  %xmm0,-0x60(%rbp)
mov    -0x6c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    143a <main+0x22a>
mov    -0x34(%rbp),%edi
call   1100 <syncup@plt>
mov    -0x14(%rbp),%eax
sub    -0x6c(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jle    13fe <main+0x1ee>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x78(%rbp)
jmp    1407 <main+0x1f7>
mov    -0x14(%rbp),%eax
sub    -0x6c(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x78(%rbp),%eax
mov    %eax,-0x70(%rbp)
mov    -0x30(%rbp),%rdi
movslq -0x6c(%rbp),%rax
add    %rax,%rdi
mov    -0x48(%rbp),%rsi
mov    -0x70(%rbp),%edx
call   1080 <memcpy@plt>
mov    -0x70(%rbp),%eax
add    -0x6c(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x34(%rbp),%edi
call   1100 <syncup@plt>
jmp    13d0 <main+0x1c0>
lea    0xbfc(%rip),%rdi
mov    $0x0,%al
call   10c0 <log_perf@plt>
movsd  %xmm0,-0x68(%rbp)
mov    -0x34(%rbp),%edi
lea    -0x60(%rbp),%rsi
mov    $0x8,%edx
call   1130 <internal_send@plt>
mov    -0x34(%rbp),%edi
lea    -0x68(%rbp),%rsi
mov    $0x8,%edx
call   1130 <internal_send@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    14ab <main+0x29b>
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x1c(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1476 <main+0x266>
jmp    160c <main+0x3fc>
movl   $0x0,-0x6c(%rbp)
mov    -0x38(%rbp),%edi
call   1100 <syncup@plt>
lea    0xb81(%rip),%rdi
mov    $0x0,%al
call   10c0 <log_perf@plt>
movsd  %xmm0,-0x50(%rbp)
mov    -0x6c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    153c <main+0x32c>
mov    -0x14(%rbp),%eax
sub    -0x6c(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jle    14f8 <main+0x2e8>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x7c(%rbp)
jmp    1501 <main+0x2f1>
mov    -0x14(%rbp),%eax
sub    -0x6c(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x28(%rbp),%rsi
movslq -0x6c(%rbp),%rax
add    %rax,%rsi
mov    -0x74(%rbp),%edx
call   1080 <memcpy@plt>
mov    -0x74(%rbp),%eax
add    -0x6c(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x38(%rbp),%edi
call   1100 <syncup@plt>
mov    -0x38(%rbp),%edi
call   1100 <syncup@plt>
jmp    14d2 <main+0x2c2>
lea    0xb10(%rip),%rdi
mov    $0x0,%al
call   10c0 <log_perf@plt>
movsd  %xmm0,-0x58(%rbp)
mov    -0x38(%rbp),%edi
lea    -0x60(%rbp),%rsi
mov    $0x8,%edx
call   10b0 <internal_recv@plt>
mov    -0x38(%rbp),%edi
lea    -0x68(%rbp),%rsi
mov    $0x8,%edx
call   10b0 <internal_recv@plt>
movsd  -0x58(%rbp),%xmm0
ucomisd -0x68(%rbp),%xmm0
jbe    1593 <main+0x383>
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
jmp    15a0 <main+0x390>
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x50(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    15d6 <main+0x3c6>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
jmp    15e3 <main+0x3d3>
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x98(%rbp),%xmm1
ff
subsd  %xmm1,%xmm0
lea    0xa60(%rip),%rdi
call   1060 <printf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1110 <wait@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
cmp    $0x2,%edi
jl     165c <main+0x44c>
mov    %rsi,%rbx
mov    %edi,%ebp
mov    0x8(%rsi),%rdi
call   10e0 <atoi@plt>
mov    %eax,%r14d
mov    $0x57e40,%r12d
cmp    $0x2,%ebp
je     124f <main+0x3f>
mov    0x10(%rbx),%rdi
call   10e0 <atoi@plt>
mov    %eax,%r12d
mov    0x2d82(%rip),%rax
mov    (%rax),%edi
mov    0x2d69(%rip),%rax
mov    (%rax),%esi
mov    %rsp,%rcx
xor    %edx,%edx
call   1090 <socketpair@plt>
cmp    $0xffffffff,%eax
je     1666 <main+0x456>
mov    0x2d7d(%rip),%rax
mov    0x2d3e(%rip),%rcx
mov    (%rcx),%edx
or     (%rax),%edx
mov    0x2d2b(%rip),%rax
mov    0x2d54(%rip),%rcx
mov    (%rcx),%ecx
or     (%rax),%ecx
xor    %edi,%edi
mov    %r12d,%esi
mov    $0xffffffff,%r8d
xor    %r9d,%r9d
call   1050 <mmap@plt>
mov    %rax,%r15
mov    0x2cfb(%rip),%rax
cmp    (%rax),%r15
je     167c <main+0x46c>
mov    %r14d,%ebp
sar    $0x2,%ebp
mov    %r14d,%ebx
mov    %r14d,%r13d
and    $0xfffffffc,%r13d
lea    0xdcd(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   10c0 <log_perf@plt>
mov    %r13d,%edi
call   10a0 <malloc@plt>
mov    %rax,%r14
mov    %ebx,0x10(%rsp)
cmp    $0x4,%ebx
jl     147d <main+0x26d>
cmp    $0x2,%ebp
mov    $0x1,%eax
cmovge %ebp,%eax
cmp    $0x8,%eax
jae    130e <main+0xfe>
xor    %ecx,%ecx
jmp    1470 <main+0x260>
mov    %eax,%ecx
and    $0x7ffffff8,%ecx
lea    -0x8(%rcx),%rdi
mov    %rdi,%rsi
shr    $0x3,%rsi
add    $0x1,%rsi
mov    %esi,%edx
and    $0x3,%edx
cmp    $0x18,%rdi
jae    133f <main+0x12f>
movdqa 0xcc8(%rip),%xmm0
xor    %edi,%edi
jmp    1410 <main+0x200>
and    $0xfffffffffffffffc,%rsi
movdqa 0xcb5(%rip),%xmm0
xor    %edi,%edi
movdqa 0xcba(%rip),%xmm8
movdqa 0xcc1(%rip),%xmm9
movdqa 0xcc8(%rip),%xmm10
movdqa 0xcd0(%rip),%xmm4
movdqa 0xcd8(%rip),%xmm5
movdqa 0xce0(%rip),%xmm6
movdqa 0xce8(%rip),%xmm7
movdqa 0xcf0(%rip),%xmm1
movdqa %xmm0,%xmm2
paddd  %xmm8,%xmm2
movdqu %xmm0,(%r14,%rdi,4)
movdqu %xmm2,0x10(%r14,%rdi,4)
movdqa %xmm0,%xmm2
paddd  %xmm9,%xmm2
movdqa %xmm0,%xmm3
paddd  %xmm10,%xmm3
movdqu %xmm2,0x20(%r14,%rdi,4)
movdqu %xmm3,0x30(%r14,%rdi,4)
movdqa %xmm0,%xmm2
paddd  %xmm4,%xmm2
movdqa %xmm0,%xmm3
paddd  %xmm5,%xmm3
movdqu %xmm2,0x40(%r14,%rdi,4)
movdqu %xmm3,0x50(%r14,%rdi,4)
movdqa %xmm0,%xmm2
paddd  %xmm6,%xmm2
movdqa %xmm0,%xmm3
paddd  %xmm7,%xmm3
movdqu %xmm2,0x60(%r14,%rdi,4)
movdqu %xmm3,0x70(%r14,%rdi,4)
add    $0x20,%rdi
paddd  %xmm1,%xmm0
add    $0xfffffffffffffffc,%rsi
jne    1390 <main+0x180>
test   %rdx,%rdx
je     1460 <main+0x250>
lea    (%r14,%rdi,4),%rsi
add    $0x10,%rsi
shl    $0x5,%rdx
xor    %edi,%edi
movdqa 0xbe5(%rip),%xmm1
movdqa 0xbed(%rip),%xmm2
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movdqa %xmm0,%xmm3
paddd  %xmm1,%xmm3
movdqu %xmm0,-0x10(%rsi,%rdi,1)
movdqu %xmm3,(%rsi,%rdi,1)
paddd  %xmm2,%xmm0
add    $0x20,%rdi
cmp    %rdi,%rdx
jne    1440 <main+0x230>
cmp    %rax,%rcx
je     147d <main+0x26d>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %ecx,(%r14,%rcx,4)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1470 <main+0x260>
lea    0xc33(%rip),%rdi
xor    %eax,%eax
call   10c0 <log_perf@plt>
xor    %eax,%eax
call   1120 <fork@plt>
test   %eax,%eax
je     1564 <main+0x354>
mov    (%rsp),%edi
call   1100 <syncup@plt>
lea    0xc2e(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   10c0 <log_perf@plt>
movq   %xmm0,0x10(%rsp)
test   %r13d,%r13d
jle    14f4 <main+0x2e4>
nopl   (%rax)
mov    %r13d,%ebp
sub    %ebx,%ebp
cmp    %r12d,%ebp
cmovg  %r12d,%ebp
movslq %ebx,%rbx
lea    (%r14,%rbx,1),%rsi
mov    %r15,%rdi
mov    %ebp,%edx
call   1080 <memcpy@plt>
add    %ebp,%ebx
mov    (%rsp),%edi
call   1100 <syncup@plt>
mov    (%rsp),%edi
call   1100 <syncup@plt>
cmp    %ebx,%r13d
jg     14c0 <main+0x2b0>
lea    0xbe8(%rip),%rdi
xor    %eax,%eax
call   10c0 <log_perf@plt>
movq   %xmm0,0x8(%rsp)
mov    (%rsp),%edi
lea    0x20(%rsp),%rsi
mov    $0x8,%edx
call   10b0 <internal_recv@plt>
mov    (%rsp),%edi
lea    0x18(%rsp),%rsi
mov    $0x8,%edx
call   10b0 <internal_recv@plt>
movsd  0x8(%rsp),%xmm1
maxsd  0x18(%rsp),%xmm1
movsd  0x10(%rsp),%xmm0
minsd  0x20(%rsp),%xmm0
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
lea    0xb9b(%rip),%rdi
call   1060 <printf@plt>
xor    %edi,%edi
call   1110 <wait@plt>
jmp    164b <main+0x43b>
mov    %ebp,0x8(%rsp)
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r13d,%edi
call   10a0 <malloc@plt>
mov    %rax,%r14
mov    0x4(%rsp),%edi
call   1100 <syncup@plt>
lea    0xb37(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   10c0 <log_perf@plt>
movq   %xmm0,0x20(%rsp)
test   %r13d,%r13d
jle    15d6 <main+0x3c6>
nop
mov    0x4(%rsp),%edi
call   1100 <syncup@plt>
mov    %r13d,%ebp
sub    %ebx,%ebp
cmp    %r12d,%ebp
cmovg  %r12d,%ebp
movslq %ebx,%rbx
lea    (%r14,%rbx,1),%rdi
mov    %r15,%rsi
mov    %ebp,%edx
call   1080 <memcpy@plt>
add    %ebp,%ebx
mov    0x4(%rsp),%edi
call   1100 <syncup@plt>
cmp    %ebx,%r13d
jg     15a0 <main+0x390>
lea    0xaf0(%rip),%rdi
xor    %eax,%eax
call   10c0 <log_perf@plt>
movq   %xmm0,0x18(%rsp)
mov    0x4(%rsp),%edi
lea    0x20(%rsp),%rsi
mov    $0x8,%edx
call   1130 <internal_send@plt>
mov    0x4(%rsp),%edi
lea    0x18(%rsp),%rsi
mov    $0x8,%edx
call   1130 <internal_send@plt>
cmpl   $0x4,0x10(%rsp)
jl     164b <main+0x43b>
mov    0x8(%rsp),%eax
cmp    $0x2,%eax
mov    $0x1,%ebx
cmovge %eax,%ebx
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rbp,4),%eax
xor    %edi,%edi
cmp    %rax,%rbp
sete   %dil
call   1070 <assert@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1630 <main+0x420>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%edi
call   10f0 <exit@plt>
lea    0xa23(%rip),%rdi
call   10d0 <perror@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
lea    0xa18(%rip),%rdi
call   10d0 <perror@plt>
xor    %eax,%eax
call   1040 <abort@plt>

LLVM IR (-O0):
@AF_UNIX = global i32 0
@SOCK_STREAM = global i32 0
@.str = [11 x i8] c"socketpair\00"
@PROT_READ = global i32 0
@PROT_WRITE = global i32 0
@MAP_ANON = global i32 0
@MAP_SHARED = global i32 0
@MAP_FAILED = global i8* null
@.str.1 = [7 x i8] c"mmap: \00"
@.str.2 = [21 x i8] c"before init, size=%d\00"
@.str.3 = [11 x i8] c"after init\00"
@.str.4 = [11 x i8] c"start read\00"
@.str.5 = [10 x i8] c"done read\00"
@.str.6 = [12 x i8] c"start write\00"
@.str.7 = [11 x i8] c"done write\00"
@.str.8 = [10 x i8] c"TIME: %f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca [2 x i32]
%12 = alloca i32
%13 = alloca i8*
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 360000, i32* %12
%21 = load i32, i32* %4
%22 = icmp sgt i32 %21, 1
br i1 %22, label %23, label %36
23: ; preds = %2
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
%27 = call i32 @atoi(i8* %26)
store i32 %27, i32* %6
%28 = load i32, i32* %6
%29 = sext i32 %28 to i64
%30 = udiv i64 %29, 4
%31 = trunc i64 %30 to i32
store i32 %31, i32* %7
%32 = load i32, i32* %7
%33 = sext i32 %32 to i64
%34 = mul i64 4, %33
%35 = trunc i64 %34 to i32
store i32 %35, i32* %6
br label %38
36: ; preds = %2
%37 = call i32 @exit(i32 1)
unreachable
38: ; preds = %23
%39 = load i32, i32* %4
%40 = icmp sgt i32 %39, 2
br i1 %40, label %41, label %46
41: ; preds = %38
%42 = load i8**, i8*** %5
%43 = getelementptr inbounds i8*, i8** %42, i64 2
%44 = load i8*, i8** %43
%45 = call i32 @atoi(i8* %44)
store i32 %45, i32* %12
br label %46
46: ; preds = %41, %38
%47 = load i32, i32* @AF_UNIX
%48 = load i32, i32* @SOCK_STREAM
%49 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%50 = call i32 @socketpair(i32 %47, i32 %48, i32 0, i32* %49)
%51 = icmp eq i32 %50, -1
br i1 %51, label %52, label %55
52: ; preds = %46
%53 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%54 = call i32 @exit(i32 1)
unreachable
55: ; preds = %46
%56 = load i32, i32* %12
%57 = load i32, i32* @PROT_READ
%58 = load i32, i32* @PROT_WRITE
%59 = or i32 %57, %58
%60 = load i32, i32* @MAP_ANON
%61 = load i32, i32* @MAP_SHARED
%62 = or i32 %60, %61
%63 = call i8* @mmap(i32 0, i32 %56, i32 %59, i32 %62, i32 -1, i32 0)
store i8* %63, i8** %13
%64 = load i8*, i8** %13
%65 = load i8*, i8** @MAP_FAILED
%66 = icmp eq i8* %64, %65
br i1 %66, label %67, label %70
67: ; preds = %55
%68 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%69 = call i32 (...) @abort()
unreachable
70: ; preds = %55
%71 = load i32, i32* %6
%72 = call double (i8*, ...) @log_perf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %71)
%73 = load i32, i32* %6
%74 = call i32* @malloc(i32 %73)
store i32* %74, i32** %9
store i32 0, i32* %8
br label %75
75: ; preds = %85, %70
%76 = load i32, i32* %8
%77 = load i32, i32* %7
%78 = icmp slt i32 %76, %77
br i1 %78, label %79, label %88
79: ; preds = %75
%80 = load i32, i32* %8
%81 = load i32*, i32** %9
%82 = load i32, i32* %8
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, i32* %81, i64 %83
store i32 %80, i32* %84
br label %85
85: ; preds = %79
%86 = load i32, i32* %8
%87 = add nsw i32 %86, 1
store i32 %87, i32* %8
br label %75
88: ; preds = %75
%89 = call double (i8*, ...) @log_perf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %18
%90 = call i32 (...) @fork()
%91 = icmp ne i32 %90, 0
br i1 %91, label %162, label %92
92: ; preds = %88
%93 = load i32*, i32** %9
%94 = call i32 @free(i32* %93)
%95 = load i32, i32* %6
%96 = call i32* @malloc(i32 %95)
store i32* %96, i32** %10
store i32 0, i32* %18
%97 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 1
%98 = load i32, i32* %97
%99 = call i32 @syncup(i32 %98)
%100 = call double (i8*, ...) @log_perf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
store double %100, double* %16
br label %101
101: ; preds = %120, %92
%102 = load i32, i32* %18
%103 = load i32, i32* %6
%104 = icmp slt i32 %102, %103
br i1 %104, label %105, label %136
105: ; preds = %101
%106 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 1
%107 = load i32, i32* %106
%108 = call i32 @syncup(i32 %107)
%109 = load i32, i32* %6
%110 = load i32, i32* %18
%111 = sub nsw i32 %109, %110
%112 = load i32, i32* %12
%113 = icmp sgt i32 %111, %112
br i1 %113, label %114, label %116
114: ; preds = %105
%115 = load i32, i32* %12
br label %120
116: ; preds = %105
%117 = load i32, i32* %6
%118 = load i32, i32* %18
%119 = sub nsw i32 %117, %118
br label %120
120: ; preds = %116, %114
%121 = phi i32 [ %115, %114 ], [ %119, %116 ]
store i32 %121, i32* %19
%122 = load i32*, i32** %10
%123 = bitcast i32* %122 to i8*
%124 = load i32, i32* %18
%125 = sext i32 %124 to i64
%126 = getelementptr i8, i8* %123, i64 %125
%127 = load i8*, i8** %13
%128 = load i32, i32* %19
%129 = call i32 @memcpy(i8* %126, i8* %127, i32 %128)
%130 = load i32, i32* %19
%131 = load i32, i32* %18
%132 = add nsw i32 %131, %130
store i32 %132, i32* %18
%133 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 1
%134 = load i32, i32* %133
%135 = call i32 @syncup(i32 %134)
br label %101
136: ; preds = %101
%137 = call double (i8*, ...) @log_perf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
store double %137, double* %17
%138 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 1
%139 = load i32, i32* %138
%140 = call i32 @internal_send(i32 %139, double* %16, i32 8)
%141 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 1
%142 = load i32, i32* %141
%143 = call i32 @internal_send(i32 %142, double* %17, i32 8)
store i32 0, i32* %8
br label %144
144: ; preds = %158, %136
%145 = load i32, i32* %8
%146 = load i32, i32* %7
%147 = icmp slt i32 %145, %146
br i1 %147, label %148, label %161
148: ; preds = %144
%149 = load i32*, i32** %10
%150 = load i32, i32* %8
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds i32, i32* %149, i64 %151
%153 = load i32, i32* %152
%154 = load i32, i32* %8
%155 = icmp eq i32 %153, %154
%156 = zext i1 %155 to i32
%157 = call i32 @assert(i32 %156)
br label %158
158: ; preds = %148
%159 = load i32, i32* %8
%160 = add nsw i32 %159, 1
store i32 %160, i32* %8
br label %144
161: ; preds = %144
br label %231
162: ; preds = %88
store i32 0, i32* %18
%163 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%164 = load i32, i32* %163
%165 = call i32 @syncup(i32 %164)
%166 = call double (i8*, ...) @log_perf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
store double %166, double* %14
br label %167
167: ; preds = %183, %162
%168 = load i32, i32* %18
%169 = load i32, i32* %6
%170 = icmp slt i32 %168, %169
br i1 %170, label %171, label %202
171: ; preds = %167
%172 = load i32, i32* %6
%173 = load i32, i32* %18
%174 = sub nsw i32 %172, %173
%175 = load i32, i32* %12
%176 = icmp sgt i32 %174, %175
br i1 %176, label %177, label %179
177: ; preds = %171
%178 = load i32, i32* %12
br label %183
179: ; preds = %171
%180 = load i32, i32* %6
%181 = load i32, i32* %18
%182 = sub nsw i32 %180, %181
br label %183
183: ; preds = %179, %177
%184 = phi i32 [ %178, %177 ], [ %182, %179 ]
store i32 %184, i32* %20
%185 = load i8*, i8** %13
%186 = load i32*, i32** %9
%187 = bitcast i32* %186 to i8*
%188 = load i32, i32* %18
%189 = sext i32 %188 to i64
%190 = getelementptr i8, i8* %187, i64 %189
%191 = load i32, i32* %20
%192 = call i32 @memcpy(i8* %185, i8* %190, i32 %191)
%193 = load i32, i32* %20
%194 = load i32, i32* %18
%195 = add nsw i32 %194, %193
store i32 %195, i32* %18
%196 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%197 = load i32, i32* %196
%198 = call i32 @syncup(i32 %197)
%199 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%200 = load i32, i32* %199
%201 = call i32 @syncup(i32 %200)
br label %167
202: ; preds = %167
%203 = call double (i8*, ...) @log_perf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
store double %203, double* %15
%204 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%205 = load i32, i32* %204
%206 = call i32 @internal_recv(i32 %205, double* %16, i32 8)
%207 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%208 = load i32, i32* %207
%209 = call i32 @internal_recv(i32 %208, double* %17, i32 8)
%210 = load double, double* %15
%211 = load double, double* %17
%212 = fcmp ogt double %210, %211
br i1 %212, label %213, label %215
213: ; preds = %202
%214 = load double, double* %15
br label %217
215: ; preds = %202
%216 = load double, double* %17
br label %217
217: ; preds = %215, %213
%218 = phi double [ %214, %213 ], [ %216, %215 ]
%219 = load double, double* %14
%220 = load double, double* %16
%221 = fcmp olt double %219, %220
br i1 %221, label %222, label %224
222: ; preds = %217
%223 = load double, double* %14
br label %226
224: ; preds = %217
%225 = load double, double* %16
br label %226
226: ; preds = %224, %222
%227 = phi double [ %223, %222 ], [ %225, %224 ]
%228 = fsub double %218, %227
%229 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), double %228)
%230 = call i32 @wait(i32* null)
br label %231
231: ; preds = %226, %161
ret i32 0
}

LLVM IR (-O2):
@AF_UNIX = global i32 0
@SOCK_STREAM = global i32 0
@.str = [11 x i8] c"socketpair\00"
@PROT_READ = global i32 0
@PROT_WRITE = global i32 0
@MAP_ANON = global i32 0
@MAP_SHARED = global i32 0
@MAP_FAILED = global i8* null
@.str.1 = [7 x i8] c"mmap: \00"
@.str.2 = [21 x i8] c"before init, size=%d\00"
@.str.3 = [11 x i8] c"after init\00"
@.str.4 = [11 x i8] c"start read\00"
@.str.5 = [10 x i8] c"done read\00"
@.str.6 = [12 x i8] c"start write\00"
@.str.7 = [11 x i8] c"done write\00"
@.str.8 = [10 x i8] c"TIME: %f\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [2 x i32]
%4 = alloca double
%5 = alloca double
%6 = bitcast [2 x i32]* %3 to i8*
%7 = bitcast double* %4 to i8*
%8 = bitcast double* %5 to i8*
%9 = icmp sgt i32 %0, 1
br i1 %9, label %10, label %17
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = tail call i32 @atoi(i8* %12)
%14 = ashr i32 %13, 2
%15 = and i32 %13, -4
%16 = icmp eq i32 %0, 2
br i1 %16, label %23, label %19
17: ; preds = %2
%18 = tail call i32 @exit(i32 1)
unreachable
19: ; preds = %10
%20 = getelementptr inbounds i8*, i8** %1, i64 2
%21 = load i8*, i8** %20
%22 = tail call i32 @atoi(i8* %21)
br label %23
23: ; preds = %19, %10
%24 = phi i32 [ %22, %19 ], [ 360000, %10 ]
%25 = load i32, i32* @AF_UNIX
%26 = load i32, i32* @SOCK_STREAM
%27 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%28 = call i32 @socketpair(i32 %25, i32 %26, i32 0, i32* %27)
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %33
30: ; preds = %23
%31 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%32 = call i32 @exit(i32 1)
unreachable
33: ; preds = %23
%34 = load i32, i32* @PROT_READ
%35 = load i32, i32* @PROT_WRITE
%36 = or i32 %35, %34
%37 = load i32, i32* @MAP_ANON
%38 = load i32, i32* @MAP_SHARED
%39 = or i32 %38, %37
%40 = call i8* @mmap(i32 0, i32 %24, i32 %36, i32 %39, i32 -1, i32 0)
%41 = load i8*, i8** @MAP_FAILED
%42 = icmp eq i8* %40, %41
br i1 %42, label %43, label %46
43: ; preds = %33
%44 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%45 = call i32 (...) @abort()
unreachable
46: ; preds = %33
%47 = call double (i8*, ...) @log_perf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %15)
%48 = call i32* @malloc(i32 %15)
%49 = icmp sgt i32 %13, 3
br i1 %49, label %50, label %124
50: ; preds = %46
%51 = call i32 @llvm.smax.i32(i32 %14, i32 1)
%52 = zext i32 %51 to i64
%53 = icmp ult i32 %51, 8
br i1 %53, label %116, label %54
54: ; preds = %50
%55 = and i64 %52, 2147483640
%56 = add nsw i64 %55, -8
%57 = lshr exact i64 %56, 3
%58 = add nuw nsw i64 %57, 1
%59 = and i64 %58, 3
%60 = icmp ult i64 %56, 24
br i1 %60, label %97, label %61
61: ; preds = %54
%62 = and i64 %58, 4611686018427387900
br label %63
63: ; preds = %63, %61
%64 = phi i64 [ 0, %61 ], [ %93, %63 ]
%65 = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %61 ], [ %94, %63 ]
%66 = phi i64 [ 0, %61 ], [ %95, %63 ]
%67 = add <4 x i32> %65, <i32 4, i32 4, i32 4, i32 4>
%68 = getelementptr inbounds i32, i32* %48, i64 %64
%69 = bitcast i32* %68 to <4 x i32>*
store <4 x i32> %65, <4 x i32>* %69
%70 = getelementptr inbounds i32, i32* %68, i64 4
%71 = bitcast i32* %70 to <4 x i32>*
store <4 x i32> %67, <4 x i32>* %71
%72 = or i64 %64, 8
%73 = add <4 x i32> %65, <i32 8, i32 8, i32 8, i32 8>
%74 = add <4 x i32> %65, <i32 12, i32 12, i32 12, i32 12>
%75 = getelementptr inbounds i32, i32* %48, i64 %72
%76 = bitcast i32* %75 to <4 x i32>*
store <4 x i32> %73, <4 x i32>* %76
%77 = getelementptr inbounds i32, i32* %75, i64 4
%78 = bitcast i32* %77 to <4 x i32>*
store <4 x i32> %74, <4 x i32>* %78
%79 = or i64 %64, 16
%80 = add <4 x i32> %65, <i32 16, i32 16, i32 16, i32 16>
%81 = add <4 x i32> %65, <i32 20, i32 20, i32 20, i32 20>
%82 = getelementptr inbounds i32, i32* %48, i64 %79
%83 = bitcast i32* %82 to <4 x i32>*
store <4 x i32> %80, <4 x i32>* %83
%84 = getelementptr inbounds i32, i32* %82, i64 4
%85 = bitcast i32* %84 to <4 x i32>*
store <4 x i32> %81, <4 x i32>* %85
%86 = or i64 %64, 24
%87 = add <4 x i32> %65, <i32 24, i32 24, i32 24, i32 24>
%88 = add <4 x i32> %65, <i32 28, i32 28, i32 28, i32 28>
%89 = getelementptr inbounds i32, i32* %48, i64 %86
%90 = bitcast i32* %89 to <4 x i32>*
store <4 x i32> %87, <4 x i32>* %90
%91 = getelementptr inbounds i32, i32* %89, i64 4
%92 = bitcast i32* %91 to <4 x i32>*
store <4 x i32> %88, <4 x i32>* %92
%93 = add nuw i64 %64, 32
%94 = add <4 x i32> %65, <i32 32, i32 32, i32 32, i32 32>
%95 = add i64 %66, 4
%96 = icmp eq i64 %95, %62
br i1 %96, label %97, label %63
97: ; preds = %63, %54
%98 = phi i64 [ 0, %54 ], [ %93, %63 ]
%99 = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %54 ], [ %94, %63 ]
%100 = icmp eq i64 %59, 0
br i1 %100, label %114, label %101
101: ; preds = %97, %101
%102 = phi i64 [ %110, %101 ], [ %98, %97 ]
%103 = phi <4 x i32> [ %111, %101 ], [ %99, %97 ]
%104 = phi i64 [ %112, %101 ], [ 0, %97 ]
%105 = add <4 x i32> %103, <i32 4, i32 4, i32 4, i32 4>
%106 = getelementptr inbounds i32, i32* %48, i64 %102
%107 = bitcast i32* %106 to <4 x i32>*
store <4 x i32> %103, <4 x i32>* %107
%108 = getelementptr inbounds i32, i32* %106, i64 4
%109 = bitcast i32* %108 to <4 x i32>*
store <4 x i32> %105, <4 x i32>* %109
%110 = add nuw i64 %102, 8
%111 = add <4 x i32> %103, <i32 8, i32 8, i32 8, i32 8>
%112 = add i64 %104, 1
%113 = icmp eq i64 %112, %59
br i1 %113, label %114, label %101
114: ; preds = %101, %97
%115 = icmp eq i64 %55, %52
br i1 %115, label %124, label %116
116: ; preds = %50, %114
%117 = phi i64 [ 0, %50 ], [ %55, %114 ]
br label %118
118: ; preds = %116, %118
%119 = phi i64 [ %122, %118 ], [ %117, %116 ]
%120 = getelementptr inbounds i32, i32* %48, i64 %119
%121 = trunc i64 %119 to i32
store i32 %121, i32* %120
%122 = add nuw nsw i64 %119, 1
%123 = icmp eq i64 %122, %52
br i1 %123, label %124, label %118
124: ; preds = %118, %114, %46
%125 = call double (i8*, ...) @log_perf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%126 = call i32 (...) @fork()
%127 = icmp eq i32 %126, 0
br i1 %127, label %128, label %171
128: ; preds = %124
%129 = call i32 @free(i32* %48)
%130 = call i32* @malloc(i32 %15)
%131 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%132 = load i32, i32* %131
%133 = call i32 @syncup(i32 %132)
%134 = call double (i8*, ...) @log_perf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
store double %134, double* %4
%135 = icmp sgt i32 %15, 0
br i1 %135, label %136, label %152
136: ; preds = %128
%137 = bitcast i32* %130 to i8*
br label %138
138: ; preds = %136, %138
%139 = phi i32 [ 0, %136 ], [ %148, %138 ]
%140 = load i32, i32* %131
%141 = call i32 @syncup(i32 %140)
%142 = sub nsw i32 %15, %139
%143 = icmp sgt i32 %142, %24
%144 = select i1 %143, i32 %24, i32 %142
%145 = sext i32 %139 to i64
%146 = getelementptr i8, i8* %137, i64 %145
%147 = call i32 @memcpy(i8* %146, i8* %40, i32 %144)
%148 = add nsw i32 %144, %139
%149 = load i32, i32* %131
%150 = call i32 @syncup(i32 %149)
%151 = icmp sgt i32 %15, %148
br i1 %151, label %138, label %152
152: ; preds = %138, %128
%153 = call double (i8*, ...) @log_perf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
store double %153, double* %5
%154 = load i32, i32* %131
%155 = call i32 @internal_send(i32 %154, double* %4, i32 8)
%156 = load i32, i32* %131
%157 = call i32 @internal_send(i32 %156, double* %5, i32 8)
br i1 %49, label %158, label %207
158: ; preds = %152
%159 = call i32 @llvm.smax.i32(i32 %14, i32 1)
%160 = zext i32 %159 to i64
br label %161
161: ; preds = %158, %161
%162 = phi i64 [ 0, %158 ], [ %169, %161 ]
%163 = getelementptr inbounds i32, i32* %130, i64 %162
%164 = load i32, i32* %163
%165 = zext i32 %164 to i64
%166 = icmp eq i64 %162, %165
%167 = zext i1 %166 to i32
%168 = call i32 @assert(i32 %167)
%169 = add nuw nsw i64 %162, 1
%170 = icmp eq i64 %169, %160
br i1 %170, label %207, label %161
171: ; preds = %124
%172 = load i32, i32* %27
%173 = call i32 @syncup(i32 %172)
%174 = call double (i8*, ...) @log_perf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%175 = icmp sgt i32 %15, 0
br i1 %175, label %176, label %192
176: ; preds = %171
%177 = bitcast i32* %48 to i8*
br label %178
178: ; preds = %176, %178
%179 = phi i32 [ 0, %176 ], [ %186, %178 ]
%180 = sub nsw i32 %15, %179
%181 = icmp sgt i32 %180, %24
%182 = select i1 %181, i32 %24, i32 %180
%183 = sext i32 %179 to i64
%184 = getelementptr i8, i8* %177, i64 %183
%185 = call i32 @memcpy(i8* %40, i8* %184, i32 %182)
%186 = add nsw i32 %182, %179
%187 = load i32, i32* %27
%188 = call i32 @syncup(i32 %187)
%189 = load i32, i32* %27
%190 = call i32 @syncup(i32 %189)
%191 = icmp sgt i32 %15, %186
br i1 %191, label %178, label %192
192: ; preds = %178, %171
%193 = call double (i8*, ...) @log_perf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%194 = load i32, i32* %27
%195 = call i32 @internal_recv(i32 %194, double* %4, i32 8)
%196 = load i32, i32* %27
%197 = call i32 @internal_recv(i32 %196, double* %5, i32 8)
%198 = load double, double* %5
%199 = fcmp ogt double %193, %198
%200 = select i1 %199, double %193, double %198
%201 = load double, double* %4
%202 = fcmp olt double %174, %201
%203 = select i1 %202, double %174, double %201
%204 = fsub double %200, %203
%205 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), double %204)
%206 = call i32 @wait(i32* null)
br label %207
207: ; preds = %161, %152, %192
ret i32 0
}