#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*/ free(int *);
int /*<<< orphan*/ free_double_char(char **, int);
int /*<<< orphan*/ free_double_int(int **, int);
int /*<<< orphan*/ free_triple_char(char ***, int, int *);
int /*<<< orphan*/ free_triple_int(int ***, int, int *);
void free_ctrl_var(int nb_ctrl, int *nb_var_ctrl, char ***varNameTab,
                   char ***typeTab, char **namesCtrl, int **varSizeTab,
                   int ***twoVarSizeTab) {
  free_triple_char(varNameTab, nb_ctrl, nb_var_ctrl);
  free_triple_char(typeTab, nb_ctrl, nb_var_ctrl);
  free_double_int(varSizeTab, nb_ctrl);
  free_double_char(namesCtrl, nb_ctrl);
  free_triple_int(twoVarSizeTab, nb_ctrl, nb_var_ctrl);
  free(nb_var_ctrl);
}


x86 assembly (clang, -O0):
<free_ctrl_var>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rdx
call   1060 <free_triple_char@plt>
mov    -0x20(%rbp),%rdi
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rdx
call   1060 <free_triple_char@plt>
mov    -0x30(%rbp),%rdi
mov    -0x4(%rbp),%esi
call   1040 <free_double_int@plt>
mov    -0x28(%rbp),%rdi
mov    -0x4(%rbp),%esi
call   1070 <free_double_char@plt>
mov    0x10(%rbp),%rdi
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rdx
call   1050 <free_triple_int@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<free_ctrl_var>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rsi,%rbx
mov    %edi,%ebp
mov    0x40(%rsp),%r13
mov    %rdx,%rdi
mov    %ebp,%esi
mov    %rbx,%rdx
call   1060 <free_triple_char@plt>
mov    %r12,%rdi
mov    %ebp,%esi
mov    %rbx,%rdx
call   1060 <free_triple_char@plt>
mov    %r14,%rdi
mov    %ebp,%esi
call   1040 <free_double_int@plt>
mov    %r15,%rdi
mov    %ebp,%esi
call   1070 <free_double_char@plt>
mov    %r13,%rdi
mov    %ebp,%esi
mov    %rbx,%rdx
call   1050 <free_triple_int@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @free_ctrl_var(i32 %0, i32* %1, i8*** %2, i8*** %3, i8** %4, i32** %5, i32*** %6) {
%8 = alloca i32
%9 = alloca i32*
%10 = alloca i8***
%11 = alloca i8***
%12 = alloca i8**
%13 = alloca i32**
%14 = alloca i32***
store i32 %0, i32* %8
store i32* %1, i32** %9
store i8*** %2, i8**** %10
store i8*** %3, i8**** %11
store i8** %4, i8*** %12
store i32** %5, i32*** %13
store i32*** %6, i32**** %14
%15 = load i8***, i8**** %10
%16 = load i32, i32* %8
%17 = load i32*, i32** %9
%18 = call i32 @free_triple_char(i8*** %15, i32 %16, i32* %17)
%19 = load i8***, i8**** %11
%20 = load i32, i32* %8
%21 = load i32*, i32** %9
%22 = call i32 @free_triple_char(i8*** %19, i32 %20, i32* %21)
%23 = load i32**, i32*** %13
%24 = load i32, i32* %8
%25 = call i32 @free_double_int(i32** %23, i32 %24)
%26 = load i8**, i8*** %12
%27 = load i32, i32* %8
%28 = call i32 @free_double_char(i8** %26, i32 %27)
%29 = load i32***, i32**** %14
%30 = load i32, i32* %8
%31 = load i32*, i32** %9
%32 = call i32 @free_triple_int(i32*** %29, i32 %30, i32* %31)
%33 = load i32*, i32** %9
%34 = call i32 @free(i32* %33)
ret void
}

LLVM IR (-O2):
define void @free_ctrl_var(i32 %0, i32* %1, i8*** %2, i8*** %3, i8** %4, i32** %5, i32*** %6) {
%8 = tail call i32 @free_triple_char(i8*** %2, i32 %0, i32* %1)
%9 = tail call i32 @free_triple_char(i8*** %3, i32 %0, i32* %1)
%10 = tail call i32 @free_double_int(i32** %5, i32 %0)
%11 = tail call i32 @free_double_char(i8** %4, i32 %0)
%12 = tail call i32 @free_triple_int(i32*** %6, i32 %0, i32* %1)
%13 = tail call i32 @free(i32* %1)
ret void
}