#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*/ grid_sleep(int);
int /*<<< orphan*/ test_bind_impl(char *, int, int, char *);
int /*<<< orphan*/ test_close_impl(char *, int, int);
int /*<<< orphan*/ test_connect_impl(char *, int, int, char *);
int /*<<< orphan*/ test_recv_impl(char *, int, int, char *);
int /*<<< orphan*/ test_send_impl(char *, int, int, char *);
int test_socket_impl(char *, int, int, int);
int main() {
  int push1;
  int push2;
  int pull1;
  int pull2;
  push1 = test_socket_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      39, (1), ((5 * 16 + 0)));
  test_bind_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      40, (push1), ("inproc://a"));
  pull1 = test_socket_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      41, (1), ((5 * 16 + 1)));
  test_connect_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      42, (pull1), ("inproc://a"));
  pull2 = test_socket_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      43, (1), ((5 * 16 + 1)));
  test_connect_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      44, (pull2), ("inproc://a"));
  grid_sleep(10);
  test_send_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      50, (push1), ("ABC"));
  test_send_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      51, (push1), ("DEF"));
  test_recv_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      53, (pull1), ("ABC"));
  test_recv_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      54, (pull2), ("DEF"));
  test_close_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      56, (push1));
  test_close_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      57, (pull1));
  test_close_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      58, (pull2));
  pull1 = test_socket_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      62, (1), ((5 * 16 + 1)));
  test_bind_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      63, (pull1), ("inproc://a"));
  push1 = test_socket_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      64, (1), ((5 * 16 + 0)));
  test_connect_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      65, (push1), ("inproc://a"));
  push2 = test_socket_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      66, (1), ((5 * 16 + 0)));
  test_connect_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      67, (push2), ("inproc://a"));
  test_send_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      69, (push1), ("ABC"));
  test_send_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      70, (push2), ("DEF"));
  test_recv_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      72, (pull1), ("ABC"));
  test_recv_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      73, (pull1), ("DEF"));
  test_close_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      75, (pull1));
  test_close_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      76, (push1));
  test_close_impl(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c",
      77, (push2));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe7a(%rip),%rdi
mov    $0x27,%esi
mov    $0x1,%edx
mov    $0x50,%ecx
call   1090 <test_socket_impl@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edx
lea    0xe59(%rip),%rdi
mov    $0x28,%esi
lea    0xed4(%rip),%rcx
call   1080 <test_bind_impl@plt>
lea    0xe41(%rip),%rdi
mov    $0x29,%esi
mov    $0x1,%edx
mov    $0x51,%ecx
call   1090 <test_socket_impl@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%edx
lea    0xe20(%rip),%rdi
mov    $0x2a,%esi
lea    0xe9b(%rip),%rcx
call   1070 <test_connect_impl@plt>
lea    0xe08(%rip),%rdi
mov    $0x2b,%esi
mov    $0x1,%edx
mov    $0x51,%ecx
call   1090 <test_socket_impl@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edx
lea    0xde7(%rip),%rdi
mov    $0x2c,%esi
lea    0xe62(%rip),%rcx
call   1070 <test_connect_impl@plt>
mov    $0xa,%edi
call   1050 <grid_sleep@plt>
mov    -0x8(%rbp),%edx
lea    0xdc2(%rip),%rdi
mov    $0x32,%esi
lea    0xe48(%rip),%rcx
call   1060 <test_send_impl@plt>
mov    -0x8(%rbp),%edx
lea    0xda7(%rip),%rdi
mov    $0x33,%esi
lea    0xe31(%rip),%rcx
call   1060 <test_send_impl@plt>
mov    -0x10(%rbp),%edx
lea    0xd8c(%rip),%rdi
mov    $0x35,%esi
lea    0xe12(%rip),%rcx
call   1030 <test_recv_impl@plt>
mov    -0x14(%rbp),%edx
lea    0xd71(%rip),%rdi
mov    $0x36,%esi
lea    0xdfb(%rip),%rcx
call   1030 <test_recv_impl@plt>
mov    -0x8(%rbp),%edx
lea    0xd56(%rip),%rdi
mov    $0x38,%esi
call   1040 <test_close_impl@plt>
mov    -0x10(%rbp),%edx
lea    0xd42(%rip),%rdi
mov    $0x39,%esi
call   1040 <test_close_impl@plt>
mov    -0x14(%rbp),%edx
lea    0xd2e(%rip),%rdi
mov    $0x3a,%esi
call   1040 <test_close_impl@plt>
lea    0xd1d(%rip),%rdi
mov    $0x3e,%esi
mov    $0x1,%edx
mov    $0x51,%ecx
call   1090 <test_socket_impl@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%edx
lea    0xcfc(%rip),%rdi
mov    $0x3f,%esi
lea    0xd77(%rip),%rcx
call   1080 <test_bind_impl@plt>
lea    0xce4(%rip),%rdi
mov    $0x40,%esi
mov    $0x1,%edx
mov    $0x50,%ecx
call   1090 <test_socket_impl@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edx
lea    0xcc3(%rip),%rdi
mov    $0x41,%esi
lea    0xd3e(%rip),%rcx
call   1070 <test_connect_impl@plt>
lea    0xcab(%rip),%rdi
mov    $0x42,%esi
mov    $0x1,%edx
mov    $0x50,%ecx
call   1090 <test_socket_impl@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edx
lea    0xc8a(%rip),%rdi
mov    $0x43,%esi
lea    0xd05(%rip),%rcx
call   1070 <test_connect_impl@plt>
mov    -0x8(%rbp),%edx
lea    0xc6f(%rip),%rdi
mov    $0x45,%esi
lea    0xcf5(%rip),%rcx
call   1060 <test_send_impl@plt>
mov    -0xc(%rbp),%edx
lea    0xc54(%rip),%rdi
mov    $0x46,%esi
lea    0xcde(%rip),%rcx
call   1060 <test_send_impl@plt>
mov    -0x10(%rbp),%edx
lea    0xc39(%rip),%rdi
mov    $0x48,%esi
lea    0xcbf(%rip),%rcx
call   1030 <test_recv_impl@plt>
mov    -0x10(%rbp),%edx
lea    0xc1e(%rip),%rdi
mov    $0x49,%esi
lea    0xca8(%rip),%rcx
call   1030 <test_recv_impl@plt>
mov    -0x10(%rbp),%edx
lea    0xc03(%rip),%rdi
mov    $0x4b,%esi
call   1040 <test_close_impl@plt>
mov    -0x8(%rbp),%edx
lea    0xbef(%rip),%rdi
mov    $0x4c,%esi
call   1040 <test_close_impl@plt>
mov    -0xc(%rbp),%edx
lea    0xbdb(%rip),%rdi
mov    $0x4d,%esi
call   1040 <test_close_impl@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xe7e(%rip),%rbx
mov    %rbx,%rdi
mov    $0x27,%esi
mov    $0x1,%edx
mov    $0x50,%ecx
call   1090 <test_socket_impl@plt>
mov    %eax,%ebp
lea    0xee5(%rip),%r14
mov    %rbx,%rdi
mov    $0x28,%esi
mov    %eax,%edx
mov    %r14,%rcx
call   1080 <test_bind_impl@plt>
mov    %rbx,%rdi
mov    $0x29,%esi
mov    $0x1,%edx
mov    $0x51,%ecx
call   1090 <test_socket_impl@plt>
mov    %eax,%r13d
mov    %rbx,%rdi
mov    $0x2a,%esi
mov    %eax,%edx
mov    %r14,%rcx
call   1070 <test_connect_impl@plt>
mov    %rbx,%rdi
mov    $0x2b,%esi
mov    $0x1,%edx
mov    $0x51,%ecx
call   1090 <test_socket_impl@plt>
mov    %eax,%r15d
mov    %rbx,%rdi
mov    $0x2c,%esi
mov    %eax,%edx
mov    %r14,%rcx
call   1070 <test_connect_impl@plt>
mov    $0xa,%edi
call   1050 <grid_sleep@plt>
lea    0xe75(%rip),%r14
mov    %rbx,%rdi
mov    $0x32,%esi
mov    %ebp,%edx
mov    %r14,%rcx
call   1060 <test_send_impl@plt>
lea    0xe60(%rip),%r12
mov    %rbx,%rdi
mov    $0x33,%esi
mov    %ebp,%edx
mov    %r12,%rcx
call   1060 <test_send_impl@plt>
mov    %rbx,%rdi
mov    $0x35,%esi
mov    %r13d,%edx
mov    %r14,%rcx
call   1030 <test_recv_impl@plt>
mov    %rbx,%rdi
mov    $0x36,%esi
mov    %r15d,%edx
mov    %r12,%rcx
call   1030 <test_recv_impl@plt>
mov    %rbx,%rdi
mov    $0x38,%esi
mov    %ebp,%edx
call   1040 <test_close_impl@plt>
mov    %rbx,%rdi
mov    $0x39,%esi
mov    %r13d,%edx
call   1040 <test_close_impl@plt>
mov    %rbx,%rdi
mov    $0x3a,%esi
mov    %r15d,%edx
call   1040 <test_close_impl@plt>
mov    %rbx,%rdi
mov    $0x3e,%esi
mov    $0x1,%edx
mov    $0x51,%ecx
call   1090 <test_socket_impl@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
mov    $0x3f,%esi
mov    %eax,%edx
lea    0xdc0(%rip),%r14
mov    %r14,%rcx
call   1080 <test_bind_impl@plt>
mov    %rbx,%rdi
mov    $0x40,%esi
mov    $0x1,%edx
mov    $0x50,%ecx
call   1090 <test_socket_impl@plt>
mov    %eax,%r13d
mov    %rbx,%rdi
mov    $0x41,%esi
mov    %eax,%edx
mov    %r14,%rcx
call   1070 <test_connect_impl@plt>
mov    %rbx,%rdi
mov    $0x42,%esi
mov    $0x1,%edx
mov    $0x50,%ecx
call   1090 <test_socket_impl@plt>
mov    %eax,%r15d
mov    %rbx,%rdi
mov    $0x43,%esi
mov    %eax,%edx
mov    %r14,%rcx
call   1070 <test_connect_impl@plt>
mov    %rbx,%rdi
mov    $0x45,%esi
mov    %r13d,%edx
lea    0xd59(%rip),%r14
mov    %r14,%rcx
call   1060 <test_send_impl@plt>
mov    %rbx,%rdi
mov    $0x46,%esi
mov    %r15d,%edx
mov    %r12,%rcx
call   1060 <test_send_impl@plt>
mov    %rbx,%rdi
mov    $0x48,%esi
mov    %ebp,%edx
mov    %r14,%rcx
call   1030 <test_recv_impl@plt>
mov    %rbx,%rdi
mov    $0x49,%esi
mov    %ebp,%edx
mov    %r12,%rcx
call   1030 <test_recv_impl@plt>
mov    %rbx,%rdi
mov    $0x4b,%esi
mov    %ebp,%edx
call   1040 <test_close_impl@plt>
mov    %rbx,%rdi
mov    $0x4c,%esi
mov    %r13d,%edx
call   1040 <test_close_impl@plt>
mov    %rbx,%rdi
mov    $0x4d,%esi
mov    %r15d,%edx
call   1040 <test_close_impl@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [135 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c\00"
@.str.1 = [11 x i8] c"inproc://a\00"
@.str.2 = [4 x i8] c"ABC\00"
@.str.3 = [4 x i8] c"DEF\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = call i32 @test_socket_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 39, i32 1, i32 80)
store i32 %6, i32* %2
%7 = load i32, i32* %2
%8 = call i32 @test_bind_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 40, i32 %7, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @test_socket_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 41, i32 1, i32 81)
store i32 %9, i32* %4
%10 = load i32, i32* %4
%11 = call i32 @test_connect_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 42, i32 %10, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 @test_socket_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 43, i32 1, i32 81)
store i32 %12, i32* %5
%13 = load i32, i32* %5
%14 = call i32 @test_connect_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 44, i32 %13, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 @grid_sleep(i32 10)
%16 = load i32, i32* %2
%17 = call i32 @test_send_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 50, i32 %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%18 = load i32, i32* %2
%19 = call i32 @test_send_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 51, i32 %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%20 = load i32, i32* %4
%21 = call i32 @test_recv_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 53, i32 %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%22 = load i32, i32* %5
%23 = call i32 @test_recv_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 54, i32 %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%24 = load i32, i32* %2
%25 = call i32 @test_close_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 56, i32 %24)
%26 = load i32, i32* %4
%27 = call i32 @test_close_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 57, i32 %26)
%28 = load i32, i32* %5
%29 = call i32 @test_close_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 58, i32 %28)
%30 = call i32 @test_socket_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 62, i32 1, i32 81)
store i32 %30, i32* %4
%31 = load i32, i32* %4
%32 = call i32 @test_bind_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 63, i32 %31, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%33 = call i32 @test_socket_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 64, i32 1, i32 80)
store i32 %33, i32* %2
%34 = load i32, i32* %2
%35 = call i32 @test_connect_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 65, i32 %34, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%36 = call i32 @test_socket_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 66, i32 1, i32 80)
store i32 %36, i32* %3
%37 = load i32, i32* %3
%38 = call i32 @test_connect_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 67, i32 %37, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%39 = load i32, i32* %2
%40 = call i32 @test_send_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 69, i32 %39, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%41 = load i32, i32* %3
%42 = call i32 @test_send_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 70, i32 %41, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%43 = load i32, i32* %4
%44 = call i32 @test_recv_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 72, i32 %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%45 = load i32, i32* %4
%46 = call i32 @test_recv_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 73, i32 %45, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%47 = load i32, i32* %4
%48 = call i32 @test_close_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 75, i32 %47)
%49 = load i32, i32* %2
%50 = call i32 @test_close_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 76, i32 %49)
%51 = load i32, i32* %3
%52 = call i32 @test_close_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 77, i32 %51)
ret i32 0
}

LLVM IR (-O2):
@.str = [135 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/gridmq/gridmq/refs/heads/master/t/pipeline.c\00"
@.str.1 = [11 x i8] c"inproc://a\00"
@.str.2 = [4 x i8] c"ABC\00"
@.str.3 = [4 x i8] c"DEF\00"
define i32 @main() {
%1 = tail call i32 @test_socket_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 39, i32 1, i32 80)
%2 = tail call i32 @test_bind_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 40, i32 %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @test_socket_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 41, i32 1, i32 81)
%4 = tail call i32 @test_connect_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 42, i32 %3, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @test_socket_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 43, i32 1, i32 81)
%6 = tail call i32 @test_connect_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 44, i32 %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 @grid_sleep(i32 10)
%8 = tail call i32 @test_send_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 50, i32 %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%9 = tail call i32 @test_send_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 51, i32 %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%10 = tail call i32 @test_recv_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 53, i32 %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%11 = tail call i32 @test_recv_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 54, i32 %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%12 = tail call i32 @test_close_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 56, i32 %1)
%13 = tail call i32 @test_close_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 57, i32 %3)
%14 = tail call i32 @test_close_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 58, i32 %5)
%15 = tail call i32 @test_socket_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 62, i32 1, i32 81)
%16 = tail call i32 @test_bind_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 63, i32 %15, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%17 = tail call i32 @test_socket_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 64, i32 1, i32 80)
%18 = tail call i32 @test_connect_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 65, i32 %17, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%19 = tail call i32 @test_socket_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 66, i32 1, i32 80)
%20 = tail call i32 @test_connect_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 67, i32 %19, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%21 = tail call i32 @test_send_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 69, i32 %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%22 = tail call i32 @test_send_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 70, i32 %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%23 = tail call i32 @test_recv_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 72, i32 %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%24 = tail call i32 @test_recv_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 73, i32 %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%25 = tail call i32 @test_close_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 75, i32 %15)
%26 = tail call i32 @test_close_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 76, i32 %17)
%27 = tail call i32 @test_close_impl(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 77, i32 %19)
ret i32 0
}