#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*/ assert(int);
scalar_t__ ic_parray_destroy(int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ ic_parray_ensure(int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ ic_parray_get(int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ ic_parray_init(int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ ic_parray_set(int /*<<< orphan*/, int /*<<< orphan*/,
                         int /*<<< orphan*/);
void abnormal(void) {
  assert(0 == ic_parray_init(0, 0));
  assert(0 == ic_parray_get(0, 0));
  assert(0 == ic_parray_set(0, 0, 0));
  assert(0 == ic_parray_ensure(0, 0));
  assert(0 == ic_parray_destroy(0, 0));
}


x86 assembly (clang, -O0):
<abnormal>:
push   %rbp
mov    %rsp,%rbp
xor    %esi,%esi
mov    %esi,%edi
call   1040 <ic_parray_init@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1050 <ic_parray_get@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
xor    %edx,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1030 <ic_parray_set@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1070 <ic_parray_ensure@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1080 <ic_parray_destroy@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<abnormal>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
call   1040 <ic_parray_init@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1060 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1050 <ic_parray_get@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1060 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1030 <ic_parray_set@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1060 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1070 <ic_parray_ensure@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1060 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1080 <ic_parray_destroy@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
pop    %rax
jmp    1060 <assert@plt>

LLVM IR (-O0):
define void @abnormal() {
%1 = call i64 @ic_parray_init(i32 0, i32 0)
%2 = icmp eq i64 0, %1
%3 = zext i1 %2 to i32
%4 = call i32 @assert(i32 %3)
%5 = call i64 @ic_parray_get(i32 0, i32 0)
%6 = icmp eq i64 0, %5
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 %7)
%9 = call i64 @ic_parray_set(i32 0, i32 0, i32 0)
%10 = icmp eq i64 0, %9
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 %11)
%13 = call i64 @ic_parray_ensure(i32 0, i32 0)
%14 = icmp eq i64 0, %13
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 %15)
%17 = call i64 @ic_parray_destroy(i32 0, i32 0)
%18 = icmp eq i64 0, %17
%19 = zext i1 %18 to i32
%20 = call i32 @assert(i32 %19)
ret void
}

LLVM IR (-O2):
define void @abnormal() {
%1 = tail call i64 @ic_parray_init(i32 0, i32 0)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = tail call i64 @ic_parray_get(i32 0, i32 0)
%6 = icmp eq i64 %5, 0
%7 = zext i1 %6 to i32
%8 = tail call i32 @assert(i32 %7)
%9 = tail call i64 @ic_parray_set(i32 0, i32 0, i32 0)
%10 = icmp eq i64 %9, 0
%11 = zext i1 %10 to i32
%12 = tail call i32 @assert(i32 %11)
%13 = tail call i64 @ic_parray_ensure(i32 0, i32 0)
%14 = icmp eq i64 %13, 0
%15 = zext i1 %14 to i32
%16 = tail call i32 @assert(i32 %15)
%17 = tail call i64 @ic_parray_destroy(i32 0, i32 0)
%18 = icmp eq i64 %17, 0
%19 = zext i1 %18 to i32
%20 = tail call i32 @assert(i32 %19)
ret void
}