#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 getSequenceLengthInt(int *, int *);
long double pfuncFullWithSymHelper(int *, int, int, int, int, int, long double,
                                   int, int, long double, long double, int);
long double pfuncFullWithSym(int inputSeq[], int complexity, int naType,
                             int dangles, long double temperature,
                             int calcPairs, int permSymmetry,
                             long double sodiumconc, long double magnesiumconc,
                             int uselongsalt) {
  int nStrands;
  int seqlength = getSequenceLengthInt(inputSeq, &nStrands);
  return pfuncFullWithSymHelper(
      inputSeq, seqlength, nStrands, complexity, naType, dangles, temperature,
      calcPairs, permSymmetry, sodiumconc, magnesiumconc, uselongsalt);
}


x86 assembly (clang, -O0):
<pfuncFullWithSym>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0xb8,%rsp
mov    0x40(%rbp),%eax
fldt   0x30(%rbp)
fldt   0x20(%rbp)
fldt   0x10(%rbp)
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
fstpt  -0x30(%rbp)
mov    %r8d,-0x34(%rbp)
mov    %r9d,-0x38(%rbp)
fstpt  -0x50(%rbp)
fstpt  -0x60(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x64(%rbp),%rsi
call   1040 <getSequenceLengthInt@plt>
mov    %eax,-0x68(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x68(%rbp),%esi
mov    -0x64(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
fldt   -0x30(%rbp)
mov    -0x34(%rbp),%r10d
mov    -0x38(%rbp),%r11d
fldt   -0x50(%rbp)
fldt   -0x60(%rbp)
mov    0x40(%rbp),%ebx
mov    %rsp,%rax
mov    %ebx,0x40(%rax)
fstpt  0x30(%rax)
fstpt  0x20(%rax)
mov    %r11d,0x18(%rax)
mov    %r10d,0x10(%rax)
fstpt  (%rax)
call   1030 <pfuncFullWithSymHelper@plt>
fld    %st(0)
fstp   %st(0)
add    $0xb8,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<pfuncFullWithSym>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %r9d,%r13d
mov    %r8d,%ebp
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %esi,%r12d
mov    %rdi,%rbx
fldt   0xb0(%rsp)
fstpt  0x6c(%rsp)
fldt   0xc0(%rsp)
fstpt  0x60(%rsp)
fldt   0xd0(%rsp)
fstpt  0x54(%rsp)
lea    0x50(%rsp),%rsi
call   1040 <getSequenceLengthInt@plt>
mov    0x50(%rsp),%edx
mov    0xe0(%rsp),%ecx
mov    %ecx,0x40(%rsp)
fldt   0x54(%rsp)
fstpt  0x30(%rsp)
fldt   0x60(%rsp)
fstpt  0x20(%rsp)
mov    %r13d,0x18(%rsp)
mov    %ebp,0x10(%rsp)
fldt   0x6c(%rsp)
fstpt  (%rsp)
mov    %rbx,%rdi
mov    %eax,%esi
mov    %r12d,%ecx
mov    %r15d,%r8d
mov    %r14d,%r9d
call   1030 <pfuncFullWithSymHelper@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define x86_fp80 @pfuncFullWithSym(i32* %0, i32 %1, i32 %2, i32 %3, x86_fp80 %4, i32 %5, i32 %6, x86_fp80 %7, x86_fp80 %8, i32 %9) {
%11 = alloca i32*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca x86_fp80
%16 = alloca i32
%17 = alloca i32
%18 = alloca x86_fp80
%19 = alloca x86_fp80
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
store i32* %0, i32** %11
store i32 %1, i32* %12
store i32 %2, i32* %13
store i32 %3, i32* %14
store x86_fp80 %4, x86_fp80* %15
store i32 %5, i32* %16
store i32 %6, i32* %17
store x86_fp80 %7, x86_fp80* %18
store x86_fp80 %8, x86_fp80* %19
store i32 %9, i32* %20
%23 = load i32*, i32** %11
%24 = call i32 @getSequenceLengthInt(i32* %23, i32* %21)
store i32 %24, i32* %22
%25 = load i32*, i32** %11
%26 = load i32, i32* %22
%27 = load i32, i32* %21
%28 = load i32, i32* %12
%29 = load i32, i32* %13
%30 = load i32, i32* %14
%31 = load x86_fp80, x86_fp80* %15
%32 = load i32, i32* %16
%33 = load i32, i32* %17
%34 = load x86_fp80, x86_fp80* %18
%35 = load x86_fp80, x86_fp80* %19
%36 = load i32, i32* %20
%37 = call x86_fp80 @pfuncFullWithSymHelper(i32* %25, i32 %26, i32 %27, i32 %28, i32 %29, i32 %30, x86_fp80 %31, i32 %32, i32 %33, x86_fp80 %34, x86_fp80 %35, i32 %36)
ret x86_fp80 %37
}

LLVM IR (-O2):
define x86_fp80 @pfuncFullWithSym(i32* %0, i32 %1, i32 %2, i32 %3, x86_fp80 %4, i32 %5, i32 %6, x86_fp80 %7, x86_fp80 %8, i32 %9) {
%11 = alloca i32
%12 = bitcast i32* %11 to i8*
%13 = call i32 @getSequenceLengthInt(i32* %0, i32* %11)
%14 = load i32, i32* %11
%15 = call x86_fp80 @pfuncFullWithSymHelper(i32* %0, i32 %13, i32 %14, i32 %1, i32 %2, i32 %3, x86_fp80 %4, i32 %5, i32 %6, x86_fp80 %7, x86_fp80 %8, i32 %9)
ret x86_fp80 %15
}