#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(char **seqc0, char **seqc1, char **seqca, int seqsiz) {
  *seqc0 = (char *)calloc((size_t)seqsiz * 3, sizeof(char));
  if (*seqc0 == NULL) {
    fprintf(stderr, "cannot allocate consensus arrays %d\n", seqsiz);
    exit(1);
  }
  *seqc1 = *seqc0 + seqsiz;
  *seqca = *seqc1 + seqsiz;
}


x86 assembly (clang, -O0):
<initseq>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
movslq -0x1c(%rbp),%rax
imul   $0x3,%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    1193 <initseq+0x63>
mov    0x2e68(%rip),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%edx
lea    0xe7c(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
movslq -0x1c(%rbp),%rax
add    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
movslq -0x1c(%rbp),%rax
add    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<initseq>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %ecx,%r14d
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
movslq %ecx,%rbp
lea    0x0(,%rbp,2),%rdi
add    %rbp,%rdi
mov    $0x1,%esi
call   1030 <calloc@plt>
mov    %rax,(%rbx)
test   %rax,%rax
je     117a <initseq+0x4a>
add    %rbp,%rax
mov    %rax,(%r12)
add    %rbp,%rax
mov    %rax,(%r15)
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2e5f(%rip),%rax
mov    (%rax),%edi
lea    0xe76(%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(i8** %0, i8** %1, i8** %2, i32 %3) {
%5 = alloca i8**
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca i32
store i8** %0, i8*** %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
store i32 %3, i32* %8
%9 = load i32, i32* %8
%10 = sext i32 %9 to i64
%11 = mul i64 %10, 3
%12 = call i64 @calloc(i64 %11, i32 1)
%13 = inttoptr i64 %12 to i8*
%14 = load i8**, i8*** %5
store i8* %13, i8** %14
%15 = load i8**, i8*** %5
%16 = load i8*, i8** %15
%17 = icmp eq i8* %16, null
br i1 %17, label %18, label %23
18: ; preds = %4
%19 = load i32, i32* @stderr
%20 = load i32, i32* %8
%21 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %20)
%22 = call i32 @exit(i32 1)
unreachable
23: ; preds = %4
%24 = load i8**, i8*** %5
%25 = load i8*, i8** %24
%26 = load i32, i32* %8
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, i8* %25, i64 %27
%29 = load i8**, i8*** %6
store i8* %28, i8** %29
%30 = load i8**, i8*** %6
%31 = load i8*, i8** %30
%32 = load i32, i32* %8
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, i8* %31, i64 %33
%35 = load i8**, i8*** %7
store i8* %34, i8** %35
ret void
}

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