#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*/ PrecomputeValuesN5f(int);
void initMfe(int seqlength) {
  extern long int maxGapIndex;
  static int oldSeqlength = -1;
  if (oldSeqlength != seqlength) {
    maxGapIndex =
        seqlength * (seqlength - 1) * (seqlength - 2) * (seqlength - 3) / 24;
    PrecomputeValuesN5f(seqlength);
  }
  oldSeqlength = seqlength;
}


x86 assembly (clang, -O0):
<initMfe>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2f07(%rip),%eax
cmp    -0x4(%rbp),%eax
je     1165 <initMfe+0x55>
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
imul   %ecx,%eax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
imul   %ecx,%eax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
imul   %ecx,%eax
mov    $0x18,%ecx
cltd
idiv   %ecx
movslq %eax,%rcx
mov    0x2e7e(%rip),%rax
mov    %rcx,(%rax)
mov    -0x4(%rbp),%edi
call   1030 <PrecomputeValuesN5f@plt>
mov    -0x4(%rbp),%eax
mov    %eax,0x2eba(%rip)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<initMfe>:
push   %rbx
mov    %edi,%ebx
cmp    %edi,0x2f0f(%rip)
je     1157 <initMfe+0x47>
lea    -0x1(%rbx),%eax
imul   %ebx,%eax
lea    -0x2(%rbx),%ecx
lea    -0x3(%rbx),%edx
imul   %ecx,%edx
imul   %eax,%edx
movslq %edx,%rax
imul   $0x2aaaaaab,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rax
add    %ecx,%eax
cltq
mov    0x2e8b(%rip),%rcx
mov    %rax,(%rcx)
mov    %ebx,%edi
call   1030 <PrecomputeValuesN5f@plt>
mov    %ebx,0x2ecb(%rip)
pop    %rbx
ret

LLVM IR (-O0):
@initMfe.oldSeqlength = internal global i32 -1
@maxGapIndex = external global i64
define void @initMfe(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @initMfe.oldSeqlength
%4 = load i32, i32* %2
%5 = icmp ne i32 %3, %4
br i1 %5, label %6, label %21
6: ; preds = %1
%7 = load i32, i32* %2
%8 = load i32, i32* %2
%9 = sub nsw i32 %8, 1
%10 = mul nsw i32 %7, %9
%11 = load i32, i32* %2
%12 = sub nsw i32 %11, 2
%13 = mul nsw i32 %10, %12
%14 = load i32, i32* %2
%15 = sub nsw i32 %14, 3
%16 = mul nsw i32 %13, %15
%17 = sdiv i32 %16, 24
%18 = sext i32 %17 to i64
store i64 %18, i64* @maxGapIndex
%19 = load i32, i32* %2
%20 = call i32 @PrecomputeValuesN5f(i32 %19)
br label %21
21: ; preds = %6, %1
%22 = load i32, i32* %2
store i32 %22, i32* @initMfe.oldSeqlength
ret void
}

LLVM IR (-O2):
@initMfe.oldSeqlength = internal unnamed_addr global i32 -1
@maxGapIndex = external global i64
define void @initMfe(i32 %0) {
%2 = load i32, i32* @initMfe.oldSeqlength
%3 = icmp eq i32 %2, %0
br i1 %3, label %14, label %4
4: ; preds = %1
%5 = add nsw i32 %0, -1
%6 = mul nsw i32 %5, %0
%7 = add nsw i32 %0, -2
%8 = mul nsw i32 %6, %7
%9 = add nsw i32 %0, -3
%10 = mul nsw i32 %8, %9
%11 = sdiv i32 %10, 24
%12 = sext i32 %11 to i64
store i64 %12, i64* @maxGapIndex
%13 = tail call i32 @PrecomputeValuesN5f(i32 %0)
br label %14
14: ; preds = %4, %1
store i32 %0, i32* @initMfe.oldSeqlength
ret void
}