int DistInitVertexList(Schema, A, D)
struct frvStruct *Schema;
struct Vertex **A;
struct Mark *D;
{
  if (AccessMarkVertexListFirst(D) == 0)
    return (0);
  else
    (*A) = AccessMarkVertexListFirst(D);
  return (1);
}


x86 assembly (clang, -O0):
<DistInitVertexList>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    $0x0,%al
call   1030 <AccessMarkVertexListFirst@plt>
cmp    $0x0,%eax
jne    1144 <DistInitVertexList+0x34>
movl   $0x0,-0x4(%rbp)
jmp    1160 <DistInitVertexList+0x50>
mov    -0x20(%rbp),%rdi
mov    $0x0,%al
call   1030 <AccessMarkVertexListFirst@plt>
movslq %eax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DistInitVertexList>:
push   %rbp
push   %r14
push   %rbx
mov    %rdx,%rbx
mov    %rsi,%r14
xor    %ebp,%ebp
mov    %rdx,%rdi
xor    %eax,%eax
call   1030 <AccessMarkVertexListFirst@plt>
test   %eax,%eax
je     113e <DistInitVertexList+0x2e>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <AccessMarkVertexListFirst@plt>
cltq
mov    %rax,(%r14)
mov    $0x1,%ebp
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
%struct.frvStruct = type opaque
%struct.Vertex = type opaque
%struct.Mark = type opaque
define i32 @DistInitVertexList(%struct.frvStruct* %0, %struct.Vertex** %1, %struct.Mark* %2) {
%4 = alloca i32
%5 = alloca %struct.frvStruct*
%6 = alloca %struct.Vertex**
%7 = alloca %struct.Mark*
store %struct.frvStruct* %0, %struct.frvStruct** %5
store %struct.Vertex** %1, %struct.Vertex*** %6
store %struct.Mark* %2, %struct.Mark** %7
%8 = load %struct.Mark*, %struct.Mark** %7
%9 = call i32 (%struct.Mark*, ...) bitcast (i32 (...)* @AccessMarkVertexListFirst to i32 (%struct.Mark*, ...)*)(%struct.Mark* %8)
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %3
store i32 0, i32* %4
br label %19
12: ; preds = %3
%13 = load %struct.Mark*, %struct.Mark** %7
%14 = call i32 (%struct.Mark*, ...) bitcast (i32 (...)* @AccessMarkVertexListFirst to i32 (%struct.Mark*, ...)*)(%struct.Mark* %13)
%15 = sext i32 %14 to i64
%16 = inttoptr i64 %15 to %struct.Vertex*
%17 = load %struct.Vertex**, %struct.Vertex*** %6
store %struct.Vertex* %16, %struct.Vertex** %17
br label %18
18: ; preds = %12
store i32 1, i32* %4
br label %19
19: ; preds = %18, %11
%20 = load i32, i32* %4
ret i32 %20
}

LLVM IR (-O2):
%struct.frvStruct = type opaque
%struct.Vertex = type opaque
%struct.Mark = type opaque
define i32 @DistInitVertexList(%struct.frvStruct* nocapture readnone %0, %struct.Vertex** nocapture writeonly %1, %struct.Mark* %2) {
%4 = tail call i32 (%struct.Mark*, ...) bitcast (i32 (...)* @AccessMarkVertexListFirst to i32 (%struct.Mark*, ...)*)(%struct.Mark* %2)
%5 = icmp eq i32 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %3
%7 = tail call i32 (%struct.Mark*, ...) bitcast (i32 (...)* @AccessMarkVertexListFirst to i32 (%struct.Mark*, ...)*)(%struct.Mark* %2)
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to %struct.Vertex*
store %struct.Vertex* %9, %struct.Vertex** %1
br label %10
10: ; preds = %3, %6
%11 = phi i32 [ 1, %6 ], [ 0, %3 ]
ret i32 %11
}