void trist_tetra(e, i, j, k, o) int e;
int *i, *j, *k, *o;
{
  trist_triangle(e, i, j, k);
  *o = (((trist_hull_facet(e) == 0)) ? (trist_dest(trist_enext(trist_fnext(e))))
                                     : (0));
}


x86 assembly (clang, -O0):
<trist_tetra>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x0,%al
call   1050 <trist_triangle@plt>
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1030 <trist_hull_facet@plt>
cmp    $0x0,%eax
jne    11b8 <trist_tetra+0x68>
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1060 <trist_fnext@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1040 <trist_enext@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1070 <trist_dest@plt>
mov    %eax,-0x2c(%rbp)
jmp    11c2 <trist_tetra+0x72>
xor    %eax,%eax
mov    %eax,-0x2c(%rbp)
jmp    11c2 <trist_tetra+0x72>
mov    -0x2c(%rbp),%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<trist_tetra>:
push   %rbp
push   %r14
push   %rbx
mov    %r8,%r14
mov    %edi,%ebp
xor    %ebx,%ebx
xor    %eax,%eax
call   1050 <trist_triangle@plt>
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <trist_hull_facet@plt>
test   %eax,%eax
jne    118c <trist_tetra+0x3c>
mov    %ebp,%edi
xor    %eax,%eax
call   1060 <trist_fnext@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1040 <trist_enext@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1070 <trist_dest@plt>
mov    %eax,%ebx
mov    %ebx,(%r14)
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @trist_tetra(i32 %0, i32* %1, i32* %2, i32* %3, i32* %4) {
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
store i32 %0, i32* %6
store i32* %1, i32** %7
store i32* %2, i32** %8
store i32* %3, i32** %9
store i32* %4, i32** %10
%11 = load i32, i32* %6
%12 = load i32*, i32** %7
%13 = load i32*, i32** %8
%14 = load i32*, i32** %9
%15 = call i32 (i32, i32*, i32*, i32*, ...) bitcast (i32 (...)* @trist_triangle to i32 (i32, i32*, i32*, i32*, ...)*)(i32 %11, i32* %12, i32* %13, i32* %14)
%16 = load i32, i32* %6
%17 = call i32 (i32, ...) bitcast (i32 (...)* @trist_hull_facet to i32 (i32, ...)*)(i32 %16)
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %24
19: ; preds = %5
%20 = load i32, i32* %6
%21 = call i32 (i32, ...) bitcast (i32 (...)* @trist_fnext to i32 (i32, ...)*)(i32 %20)
%22 = call i32 (i32, ...) bitcast (i32 (...)* @trist_enext to i32 (i32, ...)*)(i32 %21)
%23 = call i32 (i32, ...) bitcast (i32 (...)* @trist_dest to i32 (i32, ...)*)(i32 %22)
br label %25
24: ; preds = %5
br label %25
25: ; preds = %24, %19
%26 = phi i32 [ %23, %19 ], [ 0, %24 ]
%27 = load i32*, i32** %10
store i32 %26, i32* %27
ret void
}

LLVM IR (-O2):
define void @trist_tetra(i32 %0, i32* %1, i32* %2, i32* %3, i32* nocapture writeonly %4) {
%6 = tail call i32 (i32, i32*, i32*, i32*, ...) bitcast (i32 (...)* @trist_triangle to i32 (i32, i32*, i32*, i32*, ...)*)(i32 %0, i32* %1, i32* %2, i32* %3)
%7 = tail call i32 (i32, ...) bitcast (i32 (...)* @trist_hull_facet to i32 (i32, ...)*)(i32 %0)
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %5
%10 = tail call i32 (i32, ...) bitcast (i32 (...)* @trist_fnext to i32 (i32, ...)*)(i32 %0)
%11 = tail call i32 (i32, ...) bitcast (i32 (...)* @trist_enext to i32 (i32, ...)*)(i32 %10)
%12 = tail call i32 (i32, ...) bitcast (i32 (...)* @trist_dest to i32 (i32, ...)*)(i32 %11)
br label %13
13: ; preds = %5, %9
%14 = phi i32 [ %12, %9 ], [ 0, %5 ]
store i32 %14, i32* %4
ret void
}