#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(int, int);
char *init_complement_ascii(void) {
  int i;
  char *Complementascii = (char *)calloc(256, sizeof(long int));
  if (Complementascii == NULL) {
    return NULL;
  }
  for (i = 0; i < 256; i++)
    Complementascii[i] = i;
  Complementascii['A'] = 'T';
  Complementascii['C'] = 'G';
  Complementascii['G'] = 'C';
  Complementascii['T'] = 'A';
  Complementascii['a'] = 't';
  Complementascii['c'] = 'g';
  Complementascii['g'] = 'c';
  Complementascii['t'] = 'a';
  return Complementascii;
}


x86 assembly (clang, -O0):
<init_complement_ascii>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    $0x100,%edi
mov    $0x8,%esi
call   1030 <calloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1143 <init_complement_ascii+0x33>
movq   $0x0,-0x8(%rbp)
jmp    11bd <init_complement_ascii+0xad>
movl   $0x0,-0xc(%rbp)
cmpl   $0x100,-0xc(%rbp)
jge    1175 <init_complement_ascii+0x65>
mov    -0xc(%rbp),%eax
mov    %al,%dl
mov    -0x18(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    114a <init_complement_ascii+0x3a>
mov    -0x18(%rbp),%rax
movb   $0x54,0x41(%rax)
mov    -0x18(%rbp),%rax
movb   $0x47,0x43(%rax)
mov    -0x18(%rbp),%rax
movb   $0x43,0x47(%rax)
mov    -0x18(%rbp),%rax
movb   $0x41,0x54(%rax)
mov    -0x18(%rbp),%rax
movb   $0x74,0x61(%rax)
mov    -0x18(%rbp),%rax
movb   $0x67,0x63(%rax)
mov    -0x18(%rbp),%rax
movb   $0x63,0x67(%rax)
mov    -0x18(%rbp),%rax
movb   $0x61,0x74(%rax)
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_complement_ascii>:
push   %rax
mov    $0x100,%edi
mov    $0x8,%esi
call   1030 <calloc@plt>
test   %rax,%rax
je     1212 <init_complement_ascii+0x102>
movaps 0xed0(%rip),%xmm0
movups %xmm0,(%rax)
movaps 0xed6(%rip),%xmm0
movups %xmm0,0x10(%rax)
movaps 0xedb(%rip),%xmm0
movups %xmm0,0x20(%rax)
movaps 0xee0(%rip),%xmm0
movups %xmm0,0x30(%rax)
movaps 0xee5(%rip),%xmm0
movups %xmm0,0x40(%rax)
movaps 0xeea(%rip),%xmm0
movups %xmm0,0x50(%rax)
movaps 0xeef(%rip),%xmm0
movups %xmm0,0x60(%rax)
movaps 0xef4(%rip),%xmm0
movups %xmm0,0x70(%rax)
movaps 0xef9(%rip),%xmm0
movups %xmm0,0x80(%rax)
movaps 0xefb(%rip),%xmm0
movups %xmm0,0x90(%rax)
movaps 0xefd(%rip),%xmm0
movups %xmm0,0xa0(%rax)
movaps 0xeff(%rip),%xmm0
movups %xmm0,0xb0(%rax)
movaps 0xf01(%rip),%xmm0
movups %xmm0,0xc0(%rax)
movaps 0xf03(%rip),%xmm0
movups %xmm0,0xd0(%rax)
movaps 0xf05(%rip),%xmm0
movups %xmm0,0xe0(%rax)
movaps 0xf07(%rip),%xmm0
movups %xmm0,0xf0(%rax)
movb   $0x54,0x41(%rax)
movb   $0x47,0x43(%rax)
movb   $0x43,0x47(%rax)
movb   $0x41,0x54(%rax)
movb   $0x74,0x61(%rax)
movb   $0x67,0x63(%rax)
movb   $0x63,0x67(%rax)
movb   $0x61,0x74(%rax)
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i8* @init_complement_ascii() {
%1 = alloca i8*
%2 = alloca i32
%3 = alloca i8*
%4 = call i64 @calloc(i32 256, i32 8)
%5 = inttoptr i64 %4 to i8*
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = icmp eq i8* %6, null
br i1 %7, label %8, label %9
8: ; preds = %0
store i8* null, i8** %1
br label %41
9: ; preds = %0
store i32 0, i32* %2
br label %10
10: ; preds = %20, %9
%11 = load i32, i32* %2
%12 = icmp slt i32 %11, 256
br i1 %12, label %13, label %23
13: ; preds = %10
%14 = load i32, i32* %2
%15 = trunc i32 %14 to i8
%16 = load i8*, i8** %3
%17 = load i32, i32* %2
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, i8* %16, i64 %18
store i8 %15, i8* %19
br label %20
20: ; preds = %13
%21 = load i32, i32* %2
%22 = add nsw i32 %21, 1
store i32 %22, i32* %2
br label %10
23: ; preds = %10
%24 = load i8*, i8** %3
%25 = getelementptr inbounds i8, i8* %24, i64 65
store i8 84, i8* %25
%26 = load i8*, i8** %3
%27 = getelementptr inbounds i8, i8* %26, i64 67
store i8 71, i8* %27
%28 = load i8*, i8** %3
%29 = getelementptr inbounds i8, i8* %28, i64 71
store i8 67, i8* %29
%30 = load i8*, i8** %3
%31 = getelementptr inbounds i8, i8* %30, i64 84
store i8 65, i8* %31
%32 = load i8*, i8** %3
%33 = getelementptr inbounds i8, i8* %32, i64 97
store i8 116, i8* %33
%34 = load i8*, i8** %3
%35 = getelementptr inbounds i8, i8* %34, i64 99
store i8 103, i8* %35
%36 = load i8*, i8** %3
%37 = getelementptr inbounds i8, i8* %36, i64 103
store i8 99, i8* %37
%38 = load i8*, i8** %3
%39 = getelementptr inbounds i8, i8* %38, i64 116
store i8 97, i8* %39
%40 = load i8*, i8** %3
store i8* %40, i8** %1
br label %41
41: ; preds = %23, %8
%42 = load i8*, i8** %1
ret i8* %42
}

LLVM IR (-O2):
define i8* @init_complement_ascii() {
%1 = tail call i64 @calloc(i32 256, i32 8)
%2 = inttoptr i64 %1 to i8*
%3 = icmp eq i64 %1, 0
br i1 %3, label %44, label %4
4: ; preds = %0
%5 = inttoptr i64 %1 to <16 x i8>*
store <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, <16 x i8>* %5
%6 = getelementptr inbounds i8, i8* %2, i64 16
%7 = bitcast i8* %6 to <16 x i8>*
store <16 x i8> <i8 16, i8 17, i8 18, i8 19, i8 20, i8 21, i8 22, i8 23, i8 24, i8 25, i8 26, i8 27, i8 28, i8 29, i8 30, i8 31>, <16 x i8>* %7
%8 = getelementptr inbounds i8, i8* %2, i64 32
%9 = bitcast i8* %8 to <16 x i8>*
store <16 x i8> <i8 32, i8 33, i8 34, i8 35, i8 36, i8 37, i8 38, i8 39, i8 40, i8 41, i8 42, i8 43, i8 44, i8 45, i8 46, i8 47>, <16 x i8>* %9
%10 = getelementptr inbounds i8, i8* %2, i64 48
%11 = bitcast i8* %10 to <16 x i8>*
store <16 x i8> <i8 48, i8 49, i8 50, i8 51, i8 52, i8 53, i8 54, i8 55, i8 56, i8 57, i8 58, i8 59, i8 60, i8 61, i8 62, i8 63>, <16 x i8>* %11
%12 = getelementptr inbounds i8, i8* %2, i64 64
%13 = bitcast i8* %12 to <16 x i8>*
store <16 x i8> <i8 64, i8 65, i8 66, i8 67, i8 68, i8 69, i8 70, i8 71, i8 72, i8 73, i8 74, i8 75, i8 76, i8 77, i8 78, i8 79>, <16 x i8>* %13
%14 = getelementptr inbounds i8, i8* %2, i64 80
%15 = bitcast i8* %14 to <16 x i8>*
store <16 x i8> <i8 80, i8 81, i8 82, i8 83, i8 84, i8 85, i8 86, i8 87, i8 88, i8 89, i8 90, i8 91, i8 92, i8 93, i8 94, i8 95>, <16 x i8>* %15
%16 = getelementptr inbounds i8, i8* %2, i64 96
%17 = bitcast i8* %16 to <16 x i8>*
store <16 x i8> <i8 96, i8 97, i8 98, i8 99, i8 100, i8 101, i8 102, i8 103, i8 104, i8 105, i8 106, i8 107, i8 108, i8 109, i8 110, i8 111>, <16 x i8>* %17
%18 = getelementptr inbounds i8, i8* %2, i64 112
%19 = bitcast i8* %18 to <16 x i8>*
store <16 x i8> <i8 112, i8 113, i8 114, i8 115, i8 116, i8 117, i8 118, i8 119, i8 120, i8 121, i8 122, i8 123, i8 124, i8 125, i8 126, i8 127>, <16 x i8>* %19
%20 = getelementptr inbounds i8, i8* %2, i64 128
%21 = bitcast i8* %20 to <16 x i8>*
store <16 x i8> <i8 -128, i8 -127, i8 -126, i8 -125, i8 -124, i8 -123, i8 -122, i8 -121, i8 -120, i8 -119, i8 -118, i8 -117, i8 -116, i8 -115, i8 -114, i8 -113>, <16 x i8>* %21
%22 = getelementptr inbounds i8, i8* %2, i64 144
%23 = bitcast i8* %22 to <16 x i8>*
store <16 x i8> <i8 -112, i8 -111, i8 -110, i8 -109, i8 -108, i8 -107, i8 -106, i8 -105, i8 -104, i8 -103, i8 -102, i8 -101, i8 -100, i8 -99, i8 -98, i8 -97>, <16 x i8>* %23
%24 = getelementptr inbounds i8, i8* %2, i64 160
%25 = bitcast i8* %24 to <16 x i8>*
store <16 x i8> <i8 -96, i8 -95, i8 -94, i8 -93, i8 -92, i8 -91, i8 -90, i8 -89, i8 -88, i8 -87, i8 -86, i8 -85, i8 -84, i8 -83, i8 -82, i8 -81>, <16 x i8>* %25
%26 = getelementptr inbounds i8, i8* %2, i64 176
%27 = bitcast i8* %26 to <16 x i8>*
store <16 x i8> <i8 -80, i8 -79, i8 -78, i8 -77, i8 -76, i8 -75, i8 -74, i8 -73, i8 -72, i8 -71, i8 -70, i8 -69, i8 -68, i8 -67, i8 -66, i8 -65>, <16 x i8>* %27
%28 = getelementptr inbounds i8, i8* %2, i64 192
%29 = bitcast i8* %28 to <16 x i8>*
store <16 x i8> <i8 -64, i8 -63, i8 -62, i8 -61, i8 -60, i8 -59, i8 -58, i8 -57, i8 -56, i8 -55, i8 -54, i8 -53, i8 -52, i8 -51, i8 -50, i8 -49>, <16 x i8>* %29
%30 = getelementptr inbounds i8, i8* %2, i64 208
%31 = bitcast i8* %30 to <16 x i8>*
store <16 x i8> <i8 -48, i8 -47, i8 -46, i8 -45, i8 -44, i8 -43, i8 -42, i8 -41, i8 -40, i8 -39, i8 -38, i8 -37, i8 -36, i8 -35, i8 -34, i8 -33>, <16 x i8>* %31
%32 = getelementptr inbounds i8, i8* %2, i64 224
%33 = bitcast i8* %32 to <16 x i8>*
store <16 x i8> <i8 -32, i8 -31, i8 -30, i8 -29, i8 -28, i8 -27, i8 -26, i8 -25, i8 -24, i8 -23, i8 -22, i8 -21, i8 -20, i8 -19, i8 -18, i8 -17>, <16 x i8>* %33
%34 = getelementptr inbounds i8, i8* %2, i64 240
%35 = bitcast i8* %34 to <16 x i8>*
store <16 x i8> <i8 -16, i8 -15, i8 -14, i8 -13, i8 -12, i8 -11, i8 -10, i8 -9, i8 -8, i8 -7, i8 -6, i8 -5, i8 -4, i8 -3, i8 -2, i8 -1>, <16 x i8>* %35
%36 = getelementptr inbounds i8, i8* %2, i64 65
store i8 84, i8* %36
%37 = getelementptr inbounds i8, i8* %2, i64 67
store i8 71, i8* %37
%38 = getelementptr inbounds i8, i8* %2, i64 71
store i8 67, i8* %38
%39 = getelementptr inbounds i8, i8* %2, i64 84
store i8 65, i8* %39
%40 = getelementptr inbounds i8, i8* %2, i64 97
store i8 116, i8* %40
%41 = getelementptr inbounds i8, i8* %2, i64 99
store i8 103, i8* %41
%42 = getelementptr inbounds i8, i8* %2, i64 103
store i8 99, i8* %42
%43 = getelementptr inbounds i8, i8* %2, i64 116
store i8 97, i8* %43
br label %44
44: ; preds = %0, %4
%45 = phi i8* [ %2, %4 ], [ null, %0 ]
ret i8* %45
}