#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 getline(char **, size_t *, int /*<<< orphan*/);
int /*<<< orphan*/ predict_seq(char *, float *, float *, float *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stdin;
int main(int ARGC, char *ARGV[]) {
  char *buffer = NULL;
  size_t len;
  int seq_len = getline(&buffer, &len, stdin);
  if (seq_len == -1)
    printf("No line read...\n");
  float sm_arr[seq_len], sb_arr[seq_len], sr_arr[seq_len];
  predict_seq(buffer, sm_arr, sb_arr, sr_arr);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
mov    0x2e93(%rip),%rax
mov    (%rax),%edx
lea    -0x18(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1050 <getline@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0xffffffff,-0x24(%rbp)
jne    117d <main+0x4d>
lea    0xe88(%rip),%rdi
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x30(%rbp)
lea    0xf(,%rax,4),%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rsi
sub    %rcx,%rsi
mov    %rsi,%rsp
mov    %rax,-0x38(%rbp)
mov    -0x24(%rbp),%eax
lea    0xf(,%rax,4),%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdx
sub    %rcx,%rdx
mov    %rdx,%rsp
mov    %rax,-0x40(%rbp)
mov    -0x24(%rbp),%eax
lea    0xf(,%rax,4),%rdi
and    $0xfffffffffffffff0,%rdi
mov    %rsp,%rcx
sub    %rdi,%rcx
mov    %rcx,%rsp
mov    %rax,-0x48(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <predict_seq@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
movq   $0x0,-0x18(%rbp)
mov    0x2e9e(%rip),%rax
mov    (%rax),%edx
lea    -0x18(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1050 <getline@plt>
mov    %eax,%ebx
cmp    $0xffffffff,%eax
jne    116c <main+0x3c>
lea    0xe99(%rip),%rdi
call   1040 <puts@plt>
mov    %rsp,%r14
mov    %ebx,%eax
mov    %rsp,%rsi
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rsi
mov    %rsi,%rsp
mov    %rsp,%rdx
sub    %rax,%rdx
mov    %rdx,%rsp
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,%rsp
mov    -0x18(%rbp),%rdi
call   1030 <predict_seq@plt>
mov    %r14,%rsp
xor    %eax,%eax
lea    -0x10(%rbp),%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@stdin = global i32 0
@.str = [17 x i8] c"No line read...\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* null, i8** %6
%13 = load i32, i32* @stdin
%14 = call i32 @getline(i8** %6, i64* %7, i32 %13)
store i32 %14, i32* %8
%15 = load i32, i32* %8
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
br label %19
19: ; preds = %17, %2
%20 = load i32, i32* %8
%21 = zext i32 %20 to i64
%22 = call i8* @llvm.stacksave()
store i8* %22, i8** %9
%23 = alloca float, i64 %21
store i64 %21, i64* %10
%24 = load i32, i32* %8
%25 = zext i32 %24 to i64
%26 = alloca float, i64 %25
store i64 %25, i64* %11
%27 = load i32, i32* %8
%28 = zext i32 %27 to i64
%29 = alloca float, i64 %28
store i64 %28, i64* %12
%30 = load i8*, i8** %6
%31 = call i32 @predict_seq(i8* %30, float* %23, float* %26, float* %29)
store i32 0, i32* %3
%32 = load i8*, i8** %9
%33 = load i32, i32* %3
ret i32 %33
}

LLVM IR (-O2):
@stdin = global i32 0
@str = [16 x i8] c"No line read...\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = bitcast i8** %3 to i8*
store i8* null, i8** %3
%6 = bitcast i64* %4 to i8*
%7 = load i32, i32* @stdin
%8 = call i32 @getline(i8** %3, i64* %4, i32 %7)
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
br label %12
12: ; preds = %10, %2
%13 = zext i32 %8 to i64
%14 = call i8* @llvm.stacksave()
%15 = alloca float, i64 %13
%16 = alloca float, i64 %13
%17 = alloca float, i64 %13
%18 = load i8*, i8** %3
%19 = call i32 @predict_seq(i8* %18, float* %15, float* %16, float* %17)
ret i32 0
}