#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 *,
                int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                int /*<<< orphan*/ *, struct annot_str const *,
                int /*<<< orphan*/ *, struct annot_str const *, int,
                int /*<<< orphan*/, int *, int /*<<< orphan*/ *,
                int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                int /*<<< orphan*/ *, struct a_struct *, int *,
                struct dyn_string_str *, int /*<<< orphan*/ *);
int calc_idd(const unsigned char *aa0, int n0, const unsigned char *aa1, int n1,
             struct a_struct *aln, struct a_res_str *a_res,
             struct pstruct *ppst, const struct annot_str *annot0_p,
             const struct annot_str *annot1_p, int *score_delta,
             struct dyn_string_str *annot_var_dyn, struct f_struct *f_str) {
  int nc;
  return calc_cons_u(aa0, n0, aa1, n1, a_res, ppst, f_str, NULL, NULL, NULL,
                     annot0_p, NULL, annot1_p, 4, 0, &nc, NULL, NULL, NULL,
                     NULL, NULL, NULL, aln, score_delta, annot_var_dyn, NULL);
}


x86 assembly (clang, -O0):
<calc_idd>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0xe0,%rsp
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,-0x28(%rbp)
mov    %esi,-0x2c(%rbp)
mov    %rdx,-0x38(%rbp)
mov    %ecx,-0x3c(%rbp)
mov    %r8,-0x48(%rbp)
mov    %r9,-0x50(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0x38(%rbp),%rdx
mov    -0x3c(%rbp),%ecx
mov    -0x50(%rbp),%r8
mov    0x10(%rbp),%r9
mov    0x38(%rbp),%r12
mov    0x18(%rbp),%r15
mov    0x20(%rbp),%r14
mov    -0x48(%rbp),%r11
mov    0x28(%rbp),%r10
mov    0x30(%rbp),%rax
xor    %ebx,%ebx
xor    %ebx,%ebx
lea    -0x54(%rbp),%rbx
mov    %r12,(%rsp)
movq   $0x0,0x8(%rsp)
movq   $0x0,0x10(%rsp)
movq   $0x0,0x18(%rsp)
mov    %r15,0x20(%rsp)
movq   $0x0,0x28(%rsp)
mov    %r14,0x30(%rsp)
movl   $0x4,0x38(%rsp)
movl   $0x0,0x40(%rsp)
mov    %rbx,0x48(%rsp)
movq   $0x0,0x50(%rsp)
movq   $0x0,0x58(%rsp)
movq   $0x0,0x60(%rsp)
movq   $0x0,0x68(%rsp)
movq   $0x0,0x70(%rsp)
movq   $0x0,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    $0xe0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<calc_idd>:
push   %r14
push   %rbx
sub    $0xa8,%rsp
mov    %r9,%rax
mov    0xc0(%rsp),%r9
mov    0xe8(%rsp),%r10
mov    0xc8(%rsp),%r11
mov    0xd0(%rsp),%r14
movups 0xd8(%rsp),%xmm0
movups %xmm0,0x88(%rsp)
mov    %r8,0x80(%rsp)
xorps  %xmm0,%xmm0
movups %xmm0,0x70(%rsp)
movups %xmm0,0x60(%rsp)
movups %xmm0,0x50(%rsp)
lea    0xa4(%rsp),%rbx
mov    %rbx,0x48(%rsp)
mov    %r14,0x30(%rsp)
mov    %r11,0x20(%rsp)
movups %xmm0,0x8(%rsp)
mov    %r10,(%rsp)
movq   $0x0,0x98(%rsp)
movl   $0x0,0x40(%rsp)
movl   $0x4,0x38(%rsp)
movq   $0x0,0x28(%rsp)
movq   $0x0,0x18(%rsp)
mov    %rax,%r8
call   1030 <calc_cons_u@plt>
add    $0xa8,%rsp
pop    %rbx
pop    %r14
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_idd(i8* %0, i32 %1, i8* %2, i32 %3, %struct.a_struct* %4, %struct.a_res_str* %5, %struct.pstruct* %6, %struct.annot_str* %7, %struct.annot_str* %8, i32* %9, %struct.dyn_string_str* %10, %struct.f_struct* %11) {
%13 = alloca i8*
%14 = alloca i32
%15 = alloca i8*
%16 = alloca i32
%17 = alloca %struct.a_struct*
%18 = alloca %struct.a_res_str*
%19 = alloca %struct.pstruct*
%20 = alloca %struct.annot_str*
%21 = alloca %struct.annot_str*
%22 = alloca i32*
%23 = alloca %struct.dyn_string_str*
%24 = alloca %struct.f_struct*
%25 = alloca i32
store i8* %0, i8** %13
store i32 %1, i32* %14
store i8* %2, i8** %15
store i32 %3, i32* %16
store %struct.a_struct* %4, %struct.a_struct** %17
store %struct.a_res_str* %5, %struct.a_res_str** %18
store %struct.pstruct* %6, %struct.pstruct** %19
store %struct.annot_str* %7, %struct.annot_str** %20
store %struct.annot_str* %8, %struct.annot_str** %21
store i32* %9, i32** %22
store %struct.dyn_string_str* %10, %struct.dyn_string_str** %23
store %struct.f_struct* %11, %struct.f_struct** %24
%26 = load i8*, i8** %13
%27 = load i32, i32* %14
%28 = load i8*, i8** %15
%29 = load i32, i32* %16
%30 = load %struct.a_res_str*, %struct.a_res_str** %18
%31 = load %struct.pstruct*, %struct.pstruct** %19
%32 = load %struct.f_struct*, %struct.f_struct** %24
%33 = load %struct.annot_str*, %struct.annot_str** %20
%34 = load %struct.annot_str*, %struct.annot_str** %21
%35 = load %struct.a_struct*, %struct.a_struct** %17
%36 = load i32*, i32** %22
%37 = load %struct.dyn_string_str*, %struct.dyn_string_str** %23
%38 = call i32 @calc_cons_u(i8* %26, i32 %27, i8* %28, i32 %29, %struct.a_res_str* %30, %struct.pstruct* %31, %struct.f_struct* %32, i32* null, i32* null, i32* null, %struct.annot_str* %33, i32* null, %struct.annot_str* %34, i32 4, i32 0, i32* %25, i32* null, i32* null, i32* null, i32* null, i32* null, i32* null, %struct.a_struct* %35, i32* %36, %struct.dyn_string_str* %37, i32* null)
ret i32 %38
}

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_idd(i8* %0, i32 %1, i8* %2, i32 %3, %struct.a_struct* %4, %struct.a_res_str* %5, %struct.pstruct* %6, %struct.annot_str* %7, %struct.annot_str* %8, i32* %9, %struct.dyn_string_str* %10, %struct.f_struct* %11) {
%13 = alloca i32
%14 = bitcast i32* %13 to i8*
%15 = call i32 @calc_cons_u(i8* %0, i32 %1, i8* %2, i32 %3, %struct.a_res_str* %5, %struct.pstruct* %6, %struct.f_struct* %11, i32* null, i32* null, i32* null, %struct.annot_str* %7, i32* null, %struct.annot_str* %8, i32 4, i32 0, i32* %13, i32* null, i32* null, i32* null, i32* null, i32* null, i32* null, %struct.a_struct* %4, i32* %9, %struct.dyn_string_str* %10, i32* null)
ret i32 %15
}