#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 ic_symbol {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ assert(int);
scalar_t__ ic_symbol_contents(int /*<<< orphan*/);
scalar_t__ ic_symbol_destroy(int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ ic_symbol_equal(struct ic_symbol *, int /*<<< orphan*/);
scalar_t__ ic_symbol_equal_char(struct ic_symbol *, int /*<<< orphan*/);
scalar_t__ ic_symbol_equal_str(struct ic_symbol *, int /*<<< orphan*/);
scalar_t__ ic_symbol_get(int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ ic_symbol_init(int /*<<< orphan*/, int /*<<< orphan*/,
                          int /*<<< orphan*/);
int ic_symbol_length(int /*<<< orphan*/);
int /*<<< orphan*/ ic_symbol_print(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
void abnormal(void) {
  struct ic_symbol *sym = 0;
  assert(0 == ic_symbol_init(0, 0, 0));
  assert(0 == ic_symbol_contents(0));
  assert(0 == ic_symbol_get(0, 0));
  assert(-1 == ic_symbol_length(0));
  assert(0 == ic_symbol_destroy(0, 0));
  assert(0 == ic_symbol_equal(0, 0));
  assert(0 == ic_symbol_equal(sym, 0));
  assert(0 == ic_symbol_equal_str(0, 0));
  assert(0 == ic_symbol_equal_str(sym, 0));
  assert(0 == ic_symbol_equal_char(0, 0));
  assert(0 == ic_symbol_equal_char(sym, 0));
  ic_symbol_print(stdout, 0);
}


x86 assembly (clang, -O0):
<abnormal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movq   $0x0,-0x8(%rbp)
xor    %edx,%edx
mov    %edx,%edi
mov    %edx,%esi
call   10b0 <ic_symbol_init@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
xor    %edi,%edi
call   1050 <ic_symbol_contents@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1060 <ic_symbol_get@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
xor    %edi,%edi
call   1080 <ic_symbol_length@plt>
mov    %eax,%ecx
mov    $0xffffffff,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1040 <ic_symbol_destroy@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
xor    %eax,%eax
mov    %eax,%edi
xor    %esi,%esi
call   10c0 <ic_symbol_equal@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
call   10c0 <ic_symbol_equal@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
xor    %eax,%eax
mov    %eax,%edi
xor    %esi,%esi
call   1090 <ic_symbol_equal_str@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
call   1090 <ic_symbol_equal_str@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
xor    %eax,%eax
mov    %eax,%edi
xor    %esi,%esi
call   10a0 <ic_symbol_equal_char@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
call   10a0 <ic_symbol_equal_char@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    0x2cd4(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   1030 <ic_symbol_print@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<abnormal>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
call   10b0 <ic_symbol_init@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
xor    %edi,%edi
call   1050 <ic_symbol_contents@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1060 <ic_symbol_get@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
xor    %edi,%edi
call   1080 <ic_symbol_length@plt>
xor    %edi,%edi
cmp    $0xffffffff,%eax
sete   %dil
call   1070 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <ic_symbol_destroy@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
call   10c0 <ic_symbol_equal@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
call   10c0 <ic_symbol_equal@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1090 <ic_symbol_equal_str@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1090 <ic_symbol_equal_str@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
call   10a0 <ic_symbol_equal_char@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
call   10a0 <ic_symbol_equal_char@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
mov    0x2d3d(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
pop    %rax
jmp    1030 <ic_symbol_print@plt>

LLVM IR (-O0):
%struct.ic_symbol = type { i32 }
@stdout = global i32 0
define void @abnormal() {
%1 = alloca %struct.ic_symbol*
store %struct.ic_symbol* null, %struct.ic_symbol** %1
%2 = call i64 @ic_symbol_init(i32 0, i32 0, i32 0)
%3 = icmp eq i64 0, %2
%4 = zext i1 %3 to i32
%5 = call i32 @assert(i32 %4)
%6 = call i64 @ic_symbol_contents(i32 0)
%7 = icmp eq i64 0, %6
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 %8)
%10 = call i64 @ic_symbol_get(i32 0, i32 0)
%11 = icmp eq i64 0, %10
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 %12)
%14 = call i32 @ic_symbol_length(i32 0)
%15 = icmp eq i32 -1, %14
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 %16)
%18 = call i64 @ic_symbol_destroy(i32 0, i32 0)
%19 = icmp eq i64 0, %18
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 %20)
%22 = call i64 @ic_symbol_equal(%struct.ic_symbol* null, i32 0)
%23 = icmp eq i64 0, %22
%24 = zext i1 %23 to i32
%25 = call i32 @assert(i32 %24)
%26 = load %struct.ic_symbol*, %struct.ic_symbol** %1
%27 = call i64 @ic_symbol_equal(%struct.ic_symbol* %26, i32 0)
%28 = icmp eq i64 0, %27
%29 = zext i1 %28 to i32
%30 = call i32 @assert(i32 %29)
%31 = call i64 @ic_symbol_equal_str(%struct.ic_symbol* null, i32 0)
%32 = icmp eq i64 0, %31
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 %33)
%35 = load %struct.ic_symbol*, %struct.ic_symbol** %1
%36 = call i64 @ic_symbol_equal_str(%struct.ic_symbol* %35, i32 0)
%37 = icmp eq i64 0, %36
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 %38)
%40 = call i64 @ic_symbol_equal_char(%struct.ic_symbol* null, i32 0)
%41 = icmp eq i64 0, %40
%42 = zext i1 %41 to i32
%43 = call i32 @assert(i32 %42)
%44 = load %struct.ic_symbol*, %struct.ic_symbol** %1
%45 = call i64 @ic_symbol_equal_char(%struct.ic_symbol* %44, i32 0)
%46 = icmp eq i64 0, %45
%47 = zext i1 %46 to i32
%48 = call i32 @assert(i32 %47)
%49 = load i32, i32* @stdout
%50 = call i32 @ic_symbol_print(i32 %49, i32 0)
ret void
}

LLVM IR (-O2):
%struct.ic_symbol = type { i32 }
@stdout = global i32 0
define void @abnormal() {
%1 = tail call i64 @ic_symbol_init(i32 0, 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_symbol_contents(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_symbol_get(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 i32 @ic_symbol_length(i32 0)
%14 = icmp eq i32 %13, -1
%15 = zext i1 %14 to i32
%16 = tail call i32 @assert(i32 %15)
%17 = tail call i64 @ic_symbol_destroy(i32 0, i32 0)
%18 = icmp eq i64 %17, 0
%19 = zext i1 %18 to i32
%20 = tail call i32 @assert(i32 %19)
%21 = tail call i64 @ic_symbol_equal(%struct.ic_symbol* null, i32 0)
%22 = icmp eq i64 %21, 0
%23 = zext i1 %22 to i32
%24 = tail call i32 @assert(i32 %23)
%25 = tail call i64 @ic_symbol_equal(%struct.ic_symbol* null, i32 0)
%26 = icmp eq i64 %25, 0
%27 = zext i1 %26 to i32
%28 = tail call i32 @assert(i32 %27)
%29 = tail call i64 @ic_symbol_equal_str(%struct.ic_symbol* null, i32 0)
%30 = icmp eq i64 %29, 0
%31 = zext i1 %30 to i32
%32 = tail call i32 @assert(i32 %31)
%33 = tail call i64 @ic_symbol_equal_str(%struct.ic_symbol* null, i32 0)
%34 = icmp eq i64 %33, 0
%35 = zext i1 %34 to i32
%36 = tail call i32 @assert(i32 %35)
%37 = tail call i64 @ic_symbol_equal_char(%struct.ic_symbol* null, i32 0)
%38 = icmp eq i64 %37, 0
%39 = zext i1 %38 to i32
%40 = tail call i32 @assert(i32 %39)
%41 = tail call i64 @ic_symbol_equal_char(%struct.ic_symbol* null, i32 0)
%42 = icmp eq i64 %41, 0
%43 = zext i1 %42 to i32
%44 = tail call i32 @assert(i32 %43)
%45 = load i32, i32* @stdout
%46 = tail call i32 @ic_symbol_print(i32 %45, i32 0)
ret void
}