#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 */
struct pstruct {
  int dummy;
};
struct f_struct {
  int dummy;
};
struct dyn_string_str {
  int dummy;
};
struct annot_str {
  int dummy;
};
struct a_struct {
  int dummy;
};
struct a_res_str {
  int dummy;
};

/* Variables and functions */
int calc_cons_u(unsigned char const *, int, unsigned char const *, int,
                struct a_res_str *, struct pstruct *, struct f_struct *, void *,
                unsigned char const *, unsigned char const *,
                struct annot_str const *, unsigned char const *,
                struct annot_str const *, int, int /*<<< orphan*/, int *,
                char *, char *, char *, int *, char *, char *,
                struct a_struct *, int *, struct dyn_string_str *,
                int /*<<< orphan*/ *);
int calc_cons_a(const unsigned char *aa0, int n0, const unsigned char *aa1,
                int n1, int *nc, struct a_struct *aln, struct a_res_str *a_res,
                struct pstruct *ppst, char *seqc0, char *seqc1, char *seqca,
                int *cumm_seq_score, const unsigned char *ann_arr,
                const unsigned char *aa0a, const struct annot_str *annot0_p,
                char *seqc0a, const unsigned char *aa1a,
                const struct annot_str *annot1_p, char *seqc1a,
                int *score_delta, struct dyn_string_str *annot_var_dyn,
                struct f_struct *f_str, void *pstat_void) {
  return calc_cons_u(aa0, n0, aa1, n1, a_res, ppst, f_str, pstat_void, ann_arr,
                     aa0a, annot0_p, aa1a, annot1_p, 1, 0, nc, seqc0, seqc1,
                     seqca, cumm_seq_score, seqc0a, seqc1a, aln, score_delta,
                     annot_var_dyn, NULL);
}


x86 assembly (clang, -O0):
<calc_cons_a>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x128,%rsp
mov    0x90(%rbp),%rax
mov    0x88(%rbp),%rax
mov    0x80(%rbp),%rax
mov    0x78(%rbp),%rax
mov    0x70(%rbp),%rax
mov    0x68(%rbp),%rax
mov    0x60(%rbp),%rax
mov    0x58(%rbp),%rax
mov    0x50(%rbp),%rax
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x30(%rbp)
mov    %esi,-0x34(%rbp)
mov    %rdx,-0x40(%rbp)
mov    %ecx,-0x44(%rbp)
mov    %r8,-0x50(%rbp)
mov    %r9,-0x58(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x40(%rbp),%rdx
mov    -0x44(%rbp),%ecx
mov    0x10(%rbp),%r8
mov    0x18(%rbp),%r9
mov    0x88(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    0x90(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    0x40(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    0x48(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    0x50(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    0x60(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    0x68(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    0x20(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    0x28(%rbp),%r13
mov    0x30(%rbp),%r12
mov    0x38(%rbp),%r15
mov    0x58(%rbp),%r14
mov    0x70(%rbp),%rbx
mov    -0x58(%rbp),%r11
mov    0x78(%rbp),%r10
mov    0x80(%rbp),%rax
mov    %rax,-0x60(%rbp)
xor    %eax,%eax
xor    %eax,%eax
mov    -0xa8(%rbp),%rax
mov    %rax,(%rsp)
mov    -0xa0(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x98(%rbp),%rax
mov    %rax,0x10(%rsp)
mov    -0x90(%rbp),%rax
mov    %rax,0x18(%rsp)
mov    -0x88(%rbp),%rax
mov    %rax,0x20(%rsp)
mov    -0x80(%rbp),%rax
mov    %rax,0x28(%rsp)
mov    -0x78(%rbp),%rax
mov    %rax,0x30(%rsp)
mov    -0x70(%rbp),%rax
movl   $0x1,0x38(%rsp)
movl   $0x0,0x40(%rsp)
mov    %rax,0x48(%rsp)
mov    -0x68(%rbp),%rax
mov    %rax,0x50(%rsp)
mov    -0x60(%rbp),%rax
mov    %r13,0x58(%rsp)
mov    %r12,0x60(%rsp)
mov    %r15,0x68(%rsp)
mov    %r14,0x70(%rsp)
mov    %rbx,0x78(%rsp)
mov    %r11,0x80(%rsp)
mov    %r10,0x88(%rsp)
mov    %rax,0x90(%rsp)
movq   $0x0,0x98(%rsp)
call   1030 <calc_cons_u@plt>
add    $0x128,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<calc_cons_a>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %r9,%rax
mov    %r8,%r10
mov    0xd0(%rsp),%r8
mov    0xd8(%rsp),%r9
movups 0x148(%rsp),%xmm0
movaps 0x100(%rsp),%xmm1
mov    0x110(%rsp),%r11
mov    0x120(%rsp),%r14
mov    0x128(%rsp),%r15
movaps 0xe0(%rsp),%xmm2
movaps 0xf0(%rsp),%xmm3
mov    0x118(%rsp),%r12
mov    0x130(%rsp),%rbx
movups 0x138(%rsp),%xmm4
movups %xmm4,0x88(%rsp)
mov    %rax,0x80(%rsp)
mov    %rbx,0x78(%rsp)
mov    %r12,0x70(%rsp)
movups %xmm3,0x60(%rsp)
movups %xmm2,0x50(%rsp)
mov    %r10,0x48(%rsp)
mov    %r15,0x30(%rsp)
mov    %r14,0x28(%rsp)
mov    %r11,0x20(%rsp)
movups %xmm1,0x10(%rsp)
movups %xmm0,(%rsp)
movq   $0x0,0x98(%rsp)
movl   $0x0,0x40(%rsp)
movl   $0x1,0x38(%rsp)
call   1030 <calc_cons_u@plt>
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.a_struct = type { i32 }
%struct.a_res_str = type { i32 }
%struct.pstruct = type { i32 }
%struct.annot_str = type { i32 }
%struct.dyn_string_str = type { i32 }
%struct.f_struct = type { i32 }
define i32 @calc_cons_a(i8* %0, i32 %1, i8* %2, i32 %3, i32* %4, %struct.a_struct* %5, %struct.a_res_str* %6, %struct.pstruct* %7, i8* %8, i8* %9, i8* %10, i32* %11, i8* %12, i8* %13, %struct.annot_str* %14, i8* %15, i8* %16, %struct.annot_str* %17, i8* %18, i32* %19, %struct.dyn_string_str* %20, %struct.f_struct* %21, i8* %22) {
%24 = alloca i8*
%25 = alloca i32
%26 = alloca i8*
%27 = alloca i32
%28 = alloca i32*
%29 = alloca %struct.a_struct*
%30 = alloca %struct.a_res_str*
%31 = alloca %struct.pstruct*
%32 = alloca i8*
%33 = alloca i8*
%34 = alloca i8*
%35 = alloca i32*
%36 = alloca i8*
%37 = alloca i8*
%38 = alloca %struct.annot_str*
%39 = alloca i8*
%40 = alloca i8*
%41 = alloca %struct.annot_str*
%42 = alloca i8*
%43 = alloca i32*
%44 = alloca %struct.dyn_string_str*
%45 = alloca %struct.f_struct*
%46 = alloca i8*
store i8* %0, i8** %24
store i32 %1, i32* %25
store i8* %2, i8** %26
store i32 %3, i32* %27
store i32* %4, i32** %28
store %struct.a_struct* %5, %struct.a_struct** %29
store %struct.a_res_str* %6, %struct.a_res_str** %30
store %struct.pstruct* %7, %struct.pstruct** %31
store i8* %8, i8** %32
store i8* %9, i8** %33
store i8* %10, i8** %34
store i32* %11, i32** %35
store i8* %12, i8** %36
store i8* %13, i8** %37
store %struct.annot_str* %14, %struct.annot_str** %38
store i8* %15, i8** %39
store i8* %16, i8** %40
store %struct.annot_str* %17, %struct.annot_str** %41
store i8* %18, i8** %42
store i32* %19, i32** %43
store %struct.dyn_string_str* %20, %struct.dyn_string_str** %44
store %struct.f_struct* %21, %struct.f_struct** %45
store i8* %22, i8** %46
%47 = load i8*, i8** %24
%48 = load i32, i32* %25
%49 = load i8*, i8** %26
%50 = load i32, i32* %27
%51 = load %struct.a_res_str*, %struct.a_res_str** %30
%52 = load %struct.pstruct*, %struct.pstruct** %31
%53 = load %struct.f_struct*, %struct.f_struct** %45
%54 = load i8*, i8** %46
%55 = load i8*, i8** %36
%56 = load i8*, i8** %37
%57 = load %struct.annot_str*, %struct.annot_str** %38
%58 = load i8*, i8** %40
%59 = load %struct.annot_str*, %struct.annot_str** %41
%60 = load i32*, i32** %28
%61 = load i8*, i8** %32
%62 = load i8*, i8** %33
%63 = load i8*, i8** %34
%64 = load i32*, i32** %35
%65 = load i8*, i8** %39
%66 = load i8*, i8** %42
%67 = load %struct.a_struct*, %struct.a_struct** %29
%68 = load i32*, i32** %43
%69 = load %struct.dyn_string_str*, %struct.dyn_string_str** %44
%70 = call i32 @calc_cons_u(i8* %47, i32 %48, i8* %49, i32 %50, %struct.a_res_str* %51, %struct.pstruct* %52, %struct.f_struct* %53, i8* %54, i8* %55, i8* %56, %struct.annot_str* %57, i8* %58, %struct.annot_str* %59, i32 1, i32 0, i32* %60, i8* %61, i8* %62, i8* %63, i32* %64, i8* %65, i8* %66, %struct.a_struct* %67, i32* %68, %struct.dyn_string_str* %69, i32* null)
ret i32 %70
}

LLVM IR (-O2):
%struct.a_struct = type { i32 }
%struct.a_res_str = type { i32 }
%struct.pstruct = type { i32 }
%struct.annot_str = type { i32 }
%struct.dyn_string_str = type { i32 }
%struct.f_struct = type { i32 }
define i32 @calc_cons_a(i8* %0, i32 %1, i8* %2, i32 %3, i32* %4, %struct.a_struct* %5, %struct.a_res_str* %6, %struct.pstruct* %7, i8* %8, i8* %9, i8* %10, i32* %11, i8* %12, i8* %13, %struct.annot_str* %14, i8* %15, i8* %16, %struct.annot_str* %17, i8* %18, i32* %19, %struct.dyn_string_str* %20, %struct.f_struct* %21, i8* %22) {
%24 = tail call i32 @calc_cons_u(i8* %0, i32 %1, i8* %2, i32 %3, %struct.a_res_str* %6, %struct.pstruct* %7, %struct.f_struct* %21, i8* %22, i8* %12, i8* %13, %struct.annot_str* %14, i8* %16, %struct.annot_str* %17, i32 1, i32 0, i32* %4, i8* %8, i8* %9, i8* %10, i32* %11, i8* %15, i8* %18, %struct.a_struct* %5, i32* %19, %struct.dyn_string_str* %20, i32* null)
ret i32 %24
}