#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*/ remove(char *);
void mp_mul(int n, int radix, int in1[], int in2[], int out[], int tmp[],
            int nfft, double tmpfft[]) {
  void f_swap_in(int bytesize, char *f_name, char *in);
  void f_swap_out(int bytesize, char *f_name, char *out);
  void mp_copy(int n, int radix, int in[], int out[]);
  void mp_add(int n, int radix, int in1[], int in2[], int out[]);
  void rdft(int n, int isgn, double *a);
  void mp_mul_i2d(int n, int radix, int nfft, int shift, int in[],
                  double dout[]);
  void mp_mul_f_cmul(int nfft, char *f_name_in, double dinout[]);
  void mp_mul_f_cmul_swap(int nfft, char *f_name_inout, double dinout[]);
  void mp_mul_d2i(int n, int radix, int nfft, double din[], int out[]);
  int n_h, shift1, shift2;
  char *f_name_tmp1fft = "tmp1fft.swp";
  char *f_name_tmp1 = "tmp1var.swp";
  short int *in1dgt, *in2dgt;
  in1dgt = (short int *)&in1[2];
  in2dgt = (short int *)&in2[2];
  shift1 = (nfft >> 1) + 1;
  shift2 = shift1;
  while (n > shift1) {
    if (in1dgt[shift1] != 0) {
      break;
    }
    shift1++;
  }
  while (n > shift2) {
    if (in2dgt[shift2] != 0) {
      break;
    }
    shift2++;
  }
  n_h = n / 2 + 1;
  if (n_h < n - shift1) {
    n_h = n - shift1;
  }
  if (n_h < n - shift2) {
    n_h = n - shift2;
  }
  mp_mul_i2d(n, radix, nfft, 0, in1, tmpfft);
  rdft(nfft, 1, &tmpfft[1]);
  f_swap_out((nfft + 2) * sizeof(double), f_name_tmp1fft, (char *)tmpfft);
  mp_mul_i2d(n, radix, nfft, shift2, in2, tmpfft);
  rdft(nfft, 1, &tmpfft[1]);
  mp_mul_f_cmul(nfft, f_name_tmp1fft, tmpfft);
  rdft(nfft, -1, &tmpfft[1]);
  mp_mul_d2i(n_h, radix, nfft, tmpfft, tmp);
  f_swap_out(2 * sizeof(int) + n_h * sizeof(short int), f_name_tmp1,
             (char *)tmp);
  mp_mul_i2d(n, radix, nfft, 0, in2, tmpfft);
  rdft(nfft, 1, &tmpfft[1]);
  mp_mul_f_cmul_swap(nfft, f_name_tmp1fft, tmpfft);
  rdft(nfft, -1, &tmpfft[1]);
  mp_mul_d2i(n, radix, nfft, tmpfft, tmp);
  mp_mul_i2d(n, radix, nfft, shift1, in1, tmpfft);
  rdft(nfft, 1, &tmpfft[1]);
  mp_mul_f_cmul(nfft, f_name_tmp1fft, tmpfft);
  rdft(nfft, -1, &tmpfft[1]);
  mp_mul_d2i(n_h, radix, nfft, tmpfft, out);
  if (out[0] != 0) {
    mp_add(n, radix, out, tmp, out);
  } else {
    mp_copy(n, radix, tmp, out);
  }
  f_swap_in(2 * sizeof(int) + n_h * sizeof(short int), f_name_tmp1,
            (char *)tmp);
  if (tmp[0] != 0) {
    mp_add(n, radix, out, tmp, out);
  }
  remove(f_name_tmp1fft);
  remove(f_name_tmp1);
}


x86 assembly (clang, -O0):
<mp_mul>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
lea    0xe34(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xe35(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x50(%rbp)
mov    -0x18(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x58(%rbp)
mov    0x10(%rbp),%eax
sar    $0x1,%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x30(%rbp),%eax
jle    1239 <mp_mul+0x99>
mov    -0x50(%rbp),%rax
movslq -0x30(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
cmp    $0x0,%eax
je     122b <mp_mul+0x8b>
jmp    1239 <mp_mul+0x99>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1205 <mp_mul+0x65>
jmp    123e <mp_mul+0x9e>
mov    -0x4(%rbp),%eax
cmp    -0x34(%rbp),%eax
jle    1272 <mp_mul+0xd2>
mov    -0x58(%rbp),%rax
movslq -0x34(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
cmp    $0x0,%eax
je     1264 <mp_mul+0xc4>
jmp    1272 <mp_mul+0xd2>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    123e <mp_mul+0x9e>
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    -0x30(%rbp),%ecx
cmp    %ecx,%eax
jge    129d <mp_mul+0xfd>
mov    -0x4(%rbp),%eax
sub    -0x30(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    -0x34(%rbp),%ecx
cmp    %ecx,%eax
jge    12b7 <mp_mul+0x117>
mov    -0x4(%rbp),%eax
sub    -0x34(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    0x10(%rbp),%edx
mov    -0x10(%rbp),%r8
mov    0x18(%rbp),%r9
xor    %ecx,%ecx
call   1040 <mp_mul_i2d@plt>
mov    0x10(%rbp),%edi
mov    0x18(%rbp),%rdx
add    $0x8,%rdx
mov    $0x1,%esi
call   1080 <rdft@plt>
mov    0x10(%rbp),%eax
add    $0x2,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
mov    -0x40(%rbp),%rsi
mov    0x18(%rbp),%rdx
call   1050 <f_swap_out@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    0x10(%rbp),%edx
mov    -0x34(%rbp),%ecx
mov    -0x18(%rbp),%r8
mov    0x18(%rbp),%r9
call   1040 <mp_mul_i2d@plt>
mov    0x10(%rbp),%edi
mov    0x18(%rbp),%rdx
add    $0x8,%rdx
mov    $0x1,%esi
call   1080 <rdft@plt>
mov    0x10(%rbp),%edi
mov    -0x40(%rbp),%rsi
mov    0x18(%rbp),%rdx
call   10c0 <mp_mul_f_cmul@plt>
mov    0x10(%rbp),%edi
mov    0x18(%rbp),%rdx
add    $0x8,%rdx
mov    $0xffffffff,%esi
call   1080 <rdft@plt>
mov    -0x2c(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    0x10(%rbp),%edx
mov    0x18(%rbp),%rcx
mov    -0x28(%rbp),%r8
call   10b0 <mp_mul_d2i@plt>
movslq -0x2c(%rbp),%rax
shl    $0x1,%rax
add    $0x8,%rax
mov    %eax,%edi
mov    -0x48(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1050 <f_swap_out@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    0x10(%rbp),%edx
mov    -0x18(%rbp),%r8
mov    0x18(%rbp),%r9
xor    %ecx,%ecx
call   1040 <mp_mul_i2d@plt>
mov    0x10(%rbp),%edi
mov    0x18(%rbp),%rdx
add    $0x8,%rdx
mov    $0x1,%esi
call   1080 <rdft@plt>
mov    0x10(%rbp),%edi
mov    -0x40(%rbp),%rsi
mov    0x18(%rbp),%rdx
call   1070 <mp_mul_f_cmul_swap@plt>
mov    0x10(%rbp),%edi
mov    0x18(%rbp),%rdx
add    $0x8,%rdx
mov    $0xffffffff,%esi
call   1080 <rdft@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    0x10(%rbp),%edx
mov    0x18(%rbp),%rcx
mov    -0x28(%rbp),%r8
call   10b0 <mp_mul_d2i@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    0x10(%rbp),%edx
mov    -0x30(%rbp),%ecx
mov    -0x10(%rbp),%r8
mov    0x18(%rbp),%r9
call   1040 <mp_mul_i2d@plt>
mov    0x10(%rbp),%edi
mov    0x18(%rbp),%rdx
add    $0x8,%rdx
mov    $0x1,%esi
call   1080 <rdft@plt>
mov    0x10(%rbp),%edi
mov    -0x40(%rbp),%rsi
mov    0x18(%rbp),%rdx
call   10c0 <mp_mul_f_cmul@plt>
mov    0x10(%rbp),%edi
mov    0x18(%rbp),%rdx
add    $0x8,%rdx
mov    $0xffffffff,%esi
call   1080 <rdft@plt>
mov    -0x2c(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    0x10(%rbp),%edx
mov    0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
call   10b0 <mp_mul_d2i@plt>
mov    -0x20(%rbp),%rax
cmpl   $0x0,(%rax)
je     147d <mp_mul+0x2dd>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x20(%rbp),%r8
call   1060 <mp_add@plt>
jmp    1490 <mp_mul+0x2f0>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x28(%rbp),%rdx
mov    -0x20(%rbp),%rcx
call   10a0 <mp_copy@plt>
movslq -0x2c(%rbp),%rax
shl    $0x1,%rax
add    $0x8,%rax
mov    %eax,%edi
mov    -0x48(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1090 <f_swap_in@plt>
mov    -0x28(%rbp),%rax
cmpl   $0x0,(%rax)
je     14cf <mp_mul+0x32f>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x20(%rbp),%r8
call   1060 <mp_add@plt>
mov    -0x40(%rbp),%rdi
call   1030 <remove@plt>
mov    -0x48(%rbp),%rdi
call   1030 <remove@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mp_mul>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rdx,%r10
mov    %esi,%r12d
mov    %edi,%r13d
mov    0x78(%rsp),%rbp
mov    0x70(%rsp),%r15d
mov    %r15d,%eax
sar    %eax
lea    0x1(%rax),%r14d
cmp    %edi,%r14d
mov    %r8,0x30(%rsp)
mov    %r9,0x28(%rsp)
mov    %rcx,0x10(%rsp)
jge    1238 <mp_mul+0x98>
movslq %eax,%rdx
lea    (%r10,%rdx,2),%rdx
add    $0xa,%rdx
mov    %r14d,%ebx
nopl   0x0(%rax)
cmpw   $0x0,(%rdx)
jne    1205 <mp_mul+0x65>
add    $0x1,%ebx
add    $0x2,%rdx
cmp    %ebx,%r13d
jne    11f0 <mp_mul+0x50>
mov    %r13d,%ebx
cmp    %r13d,%r14d
jge    123b <mp_mul+0x9b>
add    $0x1,%eax
movslq %eax,%rdx
lea    (%rcx,%rdx,2),%rdx
add    $0x8,%rdx
mov    %eax,%r14d
nopl   0x0(%rax,%rax,1)
cmpw   $0x0,(%rdx)
jne    123b <mp_mul+0x9b>
add    $0x1,%r14d
add    $0x2,%rdx
cmp    %r14d,%r13d
jne    1220 <mp_mul+0x80>
mov    %r13d,%r14d
jmp    123b <mp_mul+0x9b>
mov    %r14d,%ebx
mov    %r13d,%eax
shr    $0x1f,%eax
add    %r13d,%eax
sar    %eax
add    $0x1,%eax
mov    %r13d,%ecx
sub    %ebx,%ecx
cmp    %ecx,%eax
cmovge %eax,%ecx
mov    %r13d,%eax
sub    %r14d,%eax
cmp    %eax,%ecx
cmovge %ecx,%eax
mov    %rax,0x8(%rsp)
mov    %r13d,%edi
mov    %r12d,%esi
mov    %r15d,%edx
xor    %ecx,%ecx
mov    %r10,%r8
mov    %rbp,%r9
mov    %r10,0x20(%rsp)
call   1040 <mp_mul_i2d@plt>
mov    %r12d,(%rsp)
lea    0x8(%rbp),%r12
mov    %r15d,%edi
mov    $0x1,%esi
mov    %r12,%rdx
call   1080 <rdft@plt>
lea    0x10(,%r15,8),%edi
lea    0xd5b(%rip),%rsi
mov    %rbp,%rdx
call   1050 <f_swap_out@plt>
mov    %r13d,%edi
mov    (%rsp),%esi
mov    %r15d,%edx
mov    %r14d,%ecx
mov    0x10(%rsp),%r8
mov    %rbp,%r14
mov    %rbp,%r9
call   1040 <mp_mul_i2d@plt>
mov    %r15d,%edi
mov    $0x1,%esi
mov    %r12,0x18(%rsp)
mov    %r12,%rdx
call   1080 <rdft@plt>
mov    %r15d,%edi
lea    0xd18(%rip),%rsi
mov    %rbp,%rdx
call   10c0 <mp_mul_f_cmul@plt>
mov    %r15d,%edi
mov    $0xffffffff,%esi
mov    %r12,%rdx
call   1080 <rdft@plt>
mov    0x8(%rsp),%rbp
mov    %ebp,%edi
mov    (%rsp),%esi
mov    %r15d,%edx
mov    %r14,%rcx
mov    0x28(%rsp),%r12
mov    %r12,%r8
call   10b0 <mp_mul_d2i@plt>
lea    0x8(%rbp,%rbp,1),%edi
mov    %r12,%rbp
lea    0xce1(%rip),%rsi
mov    %edi,0x4(%rsp)
mov    %r12,%rdx
call   1050 <f_swap_out@plt>
mov    %r13d,%edi
mov    (%rsp),%esi
mov    %r15d,%edx
xor    %ecx,%ecx
mov    0x10(%rsp),%r8
mov    %r14,%r9
call   1040 <mp_mul_i2d@plt>
mov    %r15d,%edi
mov    $0x1,%esi
mov    0x18(%rsp),%r12
mov    %r12,%rdx
call   1080 <rdft@plt>
mov    %r15d,%edi
lea    0xc92(%rip),%rsi
mov    %r14,%rdx
call   1070 <mp_mul_f_cmul_swap@plt>
mov    %r15d,%edi
mov    $0xffffffff,%esi
mov    %r12,%rdx
call   1080 <rdft@plt>
mov    %r13d,%edi
mov    (%rsp),%esi
mov    %r15d,%edx
mov    %r14,%rcx
mov    %rbp,%r8
call   10b0 <mp_mul_d2i@plt>
mov    %r13d,%edi
mov    (%rsp),%esi
mov    %r15d,%edx
mov    %ebx,%ecx
mov    0x20(%rsp),%r8
mov    %r14,%r9
call   1040 <mp_mul_i2d@plt>
mov    %r15d,%edi
mov    $0x1,%esi
mov    %r12,%rdx
call   1080 <rdft@plt>
mov    %r15d,%edi
lea    0xc34(%rip),%rsi
mov    %r14,%rdx
call   10c0 <mp_mul_f_cmul@plt>
mov    %r15d,%edi
mov    $0xffffffff,%esi
mov    %r12,%rdx
mov    (%rsp),%r12d
call   1080 <rdft@plt>
mov    0x8(%rsp),%rdi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %r14,%rcx
mov    0x30(%rsp),%rbx
mov    %rbx,%r8
call   10b0 <mp_mul_d2i@plt>
cmpl   $0x0,(%rbx)
je     141e <mp_mul+0x27e>
mov    %r13d,%edi
mov    %r12d,%esi
mov    %rbx,%rdx
mov    %rbp,%rcx
mov    %rbx,%r8
call   1060 <mp_add@plt>
jmp    142f <mp_mul+0x28f>
mov    %r13d,%edi
mov    %r12d,%esi
mov    %rbp,%rdx
mov    %rbx,%rcx
call   10a0 <mp_copy@plt>
mov    0x4(%rsp),%edi
lea    0xbd2(%rip),%rsi
mov    %rbp,%rdx
call   1090 <f_swap_in@plt>
cmpl   $0x0,0x0(%rbp)
je     145c <mp_mul+0x2bc>
mov    %r13d,%edi
mov    %r12d,%esi
mov    %rbx,%rdx
mov    %rbp,%rcx
mov    %rbx,%r8
call   1060 <mp_add@plt>
lea    0xb9d(%rip),%rdi
call   1030 <remove@plt>
lea    0xb9d(%rip),%rdi
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <remove@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"tmp1fft.swp\00"
@.str.1 = [12 x i8] c"tmp1var.swp\00"
define void @mp_mul(i32 %0, i32 %1, i32* %2, i32* %3, i32* %4, i32* %5, i32 %6, double* %7) {
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32
%16 = alloca double*
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i8*
%21 = alloca i8*
%22 = alloca i16*
%23 = alloca i16*
store i32 %0, i32* %9
store i32 %1, i32* %10
store i32* %2, i32** %11
store i32* %3, i32** %12
store i32* %4, i32** %13
store i32* %5, i32** %14
store i32 %6, i32* %15
store double* %7, double** %16
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8** %20
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8** %21
%24 = load i32*, i32** %11
%25 = getelementptr inbounds i32, i32* %24, i64 2
%26 = bitcast i32* %25 to i16*
store i16* %26, i16** %22
%27 = load i32*, i32** %12
%28 = getelementptr inbounds i32, i32* %27, i64 2
%29 = bitcast i32* %28 to i16*
store i16* %29, i16** %23
%30 = load i32, i32* %15
%31 = ashr i32 %30, 1
%32 = add nsw i32 %31, 1
store i32 %32, i32* %18
%33 = load i32, i32* %18
store i32 %33, i32* %19
br label %34
34: ; preds = %47, %8
%35 = load i32, i32* %9
%36 = load i32, i32* %18
%37 = icmp sgt i32 %35, %36
br i1 %37, label %38, label %50
38: ; preds = %34
%39 = load i16*, i16** %22
%40 = load i32, i32* %18
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i16, i16* %39, i64 %41
%43 = load i16, i16* %42
%44 = sext i16 %43 to i32
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %38
br label %50
47: ; preds = %38
%48 = load i32, i32* %18
%49 = add nsw i32 %48, 1
store i32 %49, i32* %18
br label %34
50: ; preds = %46, %34
br label %51
51: ; preds = %64, %50
%52 = load i32, i32* %9
%53 = load i32, i32* %19
%54 = icmp sgt i32 %52, %53
br i1 %54, label %55, label %67
55: ; preds = %51
%56 = load i16*, i16** %23
%57 = load i32, i32* %19
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i16, i16* %56, i64 %58
%60 = load i16, i16* %59
%61 = sext i16 %60 to i32
%62 = icmp ne i32 %61, 0
br i1 %62, label %63, label %64
63: ; preds = %55
br label %67
64: ; preds = %55
%65 = load i32, i32* %19
%66 = add nsw i32 %65, 1
store i32 %66, i32* %19
br label %51
67: ; preds = %63, %51
%68 = load i32, i32* %9
%69 = sdiv i32 %68, 2
%70 = add nsw i32 %69, 1
store i32 %70, i32* %17
%71 = load i32, i32* %17
%72 = load i32, i32* %9
%73 = load i32, i32* %18
%74 = sub nsw i32 %72, %73
%75 = icmp slt i32 %71, %74
br i1 %75, label %76, label %80
76: ; preds = %67
%77 = load i32, i32* %9
%78 = load i32, i32* %18
%79 = sub nsw i32 %77, %78
store i32 %79, i32* %17
br label %80
80: ; preds = %76, %67
%81 = load i32, i32* %17
%82 = load i32, i32* %9
%83 = load i32, i32* %19
%84 = sub nsw i32 %82, %83
%85 = icmp slt i32 %81, %84
br i1 %85, label %86, label %90
86: ; preds = %80
%87 = load i32, i32* %9
%88 = load i32, i32* %19
%89 = sub nsw i32 %87, %88
store i32 %89, i32* %17
br label %90
90: ; preds = %86, %80
%91 = load i32, i32* %9
%92 = load i32, i32* %10
%93 = load i32, i32* %15
%94 = load i32*, i32** %11
%95 = load double*, double** %16
%96 = load i32, i32* %15
%97 = load double*, double** %16
%98 = getelementptr inbounds double, double* %97, i64 1
%99 = load i32, i32* %15
%100 = add nsw i32 %99, 2
%101 = sext i32 %100 to i64
%102 = mul i64 %101, 8
%103 = trunc i64 %102 to i32
%104 = load i8*, i8** %20
%105 = load double*, double** %16
%106 = bitcast double* %105 to i8*
%107 = load i32, i32* %9
%108 = load i32, i32* %10
%109 = load i32, i32* %15
%110 = load i32, i32* %19
%111 = load i32*, i32** %12
%112 = load double*, double** %16
%113 = load i32, i32* %15
%114 = load double*, double** %16
%115 = getelementptr inbounds double, double* %114, i64 1
%116 = load i32, i32* %15
%117 = load i8*, i8** %20
%118 = load double*, double** %16
%119 = load i32, i32* %15
%120 = load double*, double** %16
%121 = getelementptr inbounds double, double* %120, i64 1
%122 = load i32, i32* %17
%123 = load i32, i32* %10
%124 = load i32, i32* %15
%125 = load double*, double** %16
%126 = load i32*, i32** %14
%127 = load i32, i32* %17
%128 = sext i32 %127 to i64
%129 = mul i64 %128, 2
%130 = add i64 8, %129
%131 = trunc i64 %130 to i32
%132 = load i8*, i8** %21
%133 = load i32*, i32** %14
%134 = bitcast i32* %133 to i8*
%135 = load i32, i32* %9
%136 = load i32, i32* %10
%137 = load i32, i32* %15
%138 = load i32*, i32** %12
%139 = load double*, double** %16
%140 = load i32, i32* %15
%141 = load double*, double** %16
%142 = getelementptr inbounds double, double* %141, i64 1
%143 = load i32, i32* %15
%144 = load i8*, i8** %20
%145 = load double*, double** %16
%146 = load i32, i32* %15
%147 = load double*, double** %16
%148 = getelementptr inbounds double, double* %147, i64 1
%149 = load i32, i32* %9
%150 = load i32, i32* %10
%151 = load i32, i32* %15
%152 = load double*, double** %16
%153 = load i32*, i32** %14
%154 = load i32, i32* %9
%155 = load i32, i32* %10
%156 = load i32, i32* %15
%157 = load i32, i32* %18
%158 = load i32*, i32** %11
%159 = load double*, double** %16
%160 = load i32, i32* %15
%161 = load double*, double** %16
%162 = getelementptr inbounds double, double* %161, i64 1
%163 = load i32, i32* %15
%164 = load i8*, i8** %20
%165 = load double*, double** %16
%166 = load i32, i32* %15
%167 = load double*, double** %16
%168 = getelementptr inbounds double, double* %167, i64 1
%169 = load i32, i32* %17
%170 = load i32, i32* %10
%171 = load i32, i32* %15
%172 = load double*, double** %16
%173 = load i32*, i32** %13
%174 = load i32*, i32** %13
%175 = getelementptr inbounds i32, i32* %174, i64 0
%176 = load i32, i32* %175
%177 = icmp ne i32 %176, 0
br i1 %177, label %178, label %184
178: ; preds = %90
%179 = load i32, i32* %9
%180 = load i32, i32* %10
%181 = load i32*, i32** %13
%182 = load i32*, i32** %14
%183 = load i32*, i32** %13
br label %189
184: ; preds = %90
%185 = load i32, i32* %9
%186 = load i32, i32* %10
%187 = load i32*, i32** %14
%188 = load i32*, i32** %13
br label %189
189: ; preds = %184, %178
%190 = load i32, i32* %17
%191 = sext i32 %190 to i64
%192 = mul i64 %191, 2
%193 = add i64 8, %192
%194 = trunc i64 %193 to i32
%195 = load i8*, i8** %21
%196 = load i32*, i32** %14
%197 = bitcast i32* %196 to i8*
%198 = load i32*, i32** %14
%199 = getelementptr inbounds i32, i32* %198, i64 0
%200 = load i32, i32* %199
%201 = icmp ne i32 %200, 0
br i1 %201, label %202, label %208
202: ; preds = %189
%203 = load i32, i32* %9
%204 = load i32, i32* %10
%205 = load i32*, i32** %13
%206 = load i32*, i32** %14
%207 = load i32*, i32** %13
br label %208
208: ; preds = %202, %189
%209 = load i8*, i8** %20
%210 = call i32 @remove(i8* %209)
%211 = load i8*, i8** %21
%212 = call i32 @remove(i8* %211)
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"tmp1fft.swp\00"
@.str.1 = [12 x i8] c"tmp1var.swp\00"
define void @mp_mul(i32 %0, i32 %1, i32* %2, i32* %3, i32* %4, i32* %5, i32 %6, double* %7) {
%9 = getelementptr inbounds i32, i32* %2, i64 2
%10 = bitcast i32* %9 to i16*
%11 = getelementptr inbounds i32, i32* %3, i64 2
%12 = bitcast i32* %11 to i16*
%13 = ashr i32 %6, 1
%14 = add nsw i32 %13, 1
%15 = icmp slt i32 %14, %0
br i1 %15, label %16, label %46
16: ; preds = %8
%17 = add nsw i32 %13, 1
%18 = sext i32 %17 to i64
br label %19
19: ; preds = %16, %24
%20 = phi i64 [ %18, %16 ], [ %25, %24 ]
%21 = getelementptr inbounds i16, i16* %10, i64 %20
%22 = load i16, i16* %21
%23 = icmp eq i16 %22, 0
br i1 %23, label %24, label %28
24: ; preds = %19
%25 = add nsw i64 %20, 1
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, %0
br i1 %27, label %30, label %19
28: ; preds = %19
%29 = trunc i64 %20 to i32
br label %30
30: ; preds = %24, %28
%31 = phi i32 [ %29, %28 ], [ %0, %24 ]
br i1 %15, label %32, label %46
32: ; preds = %30
%33 = add nsw i32 %13, 1
%34 = sext i32 %33 to i64
br label %35
35: ; preds = %32, %40
%36 = phi i64 [ %34, %32 ], [ %41, %40 ]
%37 = getelementptr inbounds i16, i16* %12, i64 %36
%38 = load i16, i16* %37
%39 = icmp eq i16 %38, 0
br i1 %39, label %40, label %44
40: ; preds = %35
%41 = add nsw i64 %36, 1
%42 = trunc i64 %41 to i32
%43 = icmp eq i32 %42, %0
br i1 %43, label %46, label %35
44: ; preds = %35
%45 = trunc i64 %36 to i32
br label %46
46: ; preds = %40, %44, %8, %30
%47 = phi i32 [ %31, %30 ], [ %14, %8 ], [ %31, %44 ], [ %31, %40 ]
%48 = phi i32 [ %14, %30 ], [ %14, %8 ], [ %45, %44 ], [ %0, %40 ]
%49 = sdiv i32 %0, 2
%50 = add nsw i32 %49, 1
%51 = sub nsw i32 %0, %47
%52 = icmp slt i32 %50, %51
%53 = select i1 %52, i32 %51, i32 %50
%54 = sub nsw i32 %0, %48
%55 = icmp slt i32 %53, %54
%56 = select i1 %55, i32 %54, i32 %53
tail call void @mp_mul_i2d(i32 %0, i32 %1, i32 %6, i32 0, i32* %2, double* %7)
%57 = getelementptr inbounds double, double* %7, i64 1
tail call void @rdft(i32 %6, i32 1, double* %57)
%58 = shl i32 %6, 3
%59 = add i32 %58, 16
%60 = bitcast double* %7 to i8*
tail call void @f_swap_out(i32 %59, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %60)
tail call void @mp_mul_i2d(i32 %0, i32 %1, i32 %6, i32 %48, i32* %3, double* %7)
tail call void @rdft(i32 %6, i32 1, double* %57)
tail call void @mp_mul_f_cmul(i32 %6, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double* %7)
tail call void @rdft(i32 %6, i32 -1, double* %57)
tail call void @mp_mul_d2i(i32 %56, i32 %1, i32 %6, double* %7, i32* %5)
%61 = shl i32 %56, 1
%62 = add i32 %61, 8
%63 = bitcast i32* %5 to i8*
tail call void @f_swap_out(i32 %62, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* %63)
tail call void @mp_mul_i2d(i32 %0, i32 %1, i32 %6, i32 0, i32* %3, double* %7)
tail call void @rdft(i32 %6, i32 1, double* %57)
tail call void @mp_mul_f_cmul_swap(i32 %6, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double* %7)
tail call void @rdft(i32 %6, i32 -1, double* %57)
tail call void @mp_mul_d2i(i32 %0, i32 %1, i32 %6, double* %7, i32* %5)
tail call void @mp_mul_i2d(i32 %0, i32 %1, i32 %6, i32 %47, i32* %2, double* %7)
tail call void @rdft(i32 %6, i32 1, double* %57)
tail call void @mp_mul_f_cmul(i32 %6, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double* %7)
tail call void @rdft(i32 %6, i32 -1, double* %57)
tail call void @mp_mul_d2i(i32 %56, i32 %1, i32 %6, double* %7, i32* %4)
%64 = load i32, i32* %4
%65 = icmp eq i32 %64, 0
br i1 %65, label %67, label %66
66: ; preds = %46
tail call void @mp_add(i32 %0, i32 %1, i32* %4, i32* %5, i32* %4)
br label %68
67: ; preds = %46
tail call void @mp_copy(i32 %0, i32 %1, i32* %5, i32* %4)
br label %68
68: ; preds = %67, %66
tail call void @f_swap_in(i32 %62, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* %63)
%69 = load i32, i32* %5
%70 = icmp eq i32 %69, 0
br i1 %70, label %72, label %71
71: ; preds = %68
tail call void @mp_add(i32 %0, i32 %1, i32* %4, i32* %5, i32* %4)
br label %72
72: ; preds = %71, %68
%73 = tail call i32 @remove(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%74 = tail call i32 @remove(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
ret void
}