#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 */
short eval_7hand_fast(int *);
short eval_7cards_fast(int c1, int c2, int c3, int c4, int c5, int c6, int c7) {
  int hand[] = {c1, c2, c3, c4, c5, c6, c7};
  return eval_7hand_fast(hand);
}


x86 assembly (clang, -O0):
<eval_7cards_fast>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    0x10(%rbp),%eax
mov    %eax,-0x28(%rbp)
lea    -0x40(%rbp),%rdi
call   1030 <eval_7hand_fast@plt>
cwtl
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eval_7cards_fast>:
sub    $0x28,%rsp
mov    0x30(%rsp),%eax
mov    %edi,(%rsp)
mov    %esi,0x4(%rsp)
mov    %edx,0x8(%rsp)
mov    %ecx,0xc(%rsp)
mov    %r8d,0x10(%rsp)
mov    %r9d,0x14(%rsp)
mov    %eax,0x18(%rsp)
mov    %rsp,%rdi
call   1030 <eval_7hand_fast@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
define signext i16 @eval_7cards_fast(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [7 x i32]
store i32 %0, i32* %8
store i32 %1, i32* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store i32 %6, i32* %14
%16 = getelementptr inbounds [7 x i32], [7 x i32]* %15, i64 0, i64 0
%17 = load i32, i32* %8
store i32 %17, i32* %16
%18 = getelementptr inbounds i32, i32* %16, i64 1
%19 = load i32, i32* %9
store i32 %19, i32* %18
%20 = getelementptr inbounds i32, i32* %18, i64 1
%21 = load i32, i32* %10
store i32 %21, i32* %20
%22 = getelementptr inbounds i32, i32* %20, i64 1
%23 = load i32, i32* %11
store i32 %23, i32* %22
%24 = getelementptr inbounds i32, i32* %22, i64 1
%25 = load i32, i32* %12
store i32 %25, i32* %24
%26 = getelementptr inbounds i32, i32* %24, i64 1
%27 = load i32, i32* %13
store i32 %27, i32* %26
%28 = getelementptr inbounds i32, i32* %26, i64 1
%29 = load i32, i32* %14
store i32 %29, i32* %28
%30 = getelementptr inbounds [7 x i32], [7 x i32]* %15, i64 0, i64 0
%31 = call signext i16 @eval_7hand_fast(i32* %30)
ret i16 %31
}

LLVM IR (-O2):
define signext i16 @eval_7cards_fast(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca [7 x i32]
%9 = bitcast [7 x i32]* %8 to i8*
%10 = getelementptr inbounds [7 x i32], [7 x i32]* %8, i64 0, i64 0
store i32 %0, i32* %10
%11 = getelementptr inbounds [7 x i32], [7 x i32]* %8, i64 0, i64 1
store i32 %1, i32* %11
%12 = getelementptr inbounds [7 x i32], [7 x i32]* %8, i64 0, i64 2
store i32 %2, i32* %12
%13 = getelementptr inbounds [7 x i32], [7 x i32]* %8, i64 0, i64 3
store i32 %3, i32* %13
%14 = getelementptr inbounds [7 x i32], [7 x i32]* %8, i64 0, i64 4
store i32 %4, i32* %14
%15 = getelementptr inbounds [7 x i32], [7 x i32]* %8, i64 0, i64 5
store i32 %5, i32* %15
%16 = getelementptr inbounds [7 x i32], [7 x i32]* %8, i64 0, i64 6
store i32 %6, i32* %16
%17 = call signext i16 @eval_7hand_fast(i32* %10)
ret i16 %17
}