int DistNextArcList(Schema, A, D)
struct frvStruct *Schema;
struct Arc **A;
struct Vertex *D;
{
  (*A) = AccessArcArcListNext(*A);
  if ((*A) != 0 && AccessArcFromVertex(*A) == D)
    return (1);
  return (0);
}


x86 assembly (clang, -O0):
<DistNextArcList>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
mov    $0x0,%al
call   1030 <AccessArcArcListNext@plt>
movslq %eax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rax
cmpq   $0x0,(%rax)
je     1180 <DistNextArcList+0x60>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
mov    $0x0,%al
call   1040 <AccessArcFromVertex@plt>
cltq
cmp    -0x20(%rbp),%rax
jne    1180 <DistNextArcList+0x60>
movl   $0x1,-0x4(%rbp)
jmp    1187 <DistNextArcList+0x67>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DistNextArcList>:
push   %rbp
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%rbx
mov    (%rsi),%rdi
xor    %ebp,%ebp
xor    %eax,%eax
call   1030 <AccessArcArcListNext@plt>
movslq %eax,%rdi
mov    %rdi,(%rbx)
test   %edi,%edi
je     1153 <DistNextArcList+0x33>
xor    %eax,%eax
call   1040 <AccessArcFromVertex@plt>
cltq
cmp    %r14,%rax
jne    1153 <DistNextArcList+0x33>
mov    $0x1,%ebp
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
%struct.frvStruct = type opaque
%struct.Arc = type opaque
%struct.Vertex = type opaque
define i32 @DistNextArcList(%struct.frvStruct* %0, %struct.Arc** %1, %struct.Vertex* %2) {
%4 = alloca i32
%5 = alloca %struct.frvStruct*
%6 = alloca %struct.Arc**
%7 = alloca %struct.Vertex*
store %struct.frvStruct* %0, %struct.frvStruct** %5
store %struct.Arc** %1, %struct.Arc*** %6
store %struct.Vertex* %2, %struct.Vertex** %7
%8 = load %struct.Arc**, %struct.Arc*** %6
%9 = load %struct.Arc*, %struct.Arc** %8
%10 = call i32 (%struct.Arc*, ...) bitcast (i32 (...)* @AccessArcArcListNext to i32 (%struct.Arc*, ...)*)(%struct.Arc* %9)
%11 = sext i32 %10 to i64
%12 = inttoptr i64 %11 to %struct.Arc*
%13 = load %struct.Arc**, %struct.Arc*** %6
store %struct.Arc* %12, %struct.Arc** %13
%14 = load %struct.Arc**, %struct.Arc*** %6
%15 = load %struct.Arc*, %struct.Arc** %14
%16 = icmp ne %struct.Arc* %15, null
br i1 %16, label %17, label %26
17: ; preds = %3
%18 = load %struct.Arc**, %struct.Arc*** %6
%19 = load %struct.Arc*, %struct.Arc** %18
%20 = call i32 (%struct.Arc*, ...) bitcast (i32 (...)* @AccessArcFromVertex to i32 (%struct.Arc*, ...)*)(%struct.Arc* %19)
%21 = sext i32 %20 to i64
%22 = inttoptr i64 %21 to %struct.Vertex*
%23 = load %struct.Vertex*, %struct.Vertex** %7
%24 = icmp eq %struct.Vertex* %22, %23
br i1 %24, label %25, label %26
25: ; preds = %17
store i32 1, i32* %4
br label %27
26: ; preds = %17, %3
store i32 0, i32* %4
br label %27
27: ; preds = %26, %25
%28 = load i32, i32* %4
ret i32 %28
}

LLVM IR (-O2):
%struct.frvStruct = type opaque
%struct.Arc = type opaque
%struct.Vertex = type opaque
define i32 @DistNextArcList(%struct.frvStruct* nocapture readnone %0, %struct.Arc** nocapture %1, %struct.Vertex* readnone %2) {
%4 = load %struct.Arc*, %struct.Arc** %1
%5 = tail call i32 (%struct.Arc*, ...) bitcast (i32 (...)* @AccessArcArcListNext to i32 (%struct.Arc*, ...)*)(%struct.Arc* %4)
%6 = sext i32 %5 to i64
%7 = inttoptr i64 %6 to %struct.Arc*
store %struct.Arc* %7, %struct.Arc** %1
%8 = icmp eq i32 %5, 0
br i1 %8, label %14, label %9
9: ; preds = %3
%10 = tail call i32 (%struct.Arc*, ...) bitcast (i32 (...)* @AccessArcFromVertex to i32 (%struct.Arc*, ...)*)(%struct.Arc* %7)
%11 = sext i32 %10 to i64
%12 = inttoptr i64 %11 to %struct.Vertex*
%13 = icmp eq %struct.Vertex* %12, %2
br i1 %13, label %15, label %14
14: ; preds = %9, %3
br label %15
15: ; preds = %9, %14
%16 = phi i32 [ 0, %14 ], [ 1, %9 ]
ret i32 %16
}