#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__ nam_add_edge(int /*<<< orphan*/, int /*<<< orphan*/,
                        int /*<<< orphan*/);
scalar_t__ nam_destroy(int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ nam_init(int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ nam_remove_edge(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/);
scalar_t__ nam_resize(int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ nam_size(int /*<<< orphan*/);
scalar_t__ nam_test_edge(int /*<<< orphan*/, int /*<<< orphan*/,
                         int /*<<< orphan*/);
int /*<<< orphan*/ puts(char *);
void null(void) {
  puts("\ntesting calling functions with null (warnings will be printed)");
  assert(0 == nam_init(0, 0));
  assert(0 == nam_destroy(0, 0));
  assert(0 == nam_resize(0, 0));
  assert(0 == nam_size(0));
  assert(0 == nam_add_edge(0, 0, 0));
  assert(0 == nam_remove_edge(0, 0, 0));
  assert(0 == nam_test_edge(0, 0, 0));
  puts("success!");
}


x86 assembly (clang, -O0):
<null>:
push   %rbp
mov    %rsp,%rbp
lea    0xe65(%rip),%rdi
call   1060 <puts@plt>
xor    %esi,%esi
mov    %esi,%edi
call   10a0 <nam_init@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1070 <nam_destroy@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1050 <nam_resize@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
xor    %edi,%edi
call   1040 <nam_size@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
xor    %edx,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1080 <nam_add_edge@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
xor    %edx,%edx
mov    %edx,%edi
mov    %edx,%esi
call   10b0 <nam_remove_edge@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
xor    %edx,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1030 <nam_test_edge@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
lea    0xdc3(%rip),%rdi
call   1060 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<null>:
push   %rax
lea    0xe68(%rip),%rdi
call   1060 <puts@plt>
xor    %edi,%edi
xor    %esi,%esi
call   10a0 <nam_init@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1070 <nam_destroy@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1050 <nam_resize@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
xor    %edi,%edi
call   1040 <nam_size@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1080 <nam_add_edge@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
call   10b0 <nam_remove_edge@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1030 <nam_test_edge@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
lea    0xdf7(%rip),%rdi
pop    %rax
jmp    1060 <puts@plt>

LLVM IR (-O0):
@.str = [64 x i8] c"\0Atesting calling functions with null (warnings will be printed)\00"
@.str.1 = [9 x i8] c"success!\00"
define void @null() {
%1 = call i32 @puts(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0))
%2 = call i64 @nam_init(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 @nam_destroy(i32 0, i32 0)
%7 = icmp eq i64 0, %6
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 %8)
%10 = call i64 @nam_resize(i32 0, i32 0)
%11 = icmp eq i64 0, %10
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 %12)
%14 = call i64 @nam_size(i32 0)
%15 = icmp eq i64 0, %14
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 %16)
%18 = call i64 @nam_add_edge(i32 0, 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 @nam_remove_edge(i32 0, i32 0, i32 0)
%23 = icmp eq i64 0, %22
%24 = zext i1 %23 to i32
%25 = call i32 @assert(i32 %24)
%26 = call i64 @nam_test_edge(i32 0, i32 0, i32 0)
%27 = icmp eq i64 0, %26
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 %28)
%30 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [64 x i8] c"\0Atesting calling functions with null (warnings will be printed)\00"
@.str.1 = [9 x i8] c"success!\00"
define void @null() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0))
%2 = tail call i64 @nam_init(i32 0, i32 0)
%3 = icmp eq i64 %2, 0
%4 = zext i1 %3 to i32
%5 = tail call i32 @assert(i32 %4)
%6 = tail call i64 @nam_destroy(i32 0, i32 0)
%7 = icmp eq i64 %6, 0
%8 = zext i1 %7 to i32
%9 = tail call i32 @assert(i32 %8)
%10 = tail call i64 @nam_resize(i32 0, i32 0)
%11 = icmp eq i64 %10, 0
%12 = zext i1 %11 to i32
%13 = tail call i32 @assert(i32 %12)
%14 = tail call i64 @nam_size(i32 0)
%15 = icmp eq i64 %14, 0
%16 = zext i1 %15 to i32
%17 = tail call i32 @assert(i32 %16)
%18 = tail call i64 @nam_add_edge(i32 0, i32 0, i32 0)
%19 = icmp eq i64 %18, 0
%20 = zext i1 %19 to i32
%21 = tail call i32 @assert(i32 %20)
%22 = tail call i64 @nam_remove_edge(i32 0, i32 0, i32 0)
%23 = icmp eq i64 %22, 0
%24 = zext i1 %23 to i32
%25 = tail call i32 @assert(i32 %24)
%26 = tail call i64 @nam_test_edge(i32 0, i32 0, i32 0)
%27 = icmp eq i64 %26, 0
%28 = zext i1 %27 to i32
%29 = tail call i32 @assert(i32 %28)
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
ret void
}