#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*/ manoPoker(unsigned int **, char const **, char const **);
int /*<<< orphan*/ shuffle(unsigned int **);
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  const char *suit[4] = {"Cuori", "Quadri", "Fiori", "Picche"};
  const char *face[13] = {"Asso", "Due",    "Tre",  "Quattro", "Cinque",
                          "Sei",  "Sette",  "Otto", "Nove",    "Dieci",
                          "Jack", "Regina", "Re"};
  unsigned int deck[4][13] = {{0}, {0}};
  srand(time(NULL));
  shuffle(deck);
  manoPoker(deck, face, suit);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x170,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2c17(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0x2c14(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0x2c11(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0x2c0e(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    -0xa0(%rbp),%rdi
lea    0x2c04(%rip),%rsi
mov    $0x68,%edx
call   1070 <memcpy@plt>
lea    -0x170(%rbp),%rdi
xor    %esi,%esi
mov    $0xd0,%edx
call   1050 <memset@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1080 <time@plt>
mov    %eax,%edi
call   1060 <srand@plt>
lea    -0x170(%rbp),%rdi
call   1040 <shuffle@plt>
lea    -0x170(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
lea    -0x30(%rbp),%rdx
call   1030 <manoPoker@plt>
xor    %eax,%eax
add    $0x170,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x160,%rsp
movaps 0x2c51(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0x2c35(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    0x2caa(%rip),%rax
mov    %rax,0x80(%rsp)
movaps 0x2c8b(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0x2c6f(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0x2c53(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0x2c37(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0x2c1b(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0x2bff(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x150(%rsp)
movaps %xmm0,0x140(%rsp)
movaps %xmm0,0x130(%rsp)
movaps %xmm0,0x120(%rsp)
movaps %xmm0,0x110(%rsp)
movaps %xmm0,0x100(%rsp)
movaps %xmm0,0xf0(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
xor    %edi,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
lea    0x90(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <shuffle@plt>
lea    0x20(%rsp),%rsi
mov    %rsp,%rdx
mov    %rbx,%rdi
call   1030 <manoPoker@plt>
xor    %eax,%eax
add    $0x160,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"Cuori\00"
@.str.1 = [7 x i8] c"Quadri\00"
@.str.2 = [6 x i8] c"Fiori\00"
@.str.3 = [7 x i8] c"Picche\00"
@__const.main.suit = [4 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i32 0, i32 0)]
@.str.4 = [5 x i8] c"Asso\00"
@.str.5 = [4 x i8] c"Due\00"
@.str.6 = [4 x i8] c"Tre\00"
@.str.7 = [8 x i8] c"Quattro\00"
@.str.8 = [7 x i8] c"Cinque\00"
@.str.9 = [4 x i8] c"Sei\00"
@.str.10 = [6 x i8] c"Sette\00"
@.str.11 = [5 x i8] c"Otto\00"
@.str.12 = [5 x i8] c"Nove\00"
@.str.13 = [6 x i8] c"Dieci\00"
@.str.14 = [5 x i8] c"Jack\00"
@.str.15 = [7 x i8] c"Regina\00"
@.str.16 = [3 x i8] c"Re\00"
@__const.main.face = [13 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i32 0, i32 0)]
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x i8*]
%3 = alloca [13 x i8*]
%4 = alloca [4 x [13 x i32]]
store i32 0, i32* %1
%5 = bitcast [4 x i8*]* %2 to i8*
%6 = bitcast [13 x i8*]* %3 to i8*
%7 = bitcast [4 x [13 x i32]]* %4 to i8*
%8 = call i32 @time(i32* null)
%9 = call i32 @srand(i32 %8)
%10 = getelementptr inbounds [4 x [13 x i32]], [4 x [13 x i32]]* %4, i64 0, i64 0
%11 = bitcast [13 x i32]* %10 to i32**
%12 = call i32 @shuffle(i32** %11)
%13 = getelementptr inbounds [4 x [13 x i32]], [4 x [13 x i32]]* %4, i64 0, i64 0
%14 = bitcast [13 x i32]* %13 to i32**
%15 = getelementptr inbounds [13 x i8*], [13 x i8*]* %3, i64 0, i64 0
%16 = getelementptr inbounds [4 x i8*], [4 x i8*]* %2, i64 0, i64 0
%17 = call i32 @manoPoker(i32** %14, i8** %15, i8** %16)
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"Cuori\00"
@.str.1 = [7 x i8] c"Quadri\00"
@.str.2 = [6 x i8] c"Fiori\00"
@.str.3 = [7 x i8] c"Picche\00"
@__const.main.suit = [4 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i32 0, i32 0)]
@.str.4 = [5 x i8] c"Asso\00"
@.str.5 = [4 x i8] c"Due\00"
@.str.6 = [4 x i8] c"Tre\00"
@.str.7 = [8 x i8] c"Quattro\00"
@.str.8 = [7 x i8] c"Cinque\00"
@.str.9 = [4 x i8] c"Sei\00"
@.str.10 = [6 x i8] c"Sette\00"
@.str.11 = [5 x i8] c"Otto\00"
@.str.12 = [5 x i8] c"Nove\00"
@.str.13 = [6 x i8] c"Dieci\00"
@.str.14 = [5 x i8] c"Jack\00"
@.str.15 = [7 x i8] c"Regina\00"
@.str.16 = [3 x i8] c"Re\00"
@__const.main.face = [13 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i32 0, i32 0)]
define i32 @main() {
%1 = alloca [4 x i8*]
%2 = alloca [13 x i8*]
%3 = alloca [4 x [13 x i32]]
%4 = bitcast [4 x i8*]* %1 to i8*
%5 = bitcast [13 x i8*]* %2 to i8*
%6 = bitcast [4 x [13 x i32]]* %3 to i8*
%7 = tail call i32 @time(i32* null)
%8 = tail call i32 @srand(i32 %7)
%9 = bitcast [4 x [13 x i32]]* %3 to i32**
%10 = call i32 @shuffle(i32** %9)
%11 = getelementptr inbounds [13 x i8*], [13 x i8*]* %2, i64 0, i64 0
%12 = getelementptr inbounds [4 x i8*], [4 x i8*]* %1, i64 0, i64 0
%13 = call i32 @manoPoker(i32** %9, i8** %11, i8** %12)
ret i32 0
}