#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*/ NucListall(char, int *, int *);
int CodonListall(char codon[], int nb[3], int ib[3][4]) {
  int k;
  for (k = 0; k < 3; k++)
    NucListall(codon[k], &nb[k], ib[k]);
  return (0);
}


x86 assembly (clang, -O0):
<CodonListall>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x3,-0x1c(%rbp)
jge    1174 <CodonListall+0x64>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    -0x10(%rbp),%rsi
movslq -0x1c(%rbp),%rcx
shl    $0x2,%rcx
add    %rcx,%rsi
mov    -0x18(%rbp),%rdx
movslq -0x1c(%rbp),%rcx
shl    $0x4,%rcx
add    %rcx,%rdx
movsbl %al,%edi
call   1030 <NucListall@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    112b <CodonListall+0x1b>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CodonListall>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %rdi,%r15
movsbl (%rdi),%edi
call   1030 <NucListall@plt>
movsbl 0x1(%r15),%edi
lea    0x4(%rbx),%rsi
lea    0x10(%r14),%rdx
call   1030 <NucListall@plt>
movsbl 0x2(%r15),%edi
add    $0x8,%rbx
add    $0x20,%r14
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <NucListall@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @CodonListall(i8* %0, i32* %1, [4 x i32]* %2) {
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca [4 x i32]*
%7 = alloca i32
store i8* %0, i8** %4
store i32* %1, i32** %5
store [4 x i32]* %2, [4 x i32]** %6
store i32 0, i32* %7
br label %8
8: ; preds = %27, %3
%9 = load i32, i32* %7
%10 = icmp slt i32 %9, 3
br i1 %10, label %11, label %30
11: ; preds = %8
%12 = load i8*, i8** %4
%13 = load i32, i32* %7
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, i8* %12, i64 %14
%16 = load i8, i8* %15
%17 = load i32*, i32** %5
%18 = load i32, i32* %7
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, i32* %17, i64 %19
%21 = load [4 x i32]*, [4 x i32]** %6
%22 = load i32, i32* %7
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [4 x i32], [4 x i32]* %21, i64 %23
%25 = getelementptr inbounds [4 x i32], [4 x i32]* %24, i64 0, i64 0
%26 = call i32 @NucListall(i8 signext %16, i32* %20, i32* %25)
br label %27
27: ; preds = %11
%28 = load i32, i32* %7
%29 = add nsw i32 %28, 1
store i32 %29, i32* %7
br label %8
30: ; preds = %8
ret i32 0
}

LLVM IR (-O2):
define i32 @CodonListall(i8* nocapture %0, i32* %1, [4 x i32]* %2) {
%4 = load i8, i8* %0
%5 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 0
%6 = tail call i32 @NucListall(i8 signext %4, i32* %1, i32* %5)
%7 = getelementptr inbounds i8, i8* %0, i64 1
%8 = load i8, i8* %7
%9 = getelementptr inbounds i32, i32* %1, i64 1
%10 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 1, i64 0
%11 = tail call i32 @NucListall(i8 signext %8, i32* %9, i32* %10)
%12 = getelementptr inbounds i8, i8* %0, i64 2
%13 = load i8, i8* %12
%14 = getelementptr inbounds i32, i32* %1, i64 2
%15 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 2, i64 0
%16 = tail call i32 @NucListall(i8 signext %13, i32* %14, i32* %15)
ret i32 0
}