int trist_tetra_min_ef(e)
int e;
{
  int x, a, b, c, d, min_ef;
  a = x = e;
  b = trist_sym(trist_fnext(x));
  c = trist_sym(trist_fnext(x = trist_enext(x)));
  d = trist_sym(trist_fnext(x = trist_enext(x)));
  x = (((((((((a) < (b)) ? (a) : (b))) < (c)) ? ((((a) < (b)) ? (a) : (b)))
                                              : (c))) < (d))
           ? (((((((a) < (b)) ? (a) : (b))) < (c)) ? ((((a) < (b)) ? (a) : (b)))
                                                   : (c)))
           : (d));
  min_ef = (((((x) >> 3)) << 3) + (((((x) % 2 == 1)) ? (1) : (0))));
  ;
  return (min_ef);
}


x86 assembly (clang, -O0):
<trist_tetra_min_ef>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1050 <trist_fnext@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1040 <trist_sym@plt>
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1030 <trist_enext@plt>
mov    %eax,%edi
mov    %edi,-0x8(%rbp)
mov    $0x0,%al
call   1050 <trist_fnext@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1040 <trist_sym@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1030 <trist_enext@plt>
mov    %eax,%edi
mov    %edi,-0x8(%rbp)
mov    $0x0,%al
call   1050 <trist_fnext@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1040 <trist_sym@plt>
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    11b5 <trist_tetra_min_ef+0x85>
mov    -0xc(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    11bb <trist_tetra_min_ef+0x8b>
mov    -0x10(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11ef <trist_tetra_min_ef+0xbf>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    11de <trist_tetra_min_ef+0xae>
mov    -0xc(%rbp),%eax
mov    %eax,-0x24(%rbp)
jmp    11e4 <trist_tetra_min_ef+0xb4>
mov    -0x10(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x28(%rbp)
jmp    11f5 <trist_tetra_min_ef+0xc5>
mov    -0x14(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1263 <trist_tetra_min_ef+0x133>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1218 <trist_tetra_min_ef+0xe8>
mov    -0xc(%rbp),%eax
mov    %eax,-0x2c(%rbp)
jmp    121e <trist_tetra_min_ef+0xee>
mov    -0x10(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1252 <trist_tetra_min_ef+0x122>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1241 <trist_tetra_min_ef+0x111>
mov    -0xc(%rbp),%eax
mov    %eax,-0x30(%rbp)
jmp    1247 <trist_tetra_min_ef+0x117>
mov    -0x10(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x34(%rbp)
jmp    1258 <trist_tetra_min_ef+0x128>
mov    -0x14(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x38(%rbp)
jmp    1269 <trist_tetra_min_ef+0x139>
mov    -0x18(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
sar    $0x3,%eax
shl    $0x3,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x3c(%rbp),%eax
mov    %edx,%esi
xor    %ecx,%ecx
mov    $0x1,%edx
cmp    $0x1,%esi
cmove  %edx,%ecx
add    %ecx,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<trist_tetra_min_ef>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edi,%r14d
xor    %eax,%eax
call   1050 <trist_fnext@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1040 <trist_sym@plt>
mov    %eax,%ebx
mov    %r14d,%edi
xor    %eax,%eax
call   1030 <trist_enext@plt>
mov    %eax,%ebp
mov    %eax,%edi
xor    %eax,%eax
call   1050 <trist_fnext@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1040 <trist_sym@plt>
mov    %eax,%r15d
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <trist_enext@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1050 <trist_fnext@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1040 <trist_sym@plt>
cmp    %r14d,%ebx
cmovg  %r14d,%ebx
cmp    %r15d,%ebx
cmovge %r15d,%ebx
cmp    %eax,%ebx
cmovge %eax,%ebx
mov    %ebx,%ecx
and    $0xfffffff8,%ecx
mov    %ebx,%eax
shr    $0x1f,%eax
add    %ebx,%eax
and    $0xfffffffe,%eax
sub    %eax,%ebx
xor    %eax,%eax
cmp    $0x1,%ebx
sete   %al
or     %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @trist_tetra_min_ef(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %2
%9 = load i32, i32* %2
store i32 %9, i32* %3
store i32 %9, i32* %4
%10 = load i32, i32* %3
%11 = call i32 (i32, ...) bitcast (i32 (...)* @trist_fnext to i32 (i32, ...)*)(i32 %10)
%12 = call i32 (i32, ...) bitcast (i32 (...)* @trist_sym to i32 (i32, ...)*)(i32 %11)
store i32 %12, i32* %5
%13 = load i32, i32* %3
%14 = call i32 (i32, ...) bitcast (i32 (...)* @trist_enext to i32 (i32, ...)*)(i32 %13)
store i32 %14, i32* %3
%15 = call i32 (i32, ...) bitcast (i32 (...)* @trist_fnext to i32 (i32, ...)*)(i32 %14)
%16 = call i32 (i32, ...) bitcast (i32 (...)* @trist_sym to i32 (i32, ...)*)(i32 %15)
store i32 %16, i32* %6
%17 = load i32, i32* %3
%18 = call i32 (i32, ...) bitcast (i32 (...)* @trist_enext to i32 (i32, ...)*)(i32 %17)
store i32 %18, i32* %3
%19 = call i32 (i32, ...) bitcast (i32 (...)* @trist_fnext to i32 (i32, ...)*)(i32 %18)
%20 = call i32 (i32, ...) bitcast (i32 (...)* @trist_sym to i32 (i32, ...)*)(i32 %19)
store i32 %20, i32* %7
%21 = load i32, i32* %4
%22 = load i32, i32* %5
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %26
24: ; preds = %1
%25 = load i32, i32* %4
br label %28
26: ; preds = %1
%27 = load i32, i32* %5
br label %28
28: ; preds = %26, %24
%29 = phi i32 [ %25, %24 ], [ %27, %26 ]
%30 = load i32, i32* %6
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %42
32: ; preds = %28
%33 = load i32, i32* %4
%34 = load i32, i32* %5
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = load i32, i32* %4
br label %40
38: ; preds = %32
%39 = load i32, i32* %5
br label %40
40: ; preds = %38, %36
%41 = phi i32 [ %37, %36 ], [ %39, %38 ]
br label %44
42: ; preds = %28
%43 = load i32, i32* %6
br label %44
44: ; preds = %42, %40
%45 = phi i32 [ %41, %40 ], [ %43, %42 ]
%46 = load i32, i32* %7
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %74
48: ; preds = %44
%49 = load i32, i32* %4
%50 = load i32, i32* %5
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %54
52: ; preds = %48
%53 = load i32, i32* %4
br label %56
54: ; preds = %48
%55 = load i32, i32* %5
br label %56
56: ; preds = %54, %52
%57 = phi i32 [ %53, %52 ], [ %55, %54 ]
%58 = load i32, i32* %6
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %70
60: ; preds = %56
%61 = load i32, i32* %4
%62 = load i32, i32* %5
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %66
64: ; preds = %60
%65 = load i32, i32* %4
br label %68
66: ; preds = %60
%67 = load i32, i32* %5
br label %68
68: ; preds = %66, %64
%69 = phi i32 [ %65, %64 ], [ %67, %66 ]
br label %72
70: ; preds = %56
%71 = load i32, i32* %6
br label %72
72: ; preds = %70, %68
%73 = phi i32 [ %69, %68 ], [ %71, %70 ]
br label %76
74: ; preds = %44
%75 = load i32, i32* %7
br label %76
76: ; preds = %74, %72
%77 = phi i32 [ %73, %72 ], [ %75, %74 ]
store i32 %77, i32* %3
%78 = load i32, i32* %3
%79 = ashr i32 %78, 3
%80 = shl i32 %79, 3
%81 = load i32, i32* %3
%82 = srem i32 %81, 2
%83 = icmp eq i32 %82, 1
%84 = zext i1 %83 to i64
%85 = select i1 %83, i32 1, i32 0
%86 = add nsw i32 %80, %85
store i32 %86, i32* %8
%87 = load i32, i32* %8
ret i32 %87
}

LLVM IR (-O2):
define i32 @trist_tetra_min_ef(i32 %0) {
%2 = tail call i32 (i32, ...) bitcast (i32 (...)* @trist_fnext to i32 (i32, ...)*)(i32 %0)
%3 = tail call i32 (i32, ...) bitcast (i32 (...)* @trist_sym to i32 (i32, ...)*)(i32 %2)
%4 = tail call i32 (i32, ...) bitcast (i32 (...)* @trist_enext to i32 (i32, ...)*)(i32 %0)
%5 = tail call i32 (i32, ...) bitcast (i32 (...)* @trist_fnext to i32 (i32, ...)*)(i32 %4)
%6 = tail call i32 (i32, ...) bitcast (i32 (...)* @trist_sym to i32 (i32, ...)*)(i32 %5)
%7 = tail call i32 (i32, ...) bitcast (i32 (...)* @trist_enext to i32 (i32, ...)*)(i32 %4)
%8 = tail call i32 (i32, ...) bitcast (i32 (...)* @trist_fnext to i32 (i32, ...)*)(i32 %7)
%9 = tail call i32 (i32, ...) bitcast (i32 (...)* @trist_sym to i32 (i32, ...)*)(i32 %8)
%10 = icmp sgt i32 %3, %0
%11 = select i1 %10, i32 %0, i32 %3
%12 = icmp slt i32 %11, %6
%13 = select i1 %12, i32 %11, i32 %6
%14 = icmp slt i32 %13, %9
%15 = select i1 %14, i32 %13, i32 %9
%16 = and i32 %15, -8
%17 = srem i32 %15, 2
%18 = icmp eq i32 %17, 1
%19 = zext i1 %18 to i32
%20 = or i32 %16, %19
ret i32 %20
}