#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 */
typedef int /*<<< orphan*/ tmpfname;
struct aiocb {
  int aio_fildes;
  char *aio_buf;
  int aio_nbytes;
  int aio_lio_opcode;
  scalar_t__ aio_offset;
};

/* Variables and functions */
int EIO;
int LIO_NOP;
int LIO_READ;
int /*<<< orphan*/ LIO_WAIT;
int LIO_WRITE;
int O_CREAT;
int O_EXCL;
int O_RDWR;
int S_IRUSR;
int S_IWUSR;
int /*<<< orphan*/ _SC_ASYNCHRONOUS_IO;
int aio_error(struct aiocb *);
int aio_return(struct aiocb *);
int /*<<< orphan*/ close(int);
int errno;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ free(struct aiocb *);
int getpid();
int lio_listio(int /*<<< orphan*/, struct aiocb **, int, int /*<<< orphan*/ *);
scalar_t__ malloc(int);
int /*<<< orphan*/ memset(struct aiocb *, int /*<<< orphan*/, int);
int open(char *, int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ snprintf(char *, int, char *, int);
char *strerror(int);
long sysconf(int /*<<< orphan*/);
int /*<<< orphan*/ unlink(char *);
int main(void) {
  char tmpfname[256];
  int fd;
  struct aiocb *aiocbs[3];
  char buf[1024];
  int errors = 0;
  int ret;
  int err;
  int i;
  if (sysconf(_SC_ASYNCHRONOUS_IO) < 200112L)
    exit(4);
  snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_lio_listio_4_1_%d", getpid());
  unlink(tmpfname);
  fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR);
  if (fd == -1) {
    printf("lio_listio/5-1.c"
           " Error at open(): %s\n",
           strerror(errno));
    exit(2);
  }
  unlink(tmpfname);
  for (i = 0; i < 3; i++) {
    aiocbs[i] = (struct aiocb *)malloc(sizeof(struct aiocb));
    memset(aiocbs[i], 0, sizeof(struct aiocb));
    aiocbs[i]->aio_fildes = fd;
    aiocbs[i]->aio_offset = 0;
    aiocbs[i]->aio_buf = buf;
    aiocbs[i]->aio_nbytes = 1024;
    if (i == 0)
      aiocbs[i]->aio_lio_opcode = LIO_WRITE;
    else if (i == 1)
      aiocbs[i]->aio_lio_opcode = LIO_READ;
    else
      aiocbs[i]->aio_lio_opcode = LIO_NOP;
  }
  ret = lio_listio(LIO_WAIT, aiocbs, 3, NULL);
  if (ret) {
    printf("lio_listio/5-1.c"
           " lio_listio() does not accept valid opcodes\n");
    for (i = 0; i < 3; i++)
      free(aiocbs[i]);
    close(fd);
    exit(1);
  }
  for (i = 0; i < 3 - 1; i++) {
    err = aio_error(aiocbs[i]);
    ret = aio_return(aiocbs[i]);
    if ((err != 0) && (ret != 1024)) {
      printf("lio_listio/5-1.c"
             " req %d: error = %d - return = %d\n",
             i, err, ret);
      errors++;
    }
  }
  if (errors) {
    for (i = 0; i < 3; i++)
      free(aiocbs[i]);
    close(fd);
    exit(1);
  }
  aiocbs[0]->aio_lio_opcode = -1;
  if (lio_listio(LIO_WAIT, aiocbs, 1, NULL) != -1) {
    printf("lio_listio/5-1.c"
           " lio_listio() accepts invalid opcode\n");
    for (i = 0; i < 3; i++)
      free(aiocbs[i]);
    close(fd);
    exit(1);
  }
  if (errno != EIO) {
    printf("lio_listio/5-1.c"
           " lio_listio() sould set errno to EIO %d\n",
           errno);
    for (i = 0; i < 3; i++)
      free(aiocbs[i]);
    close(fd);
    exit(1);
  }
  for (i = 0; i < 3; i++)
    free(aiocbs[i]);
  close(fd);
  printf("Test PASSED\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x550,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x534(%rbp)
mov    0x2dad(%rip),%rax
mov    (%rax),%edi
call   10e0 <sysconf@plt>
cmp    $0x30db0,%rax
jge    1230 <main+0x40>
mov    $0x4,%edi
call   1100 <exit@plt>
lea    -0x110(%rbp),%rax
mov    %rax,-0x548(%rbp)
mov    $0x0,%al
call   1050 <getpid@plt>
mov    -0x548(%rbp),%rdi
mov    %eax,%ecx
mov    $0x100,%esi
lea    0xda6(%rip),%rdx
call   1070 <snprintf@plt>
lea    -0x110(%rbp),%rdi
call   1040 <unlink@plt>
lea    -0x110(%rbp),%rdi
mov    0x2d7f(%rip),%rax
mov    (%rax),%esi
mov    0x2d56(%rip),%rax
or     (%rax),%esi
mov    0x2d15(%rip),%rax
or     (%rax),%esi
mov    0x2cf4(%rip),%rax
mov    (%rax),%edx
mov    0x2d1b(%rip),%rax
or     (%rax),%edx
call   10d0 <open@plt>
mov    %eax,-0x114(%rbp)
cmpl   $0xffffffff,-0x114(%rbp)
jne    12e0 <main+0xf0>
mov    0x2cda(%rip),%rax
mov    (%rax),%edi
call   1110 <strerror@plt>
mov    %rax,%rsi
lea    0xd4c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x2,%edi
call   1100 <exit@plt>
lea    -0x110(%rbp),%rdi
call   1040 <unlink@plt>
movl   $0x0,-0x540(%rbp)
cmpl   $0x3,-0x540(%rbp)
jge    142b <main+0x23b>
mov    $0x20,%edi
call   10b0 <malloc@plt>
mov    %rax,%rcx
movslq -0x540(%rbp),%rax
mov    %rcx,-0x130(%rbp,%rax,8)
ff
movslq -0x540(%rbp),%rax
mov    -0x130(%rbp,%rax,8),%rdi
ff
xor    %esi,%esi
mov    $0x20,%edx
call   1080 <memset@plt>
mov    -0x114(%rbp),%ecx
movslq -0x540(%rbp),%rax
mov    -0x130(%rbp,%rax,8),%rax
ff
mov    %ecx,(%rax)
movslq -0x540(%rbp),%rax
mov    -0x130(%rbp,%rax,8),%rax
ff
movq   $0x0,0x18(%rax)
lea    -0x530(%rbp),%rcx
movslq -0x540(%rbp),%rax
mov    -0x130(%rbp,%rax,8),%rax
ff
mov    %rcx,0x8(%rax)
movslq -0x540(%rbp),%rax
mov    -0x130(%rbp,%rax,8),%rax
ff
movl   $0x400,0x10(%rax)
cmpl   $0x0,-0x540(%rbp)
jne    13c5 <main+0x1d5>
mov    0x2c1c(%rip),%rax
mov    (%rax),%ecx
movslq -0x540(%rbp),%rax
mov    -0x130(%rbp,%rax,8),%rax
ff
mov    %ecx,0x14(%rax)
jmp    1412 <main+0x222>
cmpl   $0x1,-0x540(%rbp)
jne    13f2 <main+0x202>
mov    0x2bb7(%rip),%rax
mov    (%rax),%ecx
movslq -0x540(%rbp),%rax
mov    -0x130(%rbp,%rax,8),%rax
ff
mov    %ecx,0x14(%rax)
jmp    140d <main+0x21d>
mov    0x2bef(%rip),%rax
mov    (%rax),%ecx
movslq -0x540(%rbp),%rax
mov    -0x130(%rbp,%rax,8),%rax
ff
mov    %ecx,0x14(%rax)
jmp    1412 <main+0x222>
jmp    1417 <main+0x227>
mov    -0x540(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x540(%rbp)
jmp    12f6 <main+0x106>
mov    0x2b9e(%rip),%rax
mov    (%rax),%edi
lea    -0x130(%rbp),%rsi
mov    $0x3,%edx
xor    %eax,%eax
mov    %eax,%ecx
call   10f0 <lio_listio@plt>
mov    %eax,-0x538(%rbp)
cmpl   $0x0,-0x538(%rbp)
je     14be <main+0x2ce>
lea    0xbde(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x540(%rbp)
cmpl   $0x3,-0x540(%rbp)
jge    14a9 <main+0x2b9>
movslq -0x540(%rbp),%rax
mov    -0x130(%rbp,%rax,8),%rdi
ff
call   1030 <free@plt>
mov    -0x540(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x540(%rbp)
jmp    1474 <main+0x284>
mov    -0x114(%rbp),%edi
call   1090 <close@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
movl   $0x0,-0x540(%rbp)
cmpl   $0x2,-0x540(%rbp)
jge    156e <main+0x37e>
movslq -0x540(%rbp),%rax
mov    -0x130(%rbp,%rax,8),%rdi
ff
call   10a0 <aio_error@plt>
mov    %eax,-0x53c(%rbp)
movslq -0x540(%rbp),%rax
mov    -0x130(%rbp,%rax,8),%rdi
ff
call   10c0 <aio_return@plt>
mov    %eax,-0x538(%rbp)
cmpl   $0x0,-0x53c(%rbp)
je     1555 <main+0x365>
cmpl   $0x400,-0x538(%rbp)
je     1555 <main+0x365>
mov    -0x540(%rbp),%esi
mov    -0x53c(%rbp),%edx
mov    -0x538(%rbp),%ecx
lea    0xb3f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x534(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x534(%rbp)
jmp    155a <main+0x36a>
mov    -0x540(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x540(%rbp)
jmp    14c8 <main+0x2d8>
cmpl   $0x0,-0x534(%rbp)
je     15cf <main+0x3df>
movl   $0x0,-0x540(%rbp)
cmpl   $0x3,-0x540(%rbp)
jge    15ba <main+0x3ca>
movslq -0x540(%rbp),%rax
mov    -0x130(%rbp,%rax,8),%rdi
ff
call   1030 <free@plt>
mov    -0x540(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x540(%rbp)
jmp    1585 <main+0x395>
mov    -0x114(%rbp),%edi
call   1090 <close@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    -0x130(%rbp),%rax
movl   $0xffffffff,0x14(%rax)
mov    0x29ec(%rip),%rax
mov    (%rax),%edi
lea    -0x130(%rbp),%rsi
mov    $0x1,%edx
xor    %eax,%eax
mov    %eax,%ecx
call   10f0 <lio_listio@plt>
cmp    $0xffffffff,%eax
je     1666 <main+0x476>
lea    0xaa6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x540(%rbp)
cmpl   $0x3,-0x540(%rbp)
jge    1651 <main+0x461>
movslq -0x540(%rbp),%rax
mov    -0x130(%rbp,%rax,8),%rdi
ff
call   1030 <free@plt>
mov    -0x540(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x540(%rbp)
jmp    161c <main+0x42c>
mov    -0x114(%rbp),%edi
call   1090 <close@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    0x292b(%rip),%rax
mov    (%rax),%eax
mov    0x2932(%rip),%rcx
cmp    (%rcx),%eax
je     16e9 <main+0x4f9>
mov    0x2913(%rip),%rax
mov    (%rax),%esi
lea    0xa59(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x540(%rbp)
cmpl   $0x3,-0x540(%rbp)
jge    16d4 <main+0x4e4>
movslq -0x540(%rbp),%rax
mov    -0x130(%rbp,%rax,8),%rdi
ff
call   1030 <free@plt>
mov    -0x540(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x540(%rbp)
jmp    169f <main+0x4af>
mov    -0x114(%rbp),%edi
call   1090 <close@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
movl   $0x0,-0x540(%rbp)
cmpl   $0x3,-0x540(%rbp)
jge    1728 <main+0x538>
movslq -0x540(%rbp),%rax
mov    -0x130(%rbp,%rax,8),%rdi
ff
call   1030 <free@plt>
mov    -0x540(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x540(%rbp)
jmp    16f3 <main+0x503>
mov    -0x114(%rbp),%edi
call   1090 <close@plt>
lea    0x9e6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x550,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x528,%rsp
mov    0x2dac(%rip),%rax
mov    (%rax),%edi
call   10f0 <sysconf@plt>
cmp    $0x30daf,%rax
jle    1481 <main+0x281>
xor    %eax,%eax
call   1060 <getpid@plt>
lea    0xdcb(%rip),%rdx
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %eax,%ecx
call   1080 <snprintf@plt>
mov    %rbx,%rdi
call   1040 <unlink@plt>
mov    0x2da0(%rip),%rax
mov    0x2d79(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
mov    0x2d36(%rip),%rax
or     (%rax),%esi
mov    0x2d15(%rip),%rax
mov    0x2d3e(%rip),%rcx
mov    (%rcx),%edx
or     (%rax),%edx
mov    %rbx,%rdi
call   10e0 <open@plt>
cmp    $0xffffffff,%eax
je     148b <main+0x28b>
mov    %eax,%r15d
lea    0x20(%rsp),%rdi
call   1040 <unlink@plt>
mov    $0x20,%edi
call   10c0 <malloc@plt>
mov    %rax,(%rsp)
mov    %rax,%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1090 <memset@plt>
mov    (%rsp),%rax
mov    %r15d,(%rax)
movq   $0x0,0x18(%rax)
lea    0x120(%rsp),%rbp
mov    %rbp,0x8(%rax)
movl   $0x400,0x10(%rax)
mov    0x2ce6(%rip),%rcx
mov    (%rcx),%ecx
mov    %ecx,0x14(%rax)
mov    $0x20,%edi
call   10c0 <malloc@plt>
mov    %rax,0x8(%rsp)
mov    %rax,%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1090 <memset@plt>
mov    0x8(%rsp),%rax
mov    %r15d,(%rax)
movq   $0x0,0x18(%rax)
mov    %rbp,0x8(%rax)
mov    0x8(%rsp),%rax
movl   $0x400,0x10(%rax)
mov    0x2c64(%rip),%rcx
mov    (%rcx),%ecx
mov    %ecx,0x14(%rax)
mov    $0x20,%edi
call   10c0 <malloc@plt>
mov    %rax,0x10(%rsp)
mov    %rax,%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1090 <memset@plt>
mov    0x10(%rsp),%rax
mov    %r15d,(%rax)
movq   $0x0,0x18(%rax)
mov    %rbp,0x8(%rax)
mov    0x10(%rsp),%rax
movl   $0x400,0x10(%rax)
mov    0x2c72(%rip),%rcx
mov    (%rcx),%ecx
mov    %ecx,0x14(%rax)
mov    0x2c4e(%rip),%r14
mov    (%r14),%edi
mov    %rsp,%rsi
mov    $0x3,%edx
xor    %ecx,%ecx
call   1100 <lio_listio@plt>
test   %eax,%eax
jne    14b4 <main+0x2b4>
mov    (%rsp),%rdi
call   10b0 <aio_error@plt>
mov    %eax,%ebp
mov    (%rsp),%rdi
call   10d0 <aio_return@plt>
test   %ebp,%ebp
setne  %cl
cmp    $0x400,%eax
setne  %bl
and    %cl,%bl
je     13d5 <main+0x1d5>
lea    0xc79(%rip),%rdi
xor    %esi,%esi
mov    %ebp,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x8(%rsp),%rdi
call   10b0 <aio_error@plt>
mov    %eax,%ebp
mov    0x8(%rsp),%rdi
call   10d0 <aio_return@plt>
test   %ebp,%ebp
je     13fa <main+0x1fa>
cmp    $0x400,%eax
jne    14c2 <main+0x2c2>
test   %bl,%bl
jne    14f7 <main+0x2f7>
mov    (%rsp),%rax
movl   $0xffffffff,0x14(%rax)
mov    (%r14),%edi
mov    %rsp,%rsi
mov    $0x1,%edx
xor    %ecx,%ecx
call   1100 <lio_listio@plt>
cmp    $0xffffffff,%eax
jne    14db <main+0x2db>
mov    0x2b69(%rip),%rax
mov    (%rax),%esi
mov    0x2b70(%rip),%rax
cmp    (%rax),%esi
jne    14e9 <main+0x2e9>
mov    (%rsp),%rdi
call   1030 <free@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
mov    %r15d,%edi
call   10a0 <close@plt>
lea    0xc41(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
add    $0x528,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x4,%edi
call   1110 <exit@plt>
mov    0x2b06(%rip),%rax
mov    (%rax),%edi
call   1120 <strerror@plt>
lea    0xb7b(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x2,%edi
call   1110 <exit@plt>
lea    0xc33(%rip),%rdi
call   1050 <puts@plt>
jmp    14f7 <main+0x2f7>
lea    0xb78(%rip),%rdi
mov    $0x1,%esi
mov    %ebp,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1070 <printf@plt>
jmp    14f7 <main+0x2f7>
lea    0xbd7(%rip),%rdi
call   1050 <puts@plt>
jmp    14f7 <main+0x2f7>
lea    0xb84(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    (%rsp),%rdi
call   1030 <free@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
mov    %r15d,%edi
call   10a0 <close@plt>
mov    $0x1,%edi
call   1110 <exit@plt>

LLVM IR (-O0):
%struct.aiocb = type { i32, i8*, i32, i32, i64 }
@_SC_ASYNCHRONOUS_IO = global i32 0
@.str = [27 x i8] c"/tmp/pts_lio_listio_4_1_%d\00"
@O_CREAT = global i32 0
@O_RDWR = global i32 0
@O_EXCL = global i32 0
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
@.str.1 = [38 x i8] c"lio_listio/5-1.c Error at open(): %s\0A\00"
@errno = global i32 0
@LIO_WRITE = global i32 0
@LIO_READ = global i32 0
@LIO_NOP = global i32 0
@LIO_WAIT = global i32 0
@.str.2 = [61 x i8] c"lio_listio/5-1.c lio_listio() does not accept valid opcodes\0A\00"
@.str.3 = [51 x i8] c"lio_listio/5-1.c req %d: error = %d - return = %d\0A\00"
@.str.4 = [54 x i8] c"lio_listio/5-1.c lio_listio() accepts invalid opcode\0A\00"
@EIO = global i32 0
@.str.5 = [57 x i8] c"lio_listio/5-1.c lio_listio() sould set errno to EIO %d\0A\00"
@.str.6 = [13 x i8] c"Test PASSED\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [256 x i8]
%3 = alloca i32
%4 = alloca [3 x %struct.aiocb*]
%5 = alloca [1024 x i8]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %6
%10 = load i32, i32* @_SC_ASYNCHRONOUS_IO
%11 = call i64 @sysconf(i32 %10)
%12 = icmp slt i64 %11, 200112
br i1 %12, label %13, label %15
13: ; preds = %0
%14 = call i32 @exit(i32 4)
unreachable
15: ; preds = %0
%16 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%17 = call i32 (...) @getpid()
%18 = call i32 @snprintf(i8* %16, i32 256, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 %17)
%19 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%20 = call i32 @unlink(i8* %19)
%21 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%22 = load i32, i32* @O_CREAT
%23 = load i32, i32* @O_RDWR
%24 = or i32 %22, %23
%25 = load i32, i32* @O_EXCL
%26 = or i32 %24, %25
%27 = load i32, i32* @S_IRUSR
%28 = load i32, i32* @S_IWUSR
%29 = or i32 %27, %28
%30 = call i32 @open(i8* %21, i32 %26, i32 %29)
store i32 %30, i32* %3
%31 = load i32, i32* %3
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %38
33: ; preds = %15
%34 = load i32, i32* @errno
%35 = call i8* @strerror(i32 %34)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i8* %35)
%37 = call i32 @exit(i32 2)
unreachable
38: ; preds = %15
%39 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%40 = call i32 @unlink(i8* %39)
store i32 0, i32* %9
br label %41
41: ; preds = %105, %38
%42 = load i32, i32* %9
%43 = icmp slt i32 %42, 3
br i1 %43, label %44, label %108
44: ; preds = %41
%45 = call i64 @malloc(i32 32)
%46 = inttoptr i64 %45 to %struct.aiocb*
%47 = load i32, i32* %9
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 %48
store %struct.aiocb* %46, %struct.aiocb** %49
%50 = load i32, i32* %9
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 %51
%53 = load %struct.aiocb*, %struct.aiocb** %52
%54 = call i32 @memset(%struct.aiocb* %53, i32 0, i32 32)
%55 = load i32, i32* %3
%56 = load i32, i32* %9
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 %57
%59 = load %struct.aiocb*, %struct.aiocb** %58
%60 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %59, i32 0, i32 0
store i32 %55, i32* %60
%61 = load i32, i32* %9
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 %62
%64 = load %struct.aiocb*, %struct.aiocb** %63
%65 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %64, i32 0, i32 4
store i64 0, i64* %65
%66 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%67 = load i32, i32* %9
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 %68
%70 = load %struct.aiocb*, %struct.aiocb** %69
%71 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %70, i32 0, i32 1
store i8* %66, i8** %71
%72 = load i32, i32* %9
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 %73
%75 = load %struct.aiocb*, %struct.aiocb** %74
%76 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %75, i32 0, i32 2
store i32 1024, i32* %76
%77 = load i32, i32* %9
%78 = icmp eq i32 %77, 0
br i1 %78, label %79, label %86
79: ; preds = %44
%80 = load i32, i32* @LIO_WRITE
%81 = load i32, i32* %9
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 %82
%84 = load %struct.aiocb*, %struct.aiocb** %83
%85 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %84, i32 0, i32 3
store i32 %80, i32* %85
br label %104
86: ; preds = %44
%87 = load i32, i32* %9
%88 = icmp eq i32 %87, 1
br i1 %88, label %89, label %96
89: ; preds = %86
%90 = load i32, i32* @LIO_READ
%91 = load i32, i32* %9
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 %92
%94 = load %struct.aiocb*, %struct.aiocb** %93
%95 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %94, i32 0, i32 3
store i32 %90, i32* %95
br label %103
96: ; preds = %86
%97 = load i32, i32* @LIO_NOP
%98 = load i32, i32* %9
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 %99
%101 = load %struct.aiocb*, %struct.aiocb** %100
%102 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %101, i32 0, i32 3
store i32 %97, i32* %102
br label %103
103: ; preds = %96, %89
br label %104
104: ; preds = %103, %79
br label %105
105: ; preds = %104
%106 = load i32, i32* %9
%107 = add nsw i32 %106, 1
store i32 %107, i32* %9
br label %41
108: ; preds = %41
%109 = load i32, i32* @LIO_WAIT
%110 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 0
%111 = call i32 @lio_listio(i32 %109, %struct.aiocb** %110, i32 3, i32* null)
store i32 %111, i32* %7
%112 = load i32, i32* %7
%113 = icmp ne i32 %112, 0
br i1 %113, label %114, label %132
114: ; preds = %108
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %9
br label %116
116: ; preds = %125, %114
%117 = load i32, i32* %9
%118 = icmp slt i32 %117, 3
br i1 %118, label %119, label %128
119: ; preds = %116
%120 = load i32, i32* %9
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 %121
%123 = load %struct.aiocb*, %struct.aiocb** %122
%124 = call i32 @free(%struct.aiocb* %123)
br label %125
125: ; preds = %119
%126 = load i32, i32* %9
%127 = add nsw i32 %126, 1
store i32 %127, i32* %9
br label %116
128: ; preds = %116
%129 = load i32, i32* %3
%130 = call i32 @close(i32 %129)
%131 = call i32 @exit(i32 1)
unreachable
132: ; preds = %108
store i32 0, i32* %9
br label %133
133: ; preds = %160, %132
%134 = load i32, i32* %9
%135 = icmp slt i32 %134, 2
br i1 %135, label %136, label %163
136: ; preds = %133
%137 = load i32, i32* %9
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 %138
%140 = load %struct.aiocb*, %struct.aiocb** %139
%141 = call i32 @aio_error(%struct.aiocb* %140)
store i32 %141, i32* %8
%142 = load i32, i32* %9
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 %143
%145 = load %struct.aiocb*, %struct.aiocb** %144
%146 = call i32 @aio_return(%struct.aiocb* %145)
store i32 %146, i32* %7
%147 = load i32, i32* %8
%148 = icmp ne i32 %147, 0
br i1 %148, label %149, label %159
149: ; preds = %136
%150 = load i32, i32* %7
%151 = icmp ne i32 %150, 1024
br i1 %151, label %152, label %159
152: ; preds = %149
%153 = load i32, i32* %9
%154 = load i32, i32* %8
%155 = load i32, i32* %7
%156 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0), i32 %153, i32 %154, i32 %155)
%157 = load i32, i32* %6
%158 = add nsw i32 %157, 1
store i32 %158, i32* %6
br label %159
159: ; preds = %152, %149, %136
br label %160
160: ; preds = %159
%161 = load i32, i32* %9
%162 = add nsw i32 %161, 1
store i32 %162, i32* %9
br label %133
163: ; preds = %133
%164 = load i32, i32* %6
%165 = icmp ne i32 %164, 0
br i1 %165, label %166, label %183
166: ; preds = %163
store i32 0, i32* %9
br label %167
167: ; preds = %176, %166
%168 = load i32, i32* %9
%169 = icmp slt i32 %168, 3
br i1 %169, label %170, label %179
170: ; preds = %167
%171 = load i32, i32* %9
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 %172
%174 = load %struct.aiocb*, %struct.aiocb** %173
%175 = call i32 @free(%struct.aiocb* %174)
br label %176
176: ; preds = %170
%177 = load i32, i32* %9
%178 = add nsw i32 %177, 1
store i32 %178, i32* %9
br label %167
179: ; preds = %167
%180 = load i32, i32* %3
%181 = call i32 @close(i32 %180)
%182 = call i32 @exit(i32 1)
unreachable
183: ; preds = %163
%184 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 0
%185 = load %struct.aiocb*, %struct.aiocb** %184
%186 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %185, i32 0, i32 3
store i32 -1, i32* %186
%187 = load i32, i32* @LIO_WAIT
%188 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 0
%189 = call i32 @lio_listio(i32 %187, %struct.aiocb** %188, i32 1, i32* null)
%190 = icmp ne i32 %189, -1
br i1 %190, label %191, label %209
191: ; preds = %183
%192 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %9
br label %193
193: ; preds = %202, %191
%194 = load i32, i32* %9
%195 = icmp slt i32 %194, 3
br i1 %195, label %196, label %205
196: ; preds = %193
%197 = load i32, i32* %9
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 %198
%200 = load %struct.aiocb*, %struct.aiocb** %199
%201 = call i32 @free(%struct.aiocb* %200)
br label %202
202: ; preds = %196
%203 = load i32, i32* %9
%204 = add nsw i32 %203, 1
store i32 %204, i32* %9
br label %193
205: ; preds = %193
%206 = load i32, i32* %3
%207 = call i32 @close(i32 %206)
%208 = call i32 @exit(i32 1)
unreachable
209: ; preds = %183
%210 = load i32, i32* @errno
%211 = load i32, i32* @EIO
%212 = icmp ne i32 %210, %211
br i1 %212, label %213, label %232
213: ; preds = %209
%214 = load i32, i32* @errno
%215 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0), i32 %214)
store i32 0, i32* %9
br label %216
216: ; preds = %225, %213
%217 = load i32, i32* %9
%218 = icmp slt i32 %217, 3
br i1 %218, label %219, label %228
219: ; preds = %216
%220 = load i32, i32* %9
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 %221
%223 = load %struct.aiocb*, %struct.aiocb** %222
%224 = call i32 @free(%struct.aiocb* %223)
br label %225
225: ; preds = %219
%226 = load i32, i32* %9
%227 = add nsw i32 %226, 1
store i32 %227, i32* %9
br label %216
228: ; preds = %216
%229 = load i32, i32* %3
%230 = call i32 @close(i32 %229)
%231 = call i32 @exit(i32 1)
unreachable
232: ; preds = %209
store i32 0, i32* %9
br label %233
233: ; preds = %242, %232
%234 = load i32, i32* %9
%235 = icmp slt i32 %234, 3
br i1 %235, label %236, label %245
236: ; preds = %233
%237 = load i32, i32* %9
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %4, i64 0, i64 %238
%240 = load %struct.aiocb*, %struct.aiocb** %239
%241 = call i32 @free(%struct.aiocb* %240)
br label %242
242: ; preds = %236
%243 = load i32, i32* %9
%244 = add nsw i32 %243, 1
store i32 %244, i32* %9
br label %233
245: ; preds = %233
%246 = load i32, i32* %3
%247 = call i32 @close(i32 %246)
%248 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
%struct.aiocb = type { i32, i8*, i32, i32, i64 }
@_SC_ASYNCHRONOUS_IO = global i32 0
@.str = [27 x i8] c"/tmp/pts_lio_listio_4_1_%d\00"
@O_CREAT = global i32 0
@O_RDWR = global i32 0
@O_EXCL = global i32 0
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
@.str.1 = [38 x i8] c"lio_listio/5-1.c Error at open(): %s\0A\00"
@errno = global i32 0
@LIO_WRITE = global i32 0
@LIO_READ = global i32 0
@LIO_NOP = global i32 0
@LIO_WAIT = global i32 0
@.str.3 = [51 x i8] c"lio_listio/5-1.c req %d: error = %d - return = %d\0A\00"
@EIO = global i32 0
@.str.5 = [57 x i8] c"lio_listio/5-1.c lio_listio() sould set errno to EIO %d\0A\00"
@str = [12 x i8] c"Test PASSED\00"
@str.7 = [53 x i8] c"lio_listio/5-1.c lio_listio() accepts invalid opcode\00"
@str.8 = [60 x i8] c"lio_listio/5-1.c lio_listio() does not accept valid opcodes\00"
define i32 @main() {
%1 = alloca [256 x i8]
%2 = alloca [3 x %struct.aiocb*]
%3 = alloca [1024 x i8]
%4 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%5 = bitcast [3 x %struct.aiocb*]* %2 to i8*
%6 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%7 = load i32, i32* @_SC_ASYNCHRONOUS_IO
%8 = tail call i64 @sysconf(i32 %7)
%9 = icmp slt i64 %8, 200112
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = tail call i32 @exit(i32 4)
unreachable
12: ; preds = %0
%13 = tail call i32 (...) @getpid()
%14 = call i32 @snprintf(i8* %4, i32 256, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 %13)
%15 = call i32 @unlink(i8* %4)
%16 = load i32, i32* @O_CREAT
%17 = load i32, i32* @O_RDWR
%18 = or i32 %17, %16
%19 = load i32, i32* @O_EXCL
%20 = or i32 %18, %19
%21 = load i32, i32* @S_IRUSR
%22 = load i32, i32* @S_IWUSR
%23 = or i32 %22, %21
%24 = call i32 @open(i8* %4, i32 %20, i32 %23)
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %31
26: ; preds = %12
%27 = load i32, i32* @errno
%28 = call i8* @strerror(i32 %27)
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i8* %28)
%30 = call i32 @exit(i32 2)
unreachable
31: ; preds = %12
%32 = call i32 @unlink(i8* %4)
%33 = call i64 @malloc(i32 32)
%34 = inttoptr i64 %33 to %struct.aiocb*
%35 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %2, i64 0, i64 0
store %struct.aiocb* %34, %struct.aiocb** %35
%36 = call i32 @memset(%struct.aiocb* %34, i32 0, i32 32)
%37 = load %struct.aiocb*, %struct.aiocb** %35
%38 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %37, i64 0, i32 0
store i32 %24, i32* %38
%39 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %37, i64 0, i32 4
store i64 0, i64* %39
%40 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %37, i64 0, i32 1
store i8* %6, i8** %40
%41 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %37, i64 0, i32 2
store i32 1024, i32* %41
%42 = load i32, i32* @LIO_WRITE
%43 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %37, i64 0, i32 3
store i32 %42, i32* %43
%44 = call i64 @malloc(i32 32)
%45 = inttoptr i64 %44 to %struct.aiocb*
%46 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %2, i64 0, i64 1
store %struct.aiocb* %45, %struct.aiocb** %46
%47 = call i32 @memset(%struct.aiocb* %45, i32 0, i32 32)
%48 = load %struct.aiocb*, %struct.aiocb** %46
%49 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %48, i64 0, i32 0
store i32 %24, i32* %49
%50 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %48, i64 0, i32 4
store i64 0, i64* %50
%51 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %48, i64 0, i32 1
store i8* %6, i8** %51
%52 = load %struct.aiocb*, %struct.aiocb** %46
%53 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %52, i64 0, i32 2
store i32 1024, i32* %53
%54 = load i32, i32* @LIO_READ
%55 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %52, i64 0, i32 3
store i32 %54, i32* %55
%56 = call i64 @malloc(i32 32)
%57 = inttoptr i64 %56 to %struct.aiocb*
%58 = getelementptr inbounds [3 x %struct.aiocb*], [3 x %struct.aiocb*]* %2, i64 0, i64 2
store %struct.aiocb* %57, %struct.aiocb** %58
%59 = call i32 @memset(%struct.aiocb* %57, i32 0, i32 32)
%60 = load %struct.aiocb*, %struct.aiocb** %58
%61 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %60, i64 0, i32 0
store i32 %24, i32* %61
%62 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %60, i64 0, i32 4
store i64 0, i64* %62
%63 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %60, i64 0, i32 1
store i8* %6, i8** %63
%64 = load %struct.aiocb*, %struct.aiocb** %58
%65 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %64, i64 0, i32 2
store i32 1024, i32* %65
%66 = load i32, i32* @LIO_NOP
%67 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %64, i64 0, i32 3
store i32 %66, i32* %67
%68 = load i32, i32* @LIO_WAIT
%69 = call i32 @lio_listio(i32 %68, %struct.aiocb** %35, i32 3, i32* null)
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %79
71: ; preds = %31
%72 = load %struct.aiocb*, %struct.aiocb** %35
%73 = call i32 @aio_error(%struct.aiocb* %72)
%74 = load %struct.aiocb*, %struct.aiocb** %35
%75 = call i32 @aio_return(%struct.aiocb* %74)
%76 = icmp ne i32 %73, 0
%77 = icmp ne i32 %75, 1024
%78 = select i1 %76, i1 %77, i1 false
br i1 %78, label %89, label %91
79: ; preds = %31
%80 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.8, i64 0, i64 0))
%81 = load %struct.aiocb*, %struct.aiocb** %35
%82 = call i32 @free(%struct.aiocb* %81)
%83 = load %struct.aiocb*, %struct.aiocb** %46
%84 = call i32 @free(%struct.aiocb* %83)
%85 = load %struct.aiocb*, %struct.aiocb** %58
%86 = call i32 @free(%struct.aiocb* %85)
%87 = call i32 @close(i32 %24)
%88 = call i32 @exit(i32 1)
unreachable
89: ; preds = %71
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0), i32 0, i32 %73, i32 %75)
br label %91
91: ; preds = %71, %89
%92 = load %struct.aiocb*, %struct.aiocb** %46
%93 = call i32 @aio_error(%struct.aiocb* %92)
%94 = load %struct.aiocb*, %struct.aiocb** %46
%95 = call i32 @aio_return(%struct.aiocb* %94)
%96 = icmp ne i32 %93, 0
%97 = icmp ne i32 %95, 1024
%98 = select i1 %96, i1 %97, i1 false
br i1 %98, label %99, label %101
99: ; preds = %91
%100 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0), i32 1, i32 %93, i32 %95)
br label %102
101: ; preds = %91
br i1 %78, label %102, label %111
102: ; preds = %99, %101
%103 = load %struct.aiocb*, %struct.aiocb** %35
%104 = call i32 @free(%struct.aiocb* %103)
%105 = load %struct.aiocb*, %struct.aiocb** %46
%106 = call i32 @free(%struct.aiocb* %105)
%107 = load %struct.aiocb*, %struct.aiocb** %58
%108 = call i32 @free(%struct.aiocb* %107)
%109 = call i32 @close(i32 %24)
%110 = call i32 @exit(i32 1)
unreachable
111: ; preds = %101
%112 = load %struct.aiocb*, %struct.aiocb** %35
%113 = getelementptr inbounds %struct.aiocb, %struct.aiocb* %112, i64 0, i32 3
store i32 -1, i32* %113
%114 = load i32, i32* @LIO_WAIT
%115 = call i32 @lio_listio(i32 %114, %struct.aiocb** %35, i32 1, i32* null)
%116 = icmp eq i32 %115, -1
br i1 %116, label %127, label %117
117: ; preds = %111
%118 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.7, i64 0, i64 0))
%119 = load %struct.aiocb*, %struct.aiocb** %35
%120 = call i32 @free(%struct.aiocb* %119)
%121 = load %struct.aiocb*, %struct.aiocb** %46
%122 = call i32 @free(%struct.aiocb* %121)
%123 = load %struct.aiocb*, %struct.aiocb** %58
%124 = call i32 @free(%struct.aiocb* %123)
%125 = call i32 @close(i32 %24)
%126 = call i32 @exit(i32 1)
unreachable
127: ; preds = %111
%128 = load i32, i32* @errno
%129 = load i32, i32* @EIO
%130 = icmp eq i32 %128, %129
br i1 %130, label %131, label %140
131: ; preds = %127
%132 = load %struct.aiocb*, %struct.aiocb** %35
%133 = call i32 @free(%struct.aiocb* %132)
%134 = load %struct.aiocb*, %struct.aiocb** %46
%135 = call i32 @free(%struct.aiocb* %134)
%136 = load %struct.aiocb*, %struct.aiocb** %58
%137 = call i32 @free(%struct.aiocb* %136)
%138 = call i32 @close(i32 %24)
%139 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
ret i32 0
140: ; preds = %127
%141 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0), i32 %128)
%142 = load %struct.aiocb*, %struct.aiocb** %35
%143 = call i32 @free(%struct.aiocb* %142)
%144 = load %struct.aiocb*, %struct.aiocb** %46
%145 = call i32 @free(%struct.aiocb* %144)
%146 = load %struct.aiocb*, %struct.aiocb** %58
%147 = call i32 @free(%struct.aiocb* %146)
%148 = call i32 @close(i32 %24)
%149 = call i32 @exit(i32 1)
unreachable
}