#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 /*<<< orphan*/ assert(int /*<<< orphan*/);
double *calloc(char, int);
double *eigg_encode_ary_init() {
  double *ary = calloc('T' + 1, sizeof(double));
  assert(ary != NULL);
  ary['A'] = 1;
  ary['C'] = 0.5;
  ary['T'] = -1;
  ary['G'] = -0.5;
  ary['N'] = 0;
  return ary;
}


x86 assembly (clang, -O0):
<eigg_encode_ary_init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x55,%edi
mov    $0x8,%esi
call   1030 <calloc@plt>
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x8(%rbp),%rax
movsd  0xebf(%rip),%xmm0
movsd  %xmm0,0x208(%rax)
mov    -0x8(%rbp),%rax
movsd  0xea3(%rip),%xmm0
movsd  %xmm0,0x218(%rax)
mov    -0x8(%rbp),%rax
movsd  0xe87(%rip),%xmm0
movsd  %xmm0,0x2a0(%rax)
mov    -0x8(%rbp),%rax
movsd  0xe6b(%rip),%xmm0
movsd  %xmm0,0x238(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x270(%rax)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eigg_encode_ary_init>:
push   %rbx
mov    $0x55,%edi
mov    $0x8,%esi
call   1030 <calloc@plt>
mov    %rax,%rbx
xor    %edi,%edi
test   %rax,%rax
setne  %dil
call   1040 <assert@plt>
movabs $0x3ff0000000000000,%rax
mov    %rax,0x208(%rbx)
movabs $0x3fe0000000000000,%rax
mov    %rax,0x218(%rbx)
movabs $0xbff0000000000000,%rax
mov    %rax,0x2a0(%rbx)
movabs $0xbfe0000000000000,%rax
mov    %rax,0x238(%rbx)
movq   $0x0,0x270(%rbx)
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define double* @eigg_encode_ary_init() {
%1 = alloca double*
%2 = call double* @calloc(i8 signext 85, i32 8)
store double* %2, double** %1
%3 = load double*, double** %1
%4 = icmp ne double* %3, null
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 %5)
%7 = load double*, double** %1
%8 = getelementptr inbounds double, double* %7, i64 65
store double 1.000000e+00, double* %8
%9 = load double*, double** %1
%10 = getelementptr inbounds double, double* %9, i64 67
store double 5.000000e-01, double* %10
%11 = load double*, double** %1
%12 = getelementptr inbounds double, double* %11, i64 84
store double -1.000000e+00, double* %12
%13 = load double*, double** %1
%14 = getelementptr inbounds double, double* %13, i64 71
store double -5.000000e-01, double* %14
%15 = load double*, double** %1
%16 = getelementptr inbounds double, double* %15, i64 78
store double 0.000000e+00, double* %16
%17 = load double*, double** %1
ret double* %17
}

LLVM IR (-O2):
define double* @eigg_encode_ary_init() {
%1 = tail call double* @calloc(i8 signext 85, i32 8)
%2 = icmp ne double* %1, null
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = getelementptr inbounds double, double* %1, i64 65
store double 1.000000e+00, double* %5
%6 = getelementptr inbounds double, double* %1, i64 67
store double 5.000000e-01, double* %6
%7 = getelementptr inbounds double, double* %1, i64 84
store double -1.000000e+00, double* %7
%8 = getelementptr inbounds double, double* %1, i64 71
store double -5.000000e-01, double* %8
%9 = getelementptr inbounds double, double* %1, i64 78
store double 0.000000e+00, double* %9
ret double* %1
}