#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 */
struct sockaddr_un {
  int /*<<< orphan*/ sun_path;
  int /*<<< orphan*/ sun_family;
};
typedef int /*<<< orphan*/ path;
typedef int /*<<< orphan*/ buf;

/* Variables and functions */
int /*<<< orphan*/ AF_UNIX;
int PATH_MAX;
int /*<<< orphan*/ SOCK_STREAM;
int accept(int, int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int bind(int, struct sockaddr_un *, unsigned int);
int connect(int, struct sockaddr_un *, unsigned int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int);
char *get_current_dir_name();
int listen(int, int);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ read(int, char **, int);
int /*<<< orphan*/ snprintf(char *, int, char *, char *);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ strcmp(char *, char *);
int strlen(char *);
int /*<<< orphan*/ strncpy(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ test_daemon();
int /*<<< orphan*/ test_init(int, char **);
int /*<<< orphan*/ test_msg(char *, ...);
int /*<<< orphan*/ test_waitsig();
int /*<<< orphan*/ unlink(char *);
int /*<<< orphan*/ write(int, char *, int);
int main(int argc, char *argv[]) {
  int ssk_icon[4];
  struct sockaddr_un addr;
  unsigned int addrlen;
  char path[PATH_MAX];
  char buf[64];
  char *cwd;
  int ret;
  test_init(argc, argv);
  cwd = get_current_dir_name();
  if (!cwd) {
    test_msg("FAIL: %s:%d: "
             "getcwd\n"
             " (errno = %d)\n",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/OSLL/pmover/refs/heads/master/test/"
             "zdtm/live/static/sockets00.c",
             40, errno);
    exit(1);
  }
  snprintf(path, sizeof(path), "%s/test-socket", cwd);
  unlink(path);
  addr.sun_family = AF_UNIX;
  strncpy(addr.sun_path, path, sizeof(addr.sun_path));
  addrlen = sizeof(addr.sun_family) + strlen(path);
  ssk_icon[0] = socket(AF_UNIX, SOCK_STREAM, 0);
  ssk_icon[1] = socket(AF_UNIX, SOCK_STREAM, 0);
  ssk_icon[2] = socket(AF_UNIX, SOCK_STREAM, 0);
  if (ssk_icon[0] < 0 || ssk_icon[1] < 0 || ssk_icon[2] < 0) {
    test_msg("FAIL: %s:%d: "
             "socket\n"
             " (errno = %d)\n",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/OSLL/pmover/refs/heads/master/test/"
             "zdtm/live/static/sockets00.c",
             55, errno);
    exit(1);
  }
  ret = bind(ssk_icon[0], &addr, addrlen);
  if (ret) {
    test_msg("FAIL: %s:%d: "
             "bind\n"
             " (errno = %d)\n",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/OSLL/pmover/refs/heads/master/test/"
             "zdtm/live/static/sockets00.c",
             61, errno);
    exit(1);
  }
  ret = listen(ssk_icon[0], 16);
  if (ret) {
    test_msg("FAIL: %s:%d: "
             "bind\n"
             " (errno = %d)\n",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/OSLL/pmover/refs/heads/master/test/"
             "zdtm/live/static/sockets00.c",
             67, errno);
    exit(1);
  }
  ret = connect(ssk_icon[2], &addr, addrlen);
  if (ret) {
    test_msg("FAIL: %s:%d: "
             "connect\n"
             " (errno = %d)\n",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/OSLL/pmover/refs/heads/master/test/"
             "zdtm/live/static/sockets00.c",
             73, errno);
    exit(1);
  }
  ssk_icon[3] = accept(ssk_icon[0], NULL, NULL);
  if (ssk_icon[3] < 0) {
    test_msg("FAIL: %s:%d: "
             "accept"
             " (errno = %d)\n",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/OSLL/pmover/refs/heads/master/test/"
             "zdtm/live/static/sockets00.c",
             79, errno);
    exit(1);
  }
  ret = connect(ssk_icon[1], &addr, addrlen);
  if (ret) {
    test_msg("FAIL: %s:%d: "
             "connect\n"
             " (errno = %d)\n",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/OSLL/pmover/refs/heads/master/test/"
             "zdtm/live/static/sockets00.c",
             85, errno);
    exit(1);
  }
  test_daemon();
  test_waitsig();
  ret = accept(ssk_icon[0], NULL, NULL);
  if (ret < 0) {
    test_msg("FAIL: %s:%d: "
             "accept\n"
             " (errno = %d)\n",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/OSLL/pmover/refs/heads/master/test/"
             "zdtm/live/static/sockets00.c",
             94, errno);
    exit(1);
  }
  memset(buf, 0, sizeof(buf));
  write(ssk_icon[1], "packet", sizeof("packet"));
  read(ret, &buf, sizeof(buf));
  if (strcmp(buf, "packet")) {
    test_msg("FAIL: %s:%d: "
             "data corrupted\n"
             " (errno = %d)\n",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/OSLL/pmover/refs/heads/master/test/"
             "zdtm/live/static/sockets00.c",
             102, errno);
    exit(1);
  }
  test_msg("stream1           : '%s'\n", buf);
  memset(buf, 0, sizeof(buf));
  write(ssk_icon[2], "packet", sizeof("packet"));
  read(ssk_icon[3], &buf, sizeof(buf));
  if (strcmp(buf, "packet")) {
    test_msg("FAIL: %s:%d: "
             "data corrupted\n"
             " (errno = %d)\n",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/OSLL/pmover/refs/heads/master/test/"
             "zdtm/live/static/sockets00.c",
             111, errno);
    exit(1);
  }
  test_msg("stream2           : '%s'\n", buf);
  test_msg("PASS\n");
  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)
mov    0x2da0(%rip),%rax
mov    (%rax),%eax
mov    %rax,-0xa0(%rbp)
mov    %rsp,%rcx
mov    %rcx,-0x38(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x98(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x40(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1050 <test_init@plt>
mov    $0x0,%al
call   10f0 <get_current_dir_name@plt>
mov    %rax,-0x88(%rbp)
cmpq   $0x0,-0x88(%rbp)
jne    12d4 <main+0xa4>
mov    0x2d1a(%rip),%rax
mov    (%rax),%ecx
lea    0xd49(%rip),%rdi
lea    0xd65(%rip),%rsi
mov    $0x28,%edx
mov    $0x0,%al
call   10b0 <test_msg@plt>
mov    $0x1,%edi
call   1130 <exit@plt>
mov    -0x98(%rbp),%rdi
mov    -0xa0(%rbp),%rax
mov    %eax,%esi
mov    -0x88(%rbp),%rcx
lea    0xdcb(%rip),%rdx
call   1090 <snprintf@plt>
mov    -0x98(%rbp),%rdi
call   1030 <unlink@plt>
mov    -0x98(%rbp),%rsi
mov    0x2ccf(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
mov    -0x28(%rbp),%edi
mov    $0x4,%edx
call   1040 <strncpy@plt>
mov    -0x98(%rbp),%rdi
call   1070 <strlen@plt>
cltq
add    $0x4,%rax
mov    %eax,-0x2c(%rbp)
mov    0x2ca1(%rip),%rax
mov    (%rax),%edi
mov    0x2c88(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1150 <socket@plt>
mov    %eax,-0x20(%rbp)
mov    0x2c85(%rip),%rax
mov    (%rax),%edi
mov    0x2c6c(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1150 <socket@plt>
mov    %eax,-0x1c(%rbp)
mov    0x2c69(%rip),%rax
mov    (%rax),%edi
mov    0x2c50(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1150 <socket@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x20(%rbp)
jl     13aa <main+0x17a>
cmpl   $0x0,-0x1c(%rbp)
jl     13aa <main+0x17a>
cmpl   $0x0,-0x18(%rbp)
jge    13d7 <main+0x1a7>
mov    0x2c17(%rip),%rax
mov    (%rax),%ecx
lea    0xd12(%rip),%rdi
lea    0xc62(%rip),%rsi
mov    $0x37,%edx
mov    $0x0,%al
call   10b0 <test_msg@plt>
mov    $0x1,%edi
call   1130 <exit@plt>
mov    -0x20(%rbp),%edi
mov    -0x2c(%rbp),%edx
lea    -0x28(%rbp),%rsi
call   1110 <bind@plt>
mov    %eax,-0x8c(%rbp)
cmpl   $0x0,-0x8c(%rbp)
je     1426 <main+0x1f6>
mov    0x2bc8(%rip),%rax
mov    (%rax),%ecx
lea    0xce6(%rip),%rdi
lea    0xc13(%rip),%rsi
mov    $0x3d,%edx
mov    $0x0,%al
call   10b0 <test_msg@plt>
mov    $0x1,%edi
call   1130 <exit@plt>
mov    -0x20(%rbp),%edi
mov    $0x10,%esi
call   1100 <listen@plt>
mov    %eax,-0x8c(%rbp)
cmpl   $0x0,-0x8c(%rbp)
je     1473 <main+0x243>
mov    0x2b7b(%rip),%rax
mov    (%rax),%ecx
lea    0xc99(%rip),%rdi
lea    0xbc6(%rip),%rsi
mov    $0x43,%edx
mov    $0x0,%al
call   10b0 <test_msg@plt>
mov    $0x1,%edi
call   1130 <exit@plt>
mov    -0x18(%rbp),%edi
mov    -0x2c(%rbp),%edx
lea    -0x28(%rbp),%rsi
call   1140 <connect@plt>
mov    %eax,-0x8c(%rbp)
cmpl   $0x0,-0x8c(%rbp)
je     14c2 <main+0x292>
mov    0x2b2c(%rip),%rax
mov    (%rax),%ecx
lea    0xc6b(%rip),%rdi
lea    0xb77(%rip),%rsi
mov    $0x49,%edx
mov    $0x0,%al
call   10b0 <test_msg@plt>
mov    $0x1,%edi
call   1130 <exit@plt>
mov    -0x20(%rbp),%edi
xor    %eax,%eax
mov    %eax,%edx
mov    %rdx,%rsi
call   1120 <accept@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    150b <main+0x2db>
mov    0x2ae3(%rip),%rax
mov    (%rax),%ecx
lea    0xc46(%rip),%rdi
lea    0xb2e(%rip),%rsi
mov    $0x4f,%edx
mov    $0x0,%al
call   10b0 <test_msg@plt>
mov    $0x1,%edi
call   1130 <exit@plt>
mov    -0x1c(%rbp),%edi
mov    -0x2c(%rbp),%edx
lea    -0x28(%rbp),%rsi
call   1140 <connect@plt>
mov    %eax,-0x8c(%rbp)
cmpl   $0x0,-0x8c(%rbp)
je     155a <main+0x32a>
mov    0x2a94(%rip),%rax
mov    (%rax),%ecx
lea    0xbd3(%rip),%rdi
lea    0xadf(%rip),%rsi
mov    $0x55,%edx
mov    $0x0,%al
call   10b0 <test_msg@plt>
mov    $0x1,%edi
call   1130 <exit@plt>
mov    $0x0,%al
call   1080 <test_daemon@plt>
mov    $0x0,%al
call   10d0 <test_waitsig@plt>
mov    -0x20(%rbp),%edi
xor    %eax,%eax
mov    %eax,%edx
mov    %rdx,%rsi
call   1120 <accept@plt>
mov    %eax,-0x8c(%rbp)
cmpl   $0x0,-0x8c(%rbp)
jge    15b7 <main+0x387>
mov    0x2a37(%rip),%rax
mov    (%rax),%ecx
lea    0xbbc(%rip),%rdi
lea    0xa82(%rip),%rsi
mov    $0x5e,%edx
mov    $0x0,%al
call   10b0 <test_msg@plt>
mov    $0x1,%edi
call   1130 <exit@plt>
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   10a0 <memset@plt>
mov    -0x1c(%rbp),%edi
lea    0xba8(%rip),%rsi
mov    $0x7,%edx
call   1060 <write@plt>
mov    -0x8c(%rbp),%edi
lea    -0x80(%rbp),%rsi
mov    $0x40,%edx
call   10c0 <read@plt>
lea    -0x80(%rbp),%rdi
lea    0xb7f(%rip),%rsi
call   10e0 <strcmp@plt>
cmp    $0x0,%rax
je     1636 <main+0x406>
mov    0x29b8(%rip),%rax
mov    (%rax),%ecx
lea    0xb67(%rip),%rdi
lea    0xa03(%rip),%rsi
mov    $0x66,%edx
mov    $0x0,%al
call   10b0 <test_msg@plt>
mov    $0x1,%edi
call   1130 <exit@plt>
lea    -0x80(%rbp),%rsi
lea    0xb6a(%rip),%rdi
mov    $0x0,%al
call   10b0 <test_msg@plt>
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   10a0 <memset@plt>
mov    -0x18(%rbp),%edi
lea    0xb17(%rip),%rsi
mov    $0x7,%edx
call   1060 <write@plt>
mov    -0x14(%rbp),%edi
lea    -0x80(%rbp),%rsi
mov    $0x40,%edx
call   10c0 <read@plt>
lea    -0x80(%rbp),%rdi
lea    0xaf1(%rip),%rsi
call   10e0 <strcmp@plt>
cmp    $0x0,%rax
je     16c4 <main+0x494>
mov    0x292a(%rip),%rax
mov    (%rax),%ecx
lea    0xad9(%rip),%rdi
lea    0x975(%rip),%rsi
mov    $0x6f,%edx
mov    $0x0,%al
call   10b0 <test_msg@plt>
mov    $0x1,%edi
call   1130 <exit@plt>
lea    -0x80(%rbp),%rsi
lea    0xaf6(%rip),%rdi
mov    $0x0,%al
call   10b0 <test_msg@plt>
lea    0xb02(%rip),%rdi
mov    $0x0,%al
call   10b0 <test_msg@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %rsp,-0x40(%rbp)
mov    0x2da4(%rip),%rax
mov    (%rax),%r14d
mov    %rsp,%rbx
lea    0xf(%r14),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
call   1050 <test_init@plt>
xor    %eax,%eax
call   10f0 <get_current_dir_name@plt>
test   %rax,%rax
je     1484 <main+0x254>
lea    0xe41(%rip),%rdx
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %rax,%rcx
call   1090 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <unlink@plt>
mov    0x2d47(%rip),%r14
mov    (%r14),%eax
mov    %eax,-0x2c(%rbp)
mov    %rbx,%rsi
mov    $0x4,%edx
call   1040 <strncpy@plt>
mov    %rbx,%rdi
call   1070 <strlen@plt>
mov    %eax,%ebx
mov    (%r14),%edi
mov    0x2d10(%rip),%r12
mov    (%r12),%esi
xor    %edx,%edx
call   1150 <socket@plt>
mov    %eax,%r13d
mov    (%r14),%edi
mov    (%r12),%esi
xor    %edx,%edx
call   1150 <socket@plt>
mov    %eax,%r15d
mov    (%r14),%edi
mov    (%r12),%esi
xor    %edx,%edx
call   1150 <socket@plt>
test   %r13d,%r13d
js     14a5 <main+0x275>
test   %r15d,%r15d
js     14a5 <main+0x275>
mov    %eax,%r14d
test   %eax,%eax
js     14a5 <main+0x275>
add    $0x4,%ebx
lea    -0x30(%rbp),%rsi
mov    %r13d,%edi
mov    %ebx,%edx
call   1110 <bind@plt>
test   %eax,%eax
jne    14c6 <main+0x296>
mov    %r13d,%edi
mov    $0x10,%esi
call   1100 <listen@plt>
test   %eax,%eax
jne    14e7 <main+0x2b7>
lea    -0x30(%rbp),%rsi
mov    %r14d,%edi
mov    %ebx,%edx
call   1140 <connect@plt>
test   %eax,%eax
jne    1508 <main+0x2d8>
mov    %r13d,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1120 <accept@plt>
test   %eax,%eax
js     1529 <main+0x2f9>
mov    %eax,%r12d
lea    -0x30(%rbp),%rsi
mov    %r15d,%edi
mov    %ebx,%edx
call   1140 <connect@plt>
test   %eax,%eax
jne    1547 <main+0x317>
mov    %r14d,-0x34(%rbp)
xor    %eax,%eax
call   1080 <test_daemon@plt>
xor    %eax,%eax
call   10d0 <test_waitsig@plt>
mov    %r13d,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1120 <accept@plt>
test   %eax,%eax
js     1565 <main+0x335>
mov    %eax,%ebx
lea    -0x80(%rbp),%r13
mov    %r13,%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   10a0 <memset@plt>
lea    0xdbc(%rip),%r14
mov    %r15d,%edi
mov    %r14,%rsi
mov    $0x7,%edx
call   1060 <write@plt>
mov    %ebx,%edi
mov    %r13,%rsi
mov    $0x40,%edx
call   10c0 <read@plt>
mov    %r13,%rdi
mov    %r14,%rsi
call   10e0 <strcmp@plt>
test   %rax,%rax
jne    1583 <main+0x353>
lea    0xdb4(%rip),%rdi
lea    -0x80(%rbp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   10b0 <test_msg@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   10a0 <memset@plt>
lea    0xd5e(%rip),%r14
mov    -0x34(%rbp),%edi
mov    %r14,%rsi
mov    $0x7,%edx
call   1060 <write@plt>
mov    %r12d,%edi
mov    %rbx,%rsi
mov    $0x40,%edx
call   10c0 <read@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   10e0 <strcmp@plt>
test   %rax,%rax
jne    15a1 <main+0x371>
lea    0xd6f(%rip),%rdi
lea    -0x80(%rbp),%rsi
xor    %eax,%eax
call   10b0 <test_msg@plt>
lea    0xd77(%rip),%rdi
xor    %eax,%eax
call   10b0 <test_msg@plt>
mov    -0x40(%rbp),%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2b3d(%rip),%rax
mov    (%rax),%ecx
lea    0xb6c(%rip),%rdi
lea    0xb88(%rip),%rsi
mov    $0x28,%edx
jmp    15bd <main+0x38d>
mov    0x2b1c(%rip),%rax
mov    (%rax),%ecx
lea    0xc17(%rip),%rdi
lea    0xb67(%rip),%rsi
mov    $0x37,%edx
jmp    15bd <main+0x38d>
mov    0x2afb(%rip),%rax
mov    (%rax),%ecx
lea    0xc19(%rip),%rdi
lea    0xb46(%rip),%rsi
mov    $0x3d,%edx
jmp    15bd <main+0x38d>
mov    0x2ada(%rip),%rax
mov    (%rax),%ecx
lea    0xbf8(%rip),%rdi
lea    0xb25(%rip),%rsi
mov    $0x43,%edx
jmp    15bd <main+0x38d>
mov    0x2ab9(%rip),%rax
mov    (%rax),%ecx
lea    0xbf8(%rip),%rdi
lea    0xb04(%rip),%rsi
mov    $0x49,%edx
jmp    15bd <main+0x38d>
mov    0x2a98(%rip),%rax
mov    (%rax),%ecx
lea    0xbfb(%rip),%rdi
lea    0xae3(%rip),%rsi
mov    $0x4f,%edx
jmp    15bd <main+0x38d>
mov    0x2a7a(%rip),%rax
mov    (%rax),%ecx
lea    0xbb9(%rip),%rdi
lea    0xac5(%rip),%rsi
mov    $0x55,%edx
jmp    15bd <main+0x38d>
mov    0x2a5c(%rip),%rax
mov    (%rax),%ecx
lea    0xbe1(%rip),%rdi
lea    0xaa7(%rip),%rsi
mov    $0x5e,%edx
jmp    15bd <main+0x38d>
mov    0x2a3e(%rip),%rax
mov    (%rax),%ecx
lea    0xbed(%rip),%rdi
lea    0xa89(%rip),%rsi
mov    $0x66,%edx
jmp    15bd <main+0x38d>
mov    0x2a20(%rip),%rax
mov    (%rax),%ecx
lea    0xbcf(%rip),%rdi
lea    0xa6b(%rip),%rsi
mov    $0x6f,%edx
xor    %eax,%eax
call   10b0 <test_msg@plt>
mov    $0x1,%edi
call   1130 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_un = type { i32, i32 }
@PATH_MAX = global i32 0
@.str = [35 x i8] c"FAIL: %s:%d: getcwd\0A (errno = %d)\0A\00"
@.str.1 = [154 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/OSLL/pmover/refs/heads/master/test/zdtm/live/static/sockets00.c\00"
@errno = global i32 0
@.str.2 = [15 x i8] c"%s/test-socket\00"
@AF_UNIX = global i32 0
@SOCK_STREAM = global i32 0
@.str.3 = [35 x i8] c"FAIL: %s:%d: socket\0A (errno = %d)\0A\00"
@.str.4 = [33 x i8] c"FAIL: %s:%d: bind\0A (errno = %d)\0A\00"
@.str.5 = [36 x i8] c"FAIL: %s:%d: connect\0A (errno = %d)\0A\00"
@.str.6 = [34 x i8] c"FAIL: %s:%d: accept (errno = %d)\0A\00"
@.str.7 = [35 x i8] c"FAIL: %s:%d: accept\0A (errno = %d)\0A\00"
@.str.8 = [7 x i8] c"packet\00"
@.str.9 = [43 x i8] c"FAIL: %s:%d: data corrupted\0A (errno = %d)\0A\00"
@.str.10 = [26 x i8] c"stream1 : '%s'\0A\00"
@.str.11 = [26 x i8] c"stream2 : '%s'\0A\00"
@.str.12 = [6 x i8] c"PASS\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [4 x i32]
%7 = alloca %struct.sockaddr_un
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i64
%11 = alloca [64 x i8]
%12 = alloca i8*
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* @PATH_MAX
%15 = zext i32 %14 to i64
%16 = call i8* @llvm.stacksave()
store i8* %16, i8** %9
%17 = alloca i8, i64 %15
store i64 %15, i64* %10
%18 = load i32, i32* %4
%19 = load i8**, i8*** %5
%20 = call i32 @test_init(i32 %18, i8** %19)
%21 = call i8* (...) @get_current_dir_name()
store i8* %21, i8** %12
%22 = load i8*, i8** %12
%23 = icmp ne i8* %22, null
br i1 %23, label %28, label %24
24: ; preds = %2
%25 = load i32, i32* @errno
%26 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 40, i32 %25)
%27 = call i32 @exit(i32 1)
unreachable
28: ; preds = %2
%29 = trunc i64 %15 to i32
%30 = load i8*, i8** %12
%31 = call i32 @snprintf(i8* %17, i32 %29, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %30)
%32 = call i32 @unlink(i8* %17)
%33 = load i32, i32* @AF_UNIX
%34 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %7, i32 0, i32 1
store i32 %33, i32* %34
%35 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %7, i32 0, i32 0
%36 = load i32, i32* %35
%37 = call i32 @strncpy(i32 %36, i8* %17, i32 4)
%38 = call i32 @strlen(i8* %17)
%39 = sext i32 %38 to i64
%40 = add i64 4, %39
%41 = trunc i64 %40 to i32
store i32 %41, i32* %8
%42 = load i32, i32* @AF_UNIX
%43 = load i32, i32* @SOCK_STREAM
%44 = call i32 @socket(i32 %42, i32 %43, i32 0)
%45 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
store i32 %44, i32* %45
%46 = load i32, i32* @AF_UNIX
%47 = load i32, i32* @SOCK_STREAM
%48 = call i32 @socket(i32 %46, i32 %47, i32 0)
%49 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 1
store i32 %48, i32* %49
%50 = load i32, i32* @AF_UNIX
%51 = load i32, i32* @SOCK_STREAM
%52 = call i32 @socket(i32 %50, i32 %51, i32 0)
%53 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 2
store i32 %52, i32* %53
%54 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%55 = load i32, i32* %54
%56 = icmp slt i32 %55, 0
br i1 %56, label %65, label %57
57: ; preds = %28
%58 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 1
%59 = load i32, i32* %58
%60 = icmp slt i32 %59, 0
br i1 %60, label %65, label %61
61: ; preds = %57
%62 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 2
%63 = load i32, i32* %62
%64 = icmp slt i32 %63, 0
br i1 %64, label %65, label %69
65: ; preds = %61, %57, %28
%66 = load i32, i32* @errno
%67 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 55, i32 %66)
%68 = call i32 @exit(i32 1)
unreachable
69: ; preds = %61
%70 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%71 = load i32, i32* %70
%72 = load i32, i32* %8
%73 = call i32 @bind(i32 %71, %struct.sockaddr_un* %7, i32 %72)
store i32 %73, i32* %13
%74 = load i32, i32* %13
%75 = icmp ne i32 %74, 0
br i1 %75, label %76, label %80
76: ; preds = %69
%77 = load i32, i32* @errno
%78 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 61, i32 %77)
%79 = call i32 @exit(i32 1)
unreachable
80: ; preds = %69
%81 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%82 = load i32, i32* %81
%83 = call i32 @listen(i32 %82, i32 16)
store i32 %83, i32* %13
%84 = load i32, i32* %13
%85 = icmp ne i32 %84, 0
br i1 %85, label %86, label %90
86: ; preds = %80
%87 = load i32, i32* @errno
%88 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 67, i32 %87)
%89 = call i32 @exit(i32 1)
unreachable
90: ; preds = %80
%91 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 2
%92 = load i32, i32* %91
%93 = load i32, i32* %8
%94 = call i32 @connect(i32 %92, %struct.sockaddr_un* %7, i32 %93)
store i32 %94, i32* %13
%95 = load i32, i32* %13
%96 = icmp ne i32 %95, 0
br i1 %96, label %97, label %101
97: ; preds = %90
%98 = load i32, i32* @errno
%99 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 73, i32 %98)
%100 = call i32 @exit(i32 1)
unreachable
101: ; preds = %90
%102 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%103 = load i32, i32* %102
%104 = call i32 @accept(i32 %103, i32* null, i32* null)
%105 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 3
store i32 %104, i32* %105
%106 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 3
%107 = load i32, i32* %106
%108 = icmp slt i32 %107, 0
br i1 %108, label %109, label %113
109: ; preds = %101
%110 = load i32, i32* @errno
%111 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 79, i32 %110)
%112 = call i32 @exit(i32 1)
unreachable
113: ; preds = %101
%114 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 1
%115 = load i32, i32* %114
%116 = load i32, i32* %8
%117 = call i32 @connect(i32 %115, %struct.sockaddr_un* %7, i32 %116)
store i32 %117, i32* %13
%118 = load i32, i32* %13
%119 = icmp ne i32 %118, 0
br i1 %119, label %120, label %124
120: ; preds = %113
%121 = load i32, i32* @errno
%122 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 85, i32 %121)
%123 = call i32 @exit(i32 1)
unreachable
124: ; preds = %113
%125 = call i32 (...) @test_daemon()
%126 = call i32 (...) @test_waitsig()
%127 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%128 = load i32, i32* %127
%129 = call i32 @accept(i32 %128, i32* null, i32* null)
store i32 %129, i32* %13
%130 = load i32, i32* %13
%131 = icmp slt i32 %130, 0
br i1 %131, label %132, label %136
132: ; preds = %124
%133 = load i32, i32* @errno
%134 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 94, i32 %133)
%135 = call i32 @exit(i32 1)
unreachable
136: ; preds = %124
%137 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%138 = call i32 @memset(i8* %137, i32 0, i32 64)
%139 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 1
%140 = load i32, i32* %139
%141 = call i32 @write(i32 %140, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 7)
%142 = load i32, i32* %13
%143 = bitcast [64 x i8]* %11 to i8**
%144 = call i32 @read(i32 %142, i8** %143, i32 64)
%145 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%146 = call i64 @strcmp(i8* %145, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%147 = icmp ne i64 %146, 0
br i1 %147, label %148, label %152
148: ; preds = %136
%149 = load i32, i32* @errno
%150 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 102, i32 %149)
%151 = call i32 @exit(i32 1)
unreachable
152: ; preds = %136
%153 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%154 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i8* %153)
%155 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%156 = call i32 @memset(i8* %155, i32 0, i32 64)
%157 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 2
%158 = load i32, i32* %157
%159 = call i32 @write(i32 %158, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 7)
%160 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 3
%161 = load i32, i32* %160
%162 = bitcast [64 x i8]* %11 to i8**
%163 = call i32 @read(i32 %161, i8** %162, i32 64)
%164 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%165 = call i64 @strcmp(i8* %164, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%166 = icmp ne i64 %165, 0
br i1 %166, label %167, label %171
167: ; preds = %152
%168 = load i32, i32* @errno
%169 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 111, i32 %168)
%170 = call i32 @exit(i32 1)
unreachable
171: ; preds = %152
%172 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%173 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0), i8* %172)
%174 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
store i32 0, i32* %3
%175 = load i8*, i8** %9
%176 = load i32, i32* %3
ret i32 %176
}

LLVM IR (-O2):
%struct.sockaddr_un = type { i32, i32 }
@PATH_MAX = global i32 0
@.str = [35 x i8] c"FAIL: %s:%d: getcwd\0A (errno = %d)\0A\00"
@.str.1 = [154 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/OSLL/pmover/refs/heads/master/test/zdtm/live/static/sockets00.c\00"
@errno = global i32 0
@.str.2 = [15 x i8] c"%s/test-socket\00"
@AF_UNIX = global i32 0
@SOCK_STREAM = global i32 0
@.str.3 = [35 x i8] c"FAIL: %s:%d: socket\0A (errno = %d)\0A\00"
@.str.4 = [33 x i8] c"FAIL: %s:%d: bind\0A (errno = %d)\0A\00"
@.str.5 = [36 x i8] c"FAIL: %s:%d: connect\0A (errno = %d)\0A\00"
@.str.6 = [34 x i8] c"FAIL: %s:%d: accept (errno = %d)\0A\00"
@.str.7 = [35 x i8] c"FAIL: %s:%d: accept\0A (errno = %d)\0A\00"
@.str.8 = [7 x i8] c"packet\00"
@.str.9 = [43 x i8] c"FAIL: %s:%d: data corrupted\0A (errno = %d)\0A\00"
@.str.10 = [26 x i8] c"stream1 : '%s'\0A\00"
@.str.11 = [26 x i8] c"stream2 : '%s'\0A\00"
@.str.12 = [6 x i8] c"PASS\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca %struct.sockaddr_un
%4 = alloca [64 x i8]
%5 = bitcast %struct.sockaddr_un* %3 to i8*
%6 = load i32, i32* @PATH_MAX
%7 = zext i32 %6 to i64
%8 = tail call i8* @llvm.stacksave()
%9 = alloca i8, i64 %7
%10 = getelementptr inbounds [64 x i8], [64 x i8]* %4, i64 0, i64 0
%11 = tail call i32 @test_init(i32 %0, i8** %1)
%12 = tail call i8* (...) @get_current_dir_name()
%13 = icmp eq i8* %12, null
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = load i32, i32* @errno
%16 = tail call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 40, i32 %15)
%17 = tail call i32 @exit(i32 1)
unreachable
18: ; preds = %2
%19 = call i32 @snprintf(i8* %9, i32 %6, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %12)
%20 = call i32 @unlink(i8* %9)
%21 = load i32, i32* @AF_UNIX
%22 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %3, i64 0, i32 1
store i32 %21, i32* %22
%23 = call i32 @strncpy(i32 undef, i8* %9, i32 4)
%24 = call i32 @strlen(i8* %9)
%25 = add i32 %24, 4
%26 = load i32, i32* @AF_UNIX
%27 = load i32, i32* @SOCK_STREAM
%28 = call i32 @socket(i32 %26, i32 %27, i32 0)
%29 = load i32, i32* @AF_UNIX
%30 = load i32, i32* @SOCK_STREAM
%31 = call i32 @socket(i32 %29, i32 %30, i32 0)
%32 = load i32, i32* @AF_UNIX
%33 = load i32, i32* @SOCK_STREAM
%34 = call i32 @socket(i32 %32, i32 %33, i32 0)
%35 = icmp slt i32 %28, 0
%36 = icmp slt i32 %31, 0
%37 = select i1 %35, i1 true, i1 %36
%38 = icmp slt i32 %34, 0
%39 = select i1 %37, i1 true, i1 %38
br i1 %39, label %40, label %44
40: ; preds = %18
%41 = load i32, i32* @errno
%42 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 55, i32 %41)
%43 = call i32 @exit(i32 1)
unreachable
44: ; preds = %18
%45 = call i32 @bind(i32 %28, %struct.sockaddr_un* %3, i32 %25)
%46 = icmp eq i32 %45, 0
br i1 %46, label %51, label %47
47: ; preds = %44
%48 = load i32, i32* @errno
%49 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 61, i32 %48)
%50 = call i32 @exit(i32 1)
unreachable
51: ; preds = %44
%52 = call i32 @listen(i32 %28, i32 16)
%53 = icmp eq i32 %52, 0
br i1 %53, label %58, label %54
54: ; preds = %51
%55 = load i32, i32* @errno
%56 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 67, i32 %55)
%57 = call i32 @exit(i32 1)
unreachable
58: ; preds = %51
%59 = call i32 @connect(i32 %34, %struct.sockaddr_un* %3, i32 %25)
%60 = icmp eq i32 %59, 0
br i1 %60, label %65, label %61
61: ; preds = %58
%62 = load i32, i32* @errno
%63 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 73, i32 %62)
%64 = call i32 @exit(i32 1)
unreachable
65: ; preds = %58
%66 = call i32 @accept(i32 %28, i32* null, i32* null)
%67 = icmp slt i32 %66, 0
br i1 %67, label %68, label %72
68: ; preds = %65
%69 = load i32, i32* @errno
%70 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 79, i32 %69)
%71 = call i32 @exit(i32 1)
unreachable
72: ; preds = %65
%73 = call i32 @connect(i32 %31, %struct.sockaddr_un* %3, i32 %25)
%74 = icmp eq i32 %73, 0
br i1 %74, label %79, label %75
75: ; preds = %72
%76 = load i32, i32* @errno
%77 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 85, i32 %76)
%78 = call i32 @exit(i32 1)
unreachable
79: ; preds = %72
%80 = call i32 (...) @test_daemon()
%81 = call i32 (...) @test_waitsig()
%82 = call i32 @accept(i32 %28, i32* null, i32* null)
%83 = icmp slt i32 %82, 0
br i1 %83, label %84, label %88
84: ; preds = %79
%85 = load i32, i32* @errno
%86 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 94, i32 %85)
%87 = call i32 @exit(i32 1)
unreachable
88: ; preds = %79
%89 = call i32 @memset(i8* %10, i32 0, i32 64)
%90 = call i32 @write(i32 %31, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 7)
%91 = bitcast [64 x i8]* %4 to i8**
%92 = call i32 @read(i32 %82, i8** %91, i32 64)
%93 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%94 = icmp eq i64 %93, 0
br i1 %94, label %99, label %95
95: ; preds = %88
%96 = load i32, i32* @errno
%97 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 102, i32 %96)
%98 = call i32 @exit(i32 1)
unreachable
99: ; preds = %88
%100 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i8* %10)
%101 = call i32 @memset(i8* %10, i32 0, i32 64)
%102 = call i32 @write(i32 %34, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 7)
%103 = call i32 @read(i32 %66, i8** %91, i32 64)
%104 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%105 = icmp eq i64 %104, 0
br i1 %105, label %110, label %106
106: ; preds = %99
%107 = load i32, i32* @errno
%108 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 111, i32 %107)
%109 = call i32 @exit(i32 1)
unreachable
110: ; preds = %99
%111 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0), i8* %10)
%112 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
ret i32 0
}