#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 */
scalar_t__ calloc(size_t, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ stderr;
void initseq_ann(char **seqc0a, char **seqc1a, int seqsiz) {
  *seqc0a = (char *)calloc((size_t)seqsiz * 5, sizeof(char));
  if (*seqc0a == NULL) {
    fprintf(stderr, "cannot allocate consensus arrays %d\n", seqsiz);
    exit(1);
  }
  *seqc1a = *seqc0a + seqsiz;
}


x86 assembly (clang, -O0):
<initseq_ann>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movslq -0x14(%rbp),%rax
imul   $0x5,%rax,%rdi
mov    $0x1,%esi
call   1030 <calloc@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x8(%rbp),%rax
cmpq   $0x0,(%rax)
jne    118f <initseq_ann+0x5f>
mov    0x2e6c(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
lea    0xe80(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
movslq -0x14(%rbp),%rax
add    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<initseq_ann>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edx,%r14d
mov    %rsi,%r15
mov    %rdi,%rbp
movslq %edx,%rbx
lea    (%rbx,%rbx,4),%rdi
mov    $0x1,%esi
call   1030 <calloc@plt>
mov    %rax,0x0(%rbp)
test   %rax,%rax
je     116b <initseq_ann+0x3b>
add    %rbx,%rax
mov    %rax,(%r15)
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2e6e(%rip),%rax
mov    (%rax),%edi
lea    0xe85(%rip),%rsi
mov    %r14d,%edx
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [37 x i8] c"cannot allocate consensus arrays %d\0A\00"
define void @initseq_ann(i8** %0, i8** %1, i32 %2) {
%4 = alloca i8**
%5 = alloca i8**
%6 = alloca i32
store i8** %0, i8*** %4
store i8** %1, i8*** %5
store i32 %2, i32* %6
%7 = load i32, i32* %6
%8 = sext i32 %7 to i64
%9 = mul i64 %8, 5
%10 = call i64 @calloc(i64 %9, i32 1)
%11 = inttoptr i64 %10 to i8*
%12 = load i8**, i8*** %4
store i8* %11, i8** %12
%13 = load i8**, i8*** %4
%14 = load i8*, i8** %13
%15 = icmp eq i8* %14, null
br i1 %15, label %16, label %21
16: ; preds = %3
%17 = load i32, i32* @stderr
%18 = load i32, i32* %6
%19 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %18)
%20 = call i32 @exit(i32 1)
unreachable
21: ; preds = %3
%22 = load i8**, i8*** %4
%23 = load i8*, i8** %22
%24 = load i32, i32* %6
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, i8* %23, i64 %25
%27 = load i8**, i8*** %5
store i8* %26, i8** %27
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [37 x i8] c"cannot allocate consensus arrays %d\0A\00"
define void @initseq_ann(i8** nocapture writeonly %0, i8** nocapture writeonly %1, i32 %2) {
%4 = sext i32 %2 to i64
%5 = mul nsw i64 %4, 5
%6 = tail call i64 @calloc(i64 %5, i32 1)
%7 = inttoptr i64 %6 to i8*
store i8* %7, i8** %0
%8 = icmp eq i64 %6, 0
br i1 %8, label %9, label %13
9: ; preds = %3
%10 = load i32, i32* @stderr
%11 = tail call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %2)
%12 = tail call i32 @exit(i32 1)
unreachable
13: ; preds = %3
%14 = getelementptr inbounds i8, i8* %7, i64 %4
store i8* %14, i8** %1
ret void
}