#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*/ 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, scalar_t__);
int main() {
  int sb;
  int sc;
  sb = 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/pair.c",
      35, (1), ((1 * 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/pair.c",
      36, (sb), ("inproc://a"));
  sc = 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/pair.c",
      37, (1), ((1 * 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/pair.c",
      38, (sc), ("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/pair.c",
      40, (sc), ("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/pair.c",
      41, (sb), ("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/pair.c",
      42, (sb), ("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/pair.c",
      43, (sc), ("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/pair.c",
      45, (sc));
  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/pair.c",
      46, (sb));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe8a(%rip),%rdi
mov    $0x23,%esi
mov    $0x1,%edx
mov    $0x10,%ecx
call   1080 <test_socket_impl@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edx
lea    0xe69(%rip),%rdi
mov    $0x24,%esi
lea    0xee0(%rip),%rcx
call   1070 <test_bind_impl@plt>
lea    0xe51(%rip),%rdi
mov    $0x25,%esi
mov    $0x1,%edx
mov    $0x10,%ecx
call   1080 <test_socket_impl@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edx
lea    0xe30(%rip),%rdi
mov    $0x26,%esi
lea    0xea7(%rip),%rcx
call   1060 <test_connect_impl@plt>
mov    -0xc(%rbp),%edx
lea    0xe15(%rip),%rdi
mov    $0x28,%esi
lea    0xe97(%rip),%rcx
call   1050 <test_send_impl@plt>
mov    -0x8(%rbp),%edx
lea    0xdfa(%rip),%rdi
mov    $0x29,%esi
lea    0xe7c(%rip),%rcx
call   1030 <test_recv_impl@plt>
mov    -0x8(%rbp),%edx
lea    0xddf(%rip),%rdi
mov    $0x2a,%esi
lea    0xe65(%rip),%rcx
call   1050 <test_send_impl@plt>
mov    -0xc(%rbp),%edx
lea    0xdc4(%rip),%rdi
mov    $0x2b,%esi
lea    0xe4a(%rip),%rcx
call   1030 <test_recv_impl@plt>
mov    -0xc(%rbp),%edx
lea    0xda9(%rip),%rdi
mov    $0x2d,%esi
call   1040 <test_close_impl@plt>
mov    -0x8(%rbp),%edx
lea    0xd95(%rip),%rdi
mov    $0x2e,%esi
call   1040 <test_close_impl@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
lea    0xe92(%rip),%rbx
mov    $0x10,%ecx
mov    %rbx,%rdi
mov    $0x23,%esi
mov    $0x1,%edx
call   1080 <test_socket_impl@plt>
mov    %eax,%r14d
lea    0xef4(%rip),%r15
mov    %rbx,%rdi
mov    $0x24,%esi
mov    %eax,%edx
mov    %r15,%rcx
call   1070 <test_bind_impl@plt>
mov    $0x10,%ecx
mov    %rbx,%rdi
mov    $0x25,%esi
mov    $0x1,%edx
call   1080 <test_socket_impl@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
mov    $0x26,%esi
mov    %eax,%edx
mov    %r15,%rcx
call   1060 <test_connect_impl@plt>
lea    0xebb(%rip),%r15
mov    %rbx,%rdi
mov    $0x28,%esi
mov    %ebp,%edx
mov    %r15,%rcx
call   1050 <test_send_impl@plt>
mov    %rbx,%rdi
mov    $0x29,%esi
mov    %r14d,%edx
mov    %r15,%rcx
call   1030 <test_recv_impl@plt>
lea    0xe93(%rip),%r15
mov    %rbx,%rdi
mov    $0x2a,%esi
mov    %r14d,%edx
mov    %r15,%rcx
call   1050 <test_send_impl@plt>
mov    %rbx,%rdi
mov    $0x2b,%esi
mov    %ebp,%edx
mov    %r15,%rcx
call   1030 <test_recv_impl@plt>
mov    %rbx,%rdi
mov    $0x2d,%esi
mov    %ebp,%edx
call   1040 <test_close_impl@plt>
mov    %rbx,%rdi
mov    $0x2e,%esi
mov    %r14d,%edx
call   1040 <test_close_impl@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [131 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/pair.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
store i32 0, i32* %1
%4 = call i32 @test_socket_impl(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 35, i32 1, i64 16)
store i32 %4, i32* %2
%5 = load i32, i32* %2
%6 = call i32 @test_bind_impl(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 36, i32 %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @test_socket_impl(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 37, i32 1, i64 16)
store i32 %7, i32* %3
%8 = load i32, i32* %3
%9 = call i32 @test_connect_impl(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 38, i32 %8, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%10 = load i32, i32* %3
%11 = call i32 @test_send_impl(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 40, i32 %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%12 = load i32, i32* %2
%13 = call i32 @test_recv_impl(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 41, i32 %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%14 = load i32, i32* %2
%15 = call i32 @test_send_impl(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 42, i32 %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%16 = load i32, i32* %3
%17 = call i32 @test_recv_impl(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 43, i32 %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%18 = load i32, i32* %3
%19 = call i32 @test_close_impl(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 45, i32 %18)
%20 = load i32, i32* %2
%21 = call i32 @test_close_impl(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 46, i32 %20)
ret i32 0
}

LLVM IR (-O2):
@.str = [131 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/pair.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 ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 35, i32 1, i64 16)
%2 = tail call i32 @test_bind_impl(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 36, 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 ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 37, i32 1, i64 16)
%4 = tail call i32 @test_connect_impl(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 38, i32 %3, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @test_send_impl(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 40, i32 %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @test_recv_impl(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 41, i32 %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @test_send_impl(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 42, i32 %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 @test_recv_impl(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 43, i32 %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 @test_close_impl(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 45, i32 %3)
%10 = tail call i32 @test_close_impl(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 46, i32 %1)
ret i32 0
}