#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*/ printf(char *);
int /*<<< orphan*/ t_a();
int /*<<< orphan*/ t_b();
int /*<<< orphan*/ t_c();
int /*<<< orphan*/ t_d(unsigned char **, int);
void haz_tablero(unsigned char t[7][7]) {
  int j;
  printf("\n\n");
  t_a();
  for (j = 0; j < 6; j++) {
    t_d(t, j);
    t_b();
  }
  t_d(t, 6);
  t_c();
}


x86 assembly (clang, -O0):
<haz_tablero>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xe9d(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <t_a@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x6,-0xc(%rbp)
jge    11a1 <haz_tablero+0x51>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1070 <t_d@plt>
mov    $0x0,%al
call   1060 <t_b@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1176 <haz_tablero+0x26>
mov    -0x8(%rbp),%rdi
mov    $0x6,%esi
call   1070 <t_d@plt>
mov    $0x0,%al
call   1030 <t_c@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<haz_tablero>:
push   %rbx
mov    %rdi,%rbx
lea    0xea5(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1040 <t_a@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1070 <t_d@plt>
xor    %eax,%eax
call   1060 <t_b@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1070 <t_d@plt>
xor    %eax,%eax
call   1060 <t_b@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1070 <t_d@plt>
xor    %eax,%eax
call   1060 <t_b@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1070 <t_d@plt>
xor    %eax,%eax
call   1060 <t_b@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1070 <t_d@plt>
xor    %eax,%eax
call   1060 <t_b@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
call   1070 <t_d@plt>
xor    %eax,%eax
call   1060 <t_b@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
call   1070 <t_d@plt>
xor    %eax,%eax
pop    %rbx
jmp    1030 <t_c@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"\0A\0A\00"
define void @haz_tablero([7 x i8]* %0) {
%2 = alloca [7 x i8]*
%3 = alloca i32
store [7 x i8]* %0, [7 x i8]** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%5 = call i32 (...) @t_a()
store i32 0, i32* %3
br label %6
6: ; preds = %15, %1
%7 = load i32, i32* %3
%8 = icmp slt i32 %7, 6
br i1 %8, label %9, label %18
9: ; preds = %6
%10 = load [7 x i8]*, [7 x i8]** %2
%11 = bitcast [7 x i8]* %10 to i8**
%12 = load i32, i32* %3
%13 = call i32 @t_d(i8** %11, i32 %12)
%14 = call i32 (...) @t_b()
br label %15
15: ; preds = %9
%16 = load i32, i32* %3
%17 = add nsw i32 %16, 1
store i32 %17, i32* %3
br label %6
18: ; preds = %6
%19 = load [7 x i8]*, [7 x i8]** %2
%20 = bitcast [7 x i8]* %19 to i8**
%21 = call i32 @t_d(i8** %20, i32 6)
%22 = call i32 (...) @t_c()
ret void
}

LLVM IR (-O2):
@str = [2 x i8] c"\0A\00"
define void @haz_tablero([7 x i8]* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (...) @t_a()
%4 = bitcast [7 x i8]* %0 to i8**
%5 = tail call i32 @t_d(i8** %4, i32 0)
%6 = tail call i32 (...) @t_b()
%7 = tail call i32 @t_d(i8** %4, i32 1)
%8 = tail call i32 (...) @t_b()
%9 = tail call i32 @t_d(i8** %4, i32 2)
%10 = tail call i32 (...) @t_b()
%11 = tail call i32 @t_d(i8** %4, i32 3)
%12 = tail call i32 (...) @t_b()
%13 = tail call i32 @t_d(i8** %4, i32 4)
%14 = tail call i32 (...) @t_b()
%15 = tail call i32 @t_d(i8** %4, i32 5)
%16 = tail call i32 (...) @t_b()
%17 = tail call i32 @t_d(i8** %4, i32 6)
%18 = tail call i32 (...) @t_c()
ret void
}