LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/tokenList.c
// Function: TDLLInsertFirst
void TDLLInsertFirst (TDLList *L, TOKEN token) {

    TDLLElemPtr tmp = (TDLLElemPtr) malloc(sizeof(struct TDLLElem));       //alokacia pamate
    if (tmp == NULL) {                                 //overenie uspesnosti alokacie
        return;
    }
    tmp->tdata = token;                                    //nakopirovanie dat
    tmp->rptr = L->First;                               //prepojenie ukazatelov
    tmp->lptr = NULL;
    if (L->First == NULL) {                             //zoznam je prazdny
        L->Last = tmp;                                  //posledny prvok bude tmp
    }
    else {                                              //zoznam nie je prazdny
        L->First->lptr = tmp;                           //lavy ukazate prveho bude ukazovat na novy prvok
    }
    L->First = tmp;                                     //prvy prvok bude tmp
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
pushq $0x20
popq %rdi
callq 0x10a0
testq %rax, %rax
je 0x1340
movq %r14, (%rax)
movl %ebp, 0x8(%rax)
movq (%rbx), %rcx
movq %rcx, 0x18(%rax)
andq $0x0, 0x10(%rax)
testq %rcx, %rcx
cmoveq %rbx, %rcx
movq %rax, 0x10(%rcx)
movq %rax, (%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/tokenList.c
// Function: TDLLInsertLast
void TDLLInsertLast(TDLList *L, TOKEN token) {

    TDLLElemPtr tmp = (TDLLElemPtr) malloc(sizeof(struct TDLLElem));       //alokacia pamate
    if (tmp == NULL) {
        return;
    }
    tmp->tdata = token;                                    //nakopirovanie dat
    tmp->rptr = NULL;                                   //pravy ukazatel noveho prvku musi byt NULL
    tmp->lptr = L->Last;                                //lavy ukazatl noveho ukazuje na Last
    if (L->Last == NULL) {                              //zoznam je prazdny
        L->First = tmp;
    }
    else {                                              //zoznam nieje prazdny
        L->Last->rptr = tmp;
    }
    L->Last = tmp;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
pushq $0x20
popq %rdi
callq 0x10a0
testq %rax, %rax
je 0x1383
movq %r14, (%rax)
movl %ebp, 0x8(%rax)
andq $0x0, 0x18(%rax)
movq 0x10(%rbx), %rcx
movq %rcx, 0x10(%rax)
leaq 0x18(%rcx), %rdx
testq %rcx, %rcx
cmoveq %rbx, %rdx
movq %rax, (%rdx)
movq %rax, 0x10(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/tokenList.c
// Function: TDLLDeleteLast
void TDLLDeleteLast (TDLList *L) {

    if (L->First != NULL) {                      //zoznam nie je prazdny
        TDLLElemPtr tmp = L->First;
        if (L->First == L->Act) {
            L->Act = NULL;
        }
        if (L->First == L->Last) {               //zoznam ma jediny prvok
            tmp = L->Last;
            L->First = NULL;
            L->Last = NULL;
        }
        else {                                   //zoznam ma viac prvkov
            tmp = L->Last;
            L->Last = L->Last->lptr;
            L->Last->rptr = NULL;
        }
        free(tmp);
    }
}

// Assembly:
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x1410
cmpq 0x8(%rdi), %rcx
jne 0x13fd
andq $0x0, 0x8(%rdi)
movq 0x10(%rdi), %rax
cmpq %rax, %rcx
je 0x1411
movq 0x10(%rax), %rcx
leaq 0x18(%rcx), %rdx
jmp 0x1416
retq
xorl %ecx, %ecx
movq %rdi, %rdx
andq $0x0, (%rdx)
movq %rcx, 0x10(%rdi)
movq %rax, %rdi
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/tokenList.c
// Function: TDLLPostDelete
void TDLLPostDelete (TDLList *L) {

    if (L->Act && L->Act != L->Last) {              //zoznam musi byt aktivny inde ako na posledom prvku
        TDLLElemPtr tmp = L->Act->rptr;              //tmp bude ukazovat na odstranovany prvok
        if (tmp == L->Last) {                       //mazany prvok je posledny
            L->Act->rptr = NULL;                    //pravy ukazatel aktivneho prvku bude NULL
            L->Last = L->Act;                       //aktivny prvok sa stava poslednym
        }
        else {                                      //mazany prvok nieje posledny
            L->Act->rptr = tmp->rptr;               //pravy ukazatel aktivneho ukazuje vpravo od mazaneho
            tmp->rptr->lptr = L->Act;               //lavy ukazetel vpravo od mazaneho bude ukazovat na aktivny
        }
        free(tmp);                                  //uvolnenie pamati mazaneho prvku
    }
}

// Assembly:
movq 0x8(%rdi), %rcx
testq %rcx, %rcx
je 0x144f
movq 0x10(%rdi), %rdx
cmpq %rdx, %rcx
je 0x144f
movq 0x18(%rcx), %rax
cmpq %rdx, %rax
je 0x1450
movq 0x18(%rax), %rdi
movq %rdi, 0x18(%rcx)
addq $0x10, %rdi
jmp 0x1459
retq
addq $0x10, %rdi
andq $0x0, 0x18(%rcx)
movq %rcx, (%rdi)
movq %rax, %rdi
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/tokenList.c
// Function: TDLLPreDelete
void TDLLPreDelete (TDLList *L) {

    if (L->Act && L->Act != L->First) {             //zoznam musi byt aktivny inde ako na prvom prvku
        TDLLElemPtr tmp = L->Act->lptr;              //tmp bude ukazovat na odstranovany prvok
        if (tmp == L->First) {                      //odstranovan prvok je prvy
            L->Act->lptr = NULL;                    //lavy ukazatel aktivneho prvku bude NULL
            L->First = L->Act;                      //aktivny prvok sa stava prvym
        }
        else {                                      //odstranovany prvok nie je prvy
            L->Act->lptr = tmp->lptr;               //lavy ukazatel aktivneho musi ukazovat vlavo od mazaneho
            tmp->lptr->rptr = L->Act;               //pravy ukazatel vpravo od mazaneho musi ukazovat na aktivny
        }
        free(tmp);                                  //uvolnenie pamati mazaneho prvku
    }
}

// Assembly:
movq 0x8(%rdi), %rcx
testq %rcx, %rcx
je 0x148c
movq (%rdi), %rdx
cmpq %rdx, %rcx
je 0x148c
movq 0x10(%rcx), %rax
cmpq %rdx, %rax
je 0x148d
movq 0x10(%rax), %rdi
movq %rdi, 0x10(%rcx)
addq $0x18, %rdi
jmp 0x1492
retq
andq $0x0, 0x10(%rcx)
movq %rcx, (%rdi)
movq %rax, %rdi
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/tokenList.c
// Function: TDLLPostInsert
void TDLLPostInsert (TDLList *L, TOKEN token) {

    if (L->Act) {                                   //zoznam je aktivny
        TDLLElemPtr tmp = (TDLLElemPtr) malloc(sizeof(struct TDLLElem));   //alokacia pamati
        tmp->tdata = token;                            //kopirovanie dat
        if (L->Act == L->Last) {                    //aktivny prvok je posledny
            L->Act->rptr = tmp;
            tmp->lptr = L->Act;
            tmp->rptr = NULL;
            L->Last = tmp;
        }
        else {                                      //aktivny prvok nie je posledny
            tmp->rptr = L->Act->rptr;               //pravy ukazatel tmp ukazuje vpravo od Act
            tmp->rptr->lptr = tmp;                  //lavy ukazatel prvku vpravo od tmp ukazuje na tmp
            tmp->lptr = L->Act;                     //lavy ukazatel tmp ukazuje na Act
            L->Act->rptr = tmp;                     //pravy ukazatel act ukazuje na tmp
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x8(%rdi), %r15
testq %r15, %r15
je 0x14fd
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
pushq $0x20
popq %rdi
callq 0x10a0
movq %r14, (%rax)
movl %ebp, 0x8(%rax)
leaq 0x18(%r15), %rcx
cmpq 0x10(%rbx), %r15
je 0x14dc
movq (%rcx), %rsi
movq %rsi, 0x18(%rax)
pushq $0x10
popq %rdx
movq %rax, %rdi
jmp 0x14f2
addq $0x10, %rbx
movq %rax, (%rcx)
pushq $0x18
popq %rdx
movq %rax, %rsi
movq %r15, %rdi
xorl %r15d, %r15d
movq %rbx, %rcx
movq %rdi, 0x10(%rsi)
movq %r15, (%rax,%rdx)
movq %rax, (%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/tokenList.c
// Function: TDLLPreInsert
void TDLLPreInsert (TDLList *L, TOKEN token) {

    if (L->Act) {                                   //zoznam je aktivny
        TDLLElemPtr tmp = (TDLLElemPtr) malloc(sizeof(struct TDLLElem));   //alokacia pamati
        tmp->tdata = token;                            //kopirovanie dat
        if (L->Act == L->First) {                    //aktivny prvok je prvy
            tmp->rptr = L->Act;                      //pravy ukazatel tmp ukazuje na act
            tmp->lptr = NULL;                        //lavy ukazatel tmp je NULL
            L->Act->lptr = tmp;                      //lavy ukazatel act ukazuje na tmp
            L->First = tmp;                          //tmp je prvy prvok v zozname
        }
        else {                                      //aktivny prvok nie je prvy
            tmp->rptr = L->Act;                      //pravy ukazatel tmp ukazuje na act
            tmp->lptr = L->Act->lptr;                //lavy ukazatel tmp ukazuje na prvok pred act
            tmp->lptr->rptr = tmp;                   //pravy ukazatel prvku pred act ukazuje na tmp
            L->Act->lptr = tmp;                      //lavy ukazatel act ukazuje na tmp
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x8(%rdi), %r15
testq %r15, %r15
je 0x155b
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
pushq $0x20
popq %rdi
callq 0x10a0
movq %r14, (%rax)
movl %ebp, 0x8(%rax)
cmpq (%rbx), %r15
movq %r15, 0x18(%rax)
je 0x154c
movq %r15, %rbx
movq 0x10(%r15), %r15
addq $0x10, %rbx
movq %r15, 0x10(%rax)
addq $0x18, %r15
jmp 0x1555
andq $0x0, 0x10(%rax)
addq $0x10, %r15
movq %rax, (%r15)
movq %rax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/parser.c
// Function: main
int main() {

    //inicilizacia zoznamu tokenov
    TDLLInitList(&tokens);

    //načitanie prvého tokenu
    token = get_next_token(stdin);
    //nacitanie tokenu do zoznamu tokenov, bude sa volast s kazdym get_next_token
    TDLLInsertLast(&tokens, token);
    // eol(y) na zaciatku -- nepovinne
    if (token.type == t_EOL) {
        rule_eol();
    }

    // Test package main
    if (token.type != t_PACKAGE_MAIN) { error_call(ERR_SYN, &tokens); }
    else { token = get_next_token(stdin); TDLLInsertLast(&tokens, token); }

    // Neterminal <eol> -- nepovinny eol
    if (token.type == t_EOL) {
        rule_eol();
    }

    // Neterminal <def_func> -- Zacne definicia funkcie
    if (token.type != t_FUNC) { error_call(ERR_SYN, &tokens); }
    else {
        token = get_next_token(stdin);
        TDLLInsertLast(&tokens, token);
        def_func();
    }
    goThroughList(&tokens);

    return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0xae11(%rip), %rbx      # 0xc3c0
movq %rbx, %rdi
callq 0x12d4
movq 0xaa1a(%rip), %r14      # 0xbfd8
movq (%r14), %rdi
callq 0x2dbc
movq %rax, 0xae0b(%rip)      # 0xc3d8
movl %edx, 0xae0d(%rip)      # 0xc3e0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1345
movl 0xadfc(%rip), %eax      # 0xc3e0
cmpl $0x2f, %eax
jne 0x15f4
callq 0x2b16
movl 0xadec(%rip), %eax      # 0xc3e0
cmpl $0x1b, %eax
jne 0x161f
movq (%r14), %rdi
callq 0x2dbc
movq %rax, 0xadd0(%rip)      # 0xc3d8
movl %edx, 0xadd2(%rip)      # 0xc3e0
leaq 0xadab(%rip), %rdi      # 0xc3c0
movq %rax, %rsi
callq 0x1345
jmp 0x162e
leaq 0xad9a(%rip), %rsi      # 0xc3c0
pushq $0x2
popq %rdi
callq 0x3ac4
movl 0xadac(%rip), %eax      # 0xc3e0
cmpl $0x2f, %eax
jne 0x1644
callq 0x2b16
movl 0xad9c(%rip), %eax      # 0xc3e0
cmpl $0x1c, %eax
jne 0x1674
movq (%r14), %rdi
callq 0x2dbc
movq %rax, 0xad80(%rip)      # 0xc3d8
movl %edx, 0xad82(%rip)      # 0xc3e0
leaq 0xad5b(%rip), %rdi      # 0xc3c0
movq %rax, %rsi
callq 0x1345
callq 0x1699
jmp 0x1683
leaq 0xad45(%rip), %rsi      # 0xc3c0
pushq $0x2
popq %rdi
callq 0x3ac4
leaq 0xad36(%rip), %rdi      # 0xc3c0
callq 0x6fda
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/parser.c
// Function: rule_func_retlist_body
void rule_func_retlist_body() {
    switch (token.type) {
        //REQUIRED_RETURN
        case t_LEFT_BRACKET:
            token = get_next_token(stdin);
            TDLLInsertLast(&tokens, token);

            rule_func_body();

            break;

            //OPTIONAL_RETURN
        case t_BRACES_L:
            global_brace_count++;
            token = get_next_token(stdin);
            TDLLInsertLast(&tokens, token);
            if (token.type != t_EOL) { error_call(ERR_SYN, &tokens); }
            else { token = get_next_token(stdin); TDLLInsertLast(&tokens, token); }

            // Neterminál stat (STATEMENT) -- Vyjadruje možné príkazy v tele funkcie
            rule_stat();

    }
}

// Assembly:
pushq %rbx
movl 0xaba1(%rip), %eax      # 0xc3e0
cmpl $0x34, %eax
je 0x187e
cmpl $0x6, %eax
jne 0x18de
movq 0xa784(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
callq 0x2dbc
movq %rax, 0xab75(%rip)      # 0xc3d8
movl %edx, 0xab77(%rip)      # 0xc3e0
leaq 0xab50(%rip), %rdi      # 0xc3c0
movq %rax, %rsi
callq 0x1345
popq %rbx
jmp 0x1944
incl 0xab38(%rip)            # 0xc3bc
movq 0xa74d(%rip), %rbx      # 0xbfd8
movq (%rbx), %rdi
callq 0x2dbc
movq %rax, 0xab3e(%rip)      # 0xc3d8
movl %edx, 0xab40(%rip)      # 0xc3e0
leaq 0xab19(%rip), %rdi      # 0xc3c0
movq %rax, %rsi
callq 0x1345
cmpl $0x2f, 0xab2a(%rip)     # 0xc3e0
jne 0x18e0
movq (%rbx), %rdi
callq 0x2dbc
movq %rax, 0xab11(%rip)      # 0xc3d8
movl %edx, 0xab13(%rip)      # 0xc3e0
leaq 0xaaec(%rip), %rdi      # 0xc3c0
movq %rax, %rsi
callq 0x1345
jmp 0x18ef
popq %rbx
retq
leaq 0xaad9(%rip), %rsi      # 0xc3c0
pushq $0x2
popq %rdi
callq 0x3ac4
popq %rbx
jmp 0x1a25
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/parser.c
// Function: rule_func_body
void rule_func_body() {
    //pravidlo return_type
    rule_return_type();

    //V prípade, že nám nepríde ukončovacia zátvorka zoznamu návratových typov, ERROR.

    if (token.type != t_RIGHT_BRACKET) { error_call(ERR_SYN, &tokens); }
    else { token = get_next_token(stdin); TDLLInsertLast(&tokens, token); }

    // Token otváracej množinovej zátvorky pre začiatok tela funckie

    if (token.type != t_BRACES_L) { error_call(ERR_SYN, &tokens); }
    else {
        global_brace_count++;
        token = get_next_token(stdin);
        TDLLInsertLast(&tokens, token);
    }

    // Nutný EOL po otváracej množinovej zátvorke
    if (token.type != t_EOL) { error_call(ERR_SYN, &tokens); }
    else { token = get_next_token(stdin); TDLLInsertLast(&tokens, token); }


    // Neterminál EOL pre možné príkazy v tele funckie
    rule_stat();

}

// Assembly:
pushq %rax
callq 0x18f5
cmpl $0x7, 0xaa8f(%rip)      # 0xc3e0
jne 0x1980
movq 0xa67e(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
callq 0x2dbc
movq %rax, 0xaa6f(%rip)      # 0xc3d8
movl %edx, 0xaa71(%rip)      # 0xc3e0
leaq 0xaa4a(%rip), %rdi      # 0xc3c0
movq %rax, %rsi
callq 0x1345
jmp 0x198f
leaq 0xaa39(%rip), %rsi      # 0xc3c0
pushq $0x2
popq %rdi
callq 0x3ac4
cmpl $0x34, 0xaa4a(%rip)     # 0xc3e0
jne 0x19cb
incl 0xaa1e(%rip)            # 0xc3bc
movq 0xa633(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
callq 0x2dbc
movq %rax, 0xaa24(%rip)      # 0xc3d8
movl %edx, 0xaa26(%rip)      # 0xc3e0
leaq 0xa9ff(%rip), %rdi      # 0xc3c0
movq %rax, %rsi
callq 0x1345
jmp 0x19da
leaq 0xa9ee(%rip), %rsi      # 0xc3c0
pushq $0x2
popq %rdi
callq 0x3ac4
cmpl $0x2f, 0xa9ff(%rip)     # 0xc3e0
jne 0x1a10
movq 0xa5ee(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
callq 0x2dbc
movq %rax, 0xa9df(%rip)      # 0xc3d8
movl %edx, 0xa9e1(%rip)      # 0xc3e0
leaq 0xa9ba(%rip), %rdi      # 0xc3c0
movq %rax, %rsi
callq 0x1345
jmp 0x1a1f
leaq 0xa9a9(%rip), %rsi      # 0xc3c0
pushq $0x2
popq %rdi
callq 0x3ac4
popq %rax
jmp 0x1a25
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/parser.c
// Function: rule_params
void rule_params() {
    // nastavenie flagu na true
    no_id_in_params_flag = true;
    switch (token.type) {
        case t_IDENTIFIER:
            token = get_next_token(stdin);
            TDLLInsertLast(&tokens, token);
            //kontrola, ci je správny typ
            rule_type();
            //Ak nasleduju dalsie parametre
            rule_params_n();
            break;

        // koniec zoznamu ukoncovacou zatvorkou
        case t_RIGHT_BRACKET:
            token = get_next_token(stdin);
            TDLLInsertLast(&tokens, token);
            break;
    }
    no_id_in_params_flag = false;
}

// Assembly:
pushq %rax
movb $0x1, 0xa146(%rip)      # 0xc3b8
movl 0xa168(%rip), %eax      # 0xc3e0
cmpl $0x7, %eax
je 0x22b9
cmpl $0x13, %eax
jne 0x22e4
movq 0x9d4f(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
callq 0x2dbc
movq %rax, 0xa140(%rip)      # 0xc3d8
movl %edx, 0xa142(%rip)      # 0xc3e0
leaq 0xa11b(%rip), %rdi      # 0xc3c0
movq %rax, %rsi
callq 0x1345
callq 0x28b4
callq 0x22ed
jmp 0x22e4
movq 0x9d18(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
callq 0x2dbc
movq %rax, 0xa109(%rip)      # 0xc3d8
movl %edx, 0xa10b(%rip)      # 0xc3e0
leaq 0xa0e4(%rip), %rdi      # 0xc3c0
movq %rax, %rsi
callq 0x1345
movb $0x0, 0xa0cd(%rip)      # 0xc3b8
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/parser.c
// Function: rule_params_n
void rule_params_n() {
    //ak pride zatvorka -- koniec
    if (token.type == t_RIGHT_BRACKET) {
        token = get_next_token(stdin);
        TDLLInsertLast(&tokens, token);
        return;
    }

    // prva musi prist ciarka ako oddelovac dalsieho parametra
    if (token.type != t_COMMA) { error_call(ERR_SYN, &tokens); }
    else { token = get_next_token(stdin); TDLLInsertLast(&tokens, token); }

    // kontrola, ci po ciarke pride id
    if (token.type != t_IDENTIFIER) { error_call(ERR_SYN, &tokens); }
        // ak pride id, pokracujeme typom a nasledne volame params_n znova
    else {
        token = get_next_token(stdin);
        TDLLInsertLast(&tokens, token);
        //kontrola, ci je typ premennej správny
        rule_type();
        // rekurzivne volanie params_n
        rule_params_n();
    }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq 0x9ce0(%rip), %r14      # 0xbfd8
leaq 0xa0c1(%rip), %rbx      # 0xc3c0
pushq $0x2
popq %rbp
movl 0xa0d8(%rip), %eax      # 0xc3e0
cmpl $0x5, %eax
je 0x231e
cmpl $0x7, %eax
je 0x2381
movl %ebp, %edi
movq %rbx, %rsi
callq 0x3ac4
jmp 0x233e
movq (%r14), %rdi
callq 0x2dbc
movq %rax, 0xa0ab(%rip)      # 0xc3d8
movl %edx, 0xa0ad(%rip)      # 0xc3e0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1345
cmpl $0x13, 0xa09b(%rip)     # 0xc3e0
jne 0x236e
movq (%r14), %rdi
callq 0x2dbc
movq %rax, 0xa082(%rip)      # 0xc3d8
movl %edx, 0xa084(%rip)      # 0xc3e0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1345
callq 0x28b4
jmp 0x2302
leaq 0xa04b(%rip), %rsi      # 0xc3c0
pushq $0x2
popq %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x3ac4
movq (%r14), %rdi
callq 0x2dbc
movq %rax, 0xa048(%rip)      # 0xc3d8
movl %edx, 0xa04a(%rip)      # 0xc3e0
leaq 0xa023(%rip), %rdi      # 0xc3c0
movq %rax, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x1345
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/parser.c
// Function: rule_func_params
void rule_func_params() {
   //Token pravá zátvorka, koniec
    if (token.type == t_RIGHT_BRACKET) {
        token = get_next_token(stdin);
        TDLLInsertLast(&tokens, token);
        return;
    }
    else {
        // Možné typy vo vstupnych parametroch funckie
        if (token.type != t_IDENTIFIER && token.type != t_FLOAT && token.type != t_STRING &&
            token.type != t_INT_NON_ZERO && token.type != t_INT_ZERO) { error_call(ERR_SYN, &tokens); }
        token = get_next_token(stdin);
        TDLLInsertLast(&tokens, token);
        //rekurzivne func_params_NEXT, bud budu dalsie typy alebo koniec
        rule_func_params_n();
    }
}

// Assembly:
pushq %rax
movl 0xa030(%rip), %eax      # 0xc3e0
cmpq $0x2b, %rax
ja 0x2429
movabsq $0xa00000b0000, %rcx    # imm = 0xA00000B0000
btq %rax, %rcx
jae 0x23f7
movq 0x9c0b(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
callq 0x2dbc
movq %rax, 0x9ffc(%rip)      # 0xc3d8
movl %edx, 0x9ffe(%rip)      # 0xc3e0
leaq 0x9fd7(%rip), %rdi      # 0xc3c0
movq %rax, %rsi
callq 0x1345
popq %rax
jmp 0x243a
cmpq $0x7, %rax
jne 0x2429
movq 0x9bd4(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
callq 0x2dbc
movq %rax, 0x9fc5(%rip)      # 0xc3d8
movl %edx, 0x9fc7(%rip)      # 0xc3e0
leaq 0x9fa0(%rip), %rdi      # 0xc3c0
movq %rax, %rsi
popq %rax
jmp 0x1345
leaq 0x9f90(%rip), %rsi      # 0xc3c0
pushq $0x2
popq %rdi
callq 0x3ac4
jmp 0x23c6
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/parser.c
// Function: rule_func_params_n
void rule_func_params_n() {
    if (token.type == t_RIGHT_BRACKET) { return; }

    else {
        // Za prechádzajúcim typom musí prísť čiarka napr. (10 , ...)
        if (token.type != t_COMMA) { error_call(ERR_SYN, &tokens); }
        token = get_next_token(stdin);
        TDLLInsertLast(&tokens, token);

        if (token.type != t_IDENTIFIER && token.type != t_FLOAT && token.type != t_STRING &&
            token.type != t_INT_NON_ZERO && token.type != t_INT_ZERO) { error_call(ERR_SYN, &tokens); }
        token = get_next_token(stdin);
        TDLLInsertLast(&tokens, token);
        //rekurzivne volanie, bud dalsie typy alebo koniec
        rule_func_params_n();

    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x9b90(%rip), %r14      # 0xbfd8
leaq 0x9f71(%rip), %rbx      # 0xc3c0
pushq $0x2
popq %rbp
movabsq $0xa00000b0000, %r15    # imm = 0xA00000B0000
movl 0x9f7e(%rip), %eax      # 0xc3e0
cmpl $0x5, %eax
je 0x2476
cmpl $0x7, %eax
je 0x24d6
movl %ebp, %edi
movq %rbx, %rsi
callq 0x3ac4
movq (%r14), %rdi
callq 0x2dbc
movq %rax, 0x9f53(%rip)      # 0xc3d8
movl %edx, 0x9f55(%rip)      # 0xc3e0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1345
movl 0x9f44(%rip), %eax      # 0xc3e0
cmpq $0x2b, %rax
ja 0x24ca
btq %rax, %r15
jae 0x24ca
movq (%r14), %rdi
callq 0x2dbc
movq %rax, 0x9f21(%rip)      # 0xc3d8
movl %edx, 0x9f23(%rip)      # 0xc3e0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1345
jmp 0x245c
movl %ebp, %edi
movq %rbx, %rsi
callq 0x3ac4
jmp 0x24a8
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/parser.c
// Function: rule_id_n
void rule_id_n() {
    switch (token.type) {
        // za predchádzajúcim identifikátorom musí prísť čiarka
        case t_COMMA:
            token = get_next_token(stdin);
            TDLLInsertLast(&tokens, token);
            //token ID
            if (token.type != t_IDENTIFIER) { error_call(ERR_SYN, &tokens); }
            else { token = get_next_token(stdin); TDLLInsertLast(&tokens, token); }


            //rekurzivne volanie pre dalsie mozne IDs, ak nepridu, koniec
            rule_id_n();
            break;
            //ak pride =, koniec
        case t_ASSIGN:
            break;
            //ak pride :=, koniec, NEPODPORUJEME, ROZSIRENIE MULTI_VAL
        case t_DEFINITION_2:
            break;
            // hocico ine, ERROR
        default:
            error_call(ERR_SYN, &tokens);
    }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq 0x9aec(%rip), %r14      # 0xbfd8
leaq 0x9ecd(%rip), %rbx      # 0xc3c0
pushq $0x2
popq %rbp
movl 0x9ee4(%rip), %eax      # 0xc3e0
cmpl $0x5, %eax
jne 0x2558
movq (%r14), %rdi
callq 0x2dbc
movq %rax, 0x9ec8(%rip)      # 0xc3d8
movl %edx, 0x9eca(%rip)      # 0xc3e0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1345
cmpl $0x13, 0x9eb8(%rip)     # 0xc3e0
jne 0x254c
movq (%r14), %rdi
callq 0x2dbc
movq %rax, 0x9e9f(%rip)      # 0xc3d8
movl %edx, 0x9ea1(%rip)      # 0xc3e0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1345
jmp 0x24f6
movl %ebp, %edi
movq %rbx, %rsi
callq 0x3ac4
jmp 0x24f6
cmpl $0x3, %eax
je 0x2562
cmpl $0x32, %eax
jne 0x2567
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x9e52(%rip), %rsi      # 0xc3c0
pushq $0x2
popq %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x3ac4
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/parser.c
// Function: rule_type
void rule_type() {
    // Priradenie datoveho typu -
    switch (token.type) {
        case t_FLOAT64:
            token = get_next_token(stdin);
            TDLLInsertLast(&tokens, token);
            break;
        case t_INT_ID:
            token = get_next_token(stdin);
            TDLLInsertLast(&tokens, token);
            break;
        case t_INT_ZERO:
            token = get_next_token(stdin);
            TDLLInsertLast(&tokens, token);
            break;
        case t_STRING_ID:
            token = get_next_token(stdin);
            TDLLInsertLast(&tokens, token);
            break;
        case t_IDENTIFIER:
            if (no_id_in_params_flag == true) { error_call(ERR_SYN, &tokens); }
            token = get_next_token(stdin);
            TDLLInsertLast(&tokens, token);
            break;
        default:
            error_call(ERR_SYN, &tokens);
    }
}

// Assembly:
pushq %rax
movl 0x9b25(%rip), %eax      # 0xc3e0
addl $-0x10, %eax
cmpl $0x8, %eax
ja 0x28ff
leaq 0x57de(%rip), %rcx      # 0x80a8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x96fe(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
callq 0x2dbc
movq %rax, 0x9aef(%rip)      # 0xc3d8
movl %edx, 0x9af1(%rip)      # 0xc3e0
leaq 0x9aca(%rip), %rdi      # 0xc3c0
movq %rax, %rsi
popq %rax
jmp 0x1345
leaq 0x9aba(%rip), %rsi      # 0xc3c0
pushq $0x2
popq %rdi
popq %rax
jmp 0x3ac4
cmpb $0x1, 0x9aa2(%rip)      # 0xc3b8
jne 0x28d3
leaq 0x9aa1(%rip), %rsi      # 0xc3c0
pushq $0x2
popq %rdi
callq 0x3ac4
jmp 0x28d3
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/parser.c
// Function: rule_return_type_n
void rule_return_type_n() {
    no_id_in_params_flag = true;
    switch (token.type) {
        case t_COMMA:
            // Musí prís čiarka za predchadzajúcim návratovým typom
            token = get_next_token(stdin);
            TDLLInsertLast(&tokens, token);
            rule_type();
            rule_return_type_n();
            break;

            //prava zatvorka, koniec
        case t_RIGHT_BRACKET:
            break;

        default:
            error_call(ERR_SYN, &tokens);
    }
    no_id_in_params_flag = false;
}

// Assembly:
movb $0x1, 0x9a26(%rip)      # 0xc3b8
movl 0x9a48(%rip), %eax      # 0xc3e0
cmpl $0x7, %eax
je 0x29ed
pushq %rax
cmpl $0x5, %eax
jne 0x29da
movq 0x962e(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
callq 0x2dbc
movq %rax, 0x9a1f(%rip)      # 0xc3d8
movl %edx, 0x9a21(%rip)      # 0xc3e0
leaq 0x99fa(%rip), %rdi      # 0xc3c0
movq %rax, %rsi
callq 0x1345
callq 0x28b4
callq 0x298b
jmp 0x29e9
leaq 0x99df(%rip), %rsi      # 0xc3c0
pushq $0x2
popq %rdi
callq 0x3ac4
addq $0x8, %rsp
movb $0x0, 0x99c4(%rip)      # 0xc3b8
retq
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/parser.c
// Function: rule_eol
void rule_eol() {

    //Zaplata pre PRAVE ZATVORKY
    if (token.type == t_BRACES_R) { return; }

    token = get_next_token(stdin);
    TDLLInsertLast(&tokens, token);

    switch (token.type) {
        case t_EOL:
            rule_eol();
            break;

        default:
            if (between_def == true) {
                if (token.type != t_FUNC && token.type != t_EOF) {
                    error_call(ERR_SYN, &tokens);
                }
            }
            break;
    }
}

// Assembly:
cmpl $0x33, 0x98c3(%rip)     # 0xc3e0
jne 0x2b20
retq
pushq %r14
pushq %rbx
pushq %rax
movq 0x94ad(%rip), %r14      # 0xbfd8
leaq 0x988e(%rip), %rbx      # 0xc3c0
movq (%r14), %rdi
callq 0x2dbc
movq %rax, 0x9897(%rip)      # 0xc3d8
movl %edx, 0x9899(%rip)      # 0xc3e0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1345
movl 0x9888(%rip), %eax      # 0xc3e0
cmpl $0x2f, %eax
je 0x2b32
addl $-0x1e, %eax
cmpl $-0x3, %eax
leaq 0x8(%rsp), %rsp
popq %rbx
popq %r14
ja 0x2b1f
cmpb $0x0, 0x9847(%rip)      # 0xc3bb
je 0x2b1f
leaq 0x9843(%rip), %rsi      # 0xc3c0
pushq $0x2
popq %rdi
jmp 0x3ac4
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/parser.c
// Function: optional_return
void optional_return(){

    // Nic nevraciame, cize za RETURNOM musí ísť eol
    if (token.type != t_EOL) { error_call(ERR_SEM_RETURN, &tokens); }
    else { token = get_next_token(stdin); TDLLInsertLast(&tokens, token); }

    // Možné eoly na konci
    if (token.type == t_EOL) {
        rule_eol();
    }
}

// Assembly:
pushq %rax
cmpl $0x2f, 0x9853(%rip)     # 0xc3e0
jne 0x2bbc
movq 0x9442(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
callq 0x2dbc
movq %rax, 0x9833(%rip)      # 0xc3d8
movl %edx, 0x9835(%rip)      # 0xc3e0
leaq 0x980e(%rip), %rdi      # 0xc3c0
movq %rax, %rsi
callq 0x1345
jmp 0x2bcb
leaq 0x97fd(%rip), %rsi      # 0xc3c0
pushq $0x6
popq %rdi
callq 0x3ac4
cmpl $0x2f, 0x980e(%rip)     # 0xc3e0
jne 0x2bda
popq %rax
jmp 0x2b16
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/parser.c
// Function: required_return
void required_return() {
    TDLLInitList(&psa_list);

    if (token.type == t_EOL) {error_call(ERR_SEM_RETURN, &tokens);}
    else {

        while (token.type != t_COMMA && token.type != t_EOL) {
            if ((token.type == t_PLUS)
                || (token.type == t_MINUS)
                || (token.type == t_DIVIDE)
                || (token.type == t_MULTIPLY)
                || (token.type == t_RIGHT_BRACKET)
                || (token.type == t_LEFT_BRACKET)
                || (token.type == t_LESS)
                || (token.type == t_LESSOREQUAL)
                || (token.type == t_GREATER)
                || (token.type == t_GREATEROREQUAL)
                || (token.type == t_EQUAL)
                || (token.type == t_NOT_EQUAL)
                || (token.type == t_IDENTIFIER)
                || (token.type == t_FLOAT)
                || (token.type == t_INT_NON_ZERO)
                || (token.type == t_INT_ZERO)
                || (token.type == t_STRING)){

                TDLLInsertLast(&psa_list, token);
                token = get_next_token(stdin);
                TDLLInsertLast(&tokens, token);

            } else { error_call(ERR_SYN, &tokens); }
        }

        evaluation(&psa_list, &tokens);
        TDLLDisposeList(&psa_list);

    }


    // Ak za returnom nasledujú dalsie return výrazy
    rule_exp_n();



    //mozné EOLy sa returnom
    if (token.type == t_EOL) {
        rule_eol();
    }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x97fa(%rip), %rdi      # 0xc3e8
callq 0x12d4
movl 0x97e7(%rip), %edx      # 0xc3e0
cmpl $0x2f, %edx
jne 0x2c12
leaq 0x97bb(%rip), %rsi      # 0xc3c0
pushq $0x6
popq %rdi
callq 0x3ac4
jmp 0x2cb3
leaq 0x97a7(%rip), %rbx      # 0xc3c0
pushq $0x2
popq %rbp
movabsq $0xa03c00b0fc6, %r15    # imm = 0xA03C00B0FC6
leaq 0x97bb(%rip), %r14      # 0xc3e8
movq 0x93a4(%rip), %r12      # 0xbfd8
movabsq $0x800000000020, %r13   # imm = 0x800000000020
cmpl $0x2f, %edx
ja 0x2c89
movl %edx, %eax
btq %rax, %r15
jae 0x2c83
movq 0x9786(%rip), %rsi      # 0xc3d8
movq %r14, %rdi
callq 0x1345
movq (%r12), %rdi
callq 0x2dbc
movq %rax, 0x976e(%rip)      # 0xc3d8
movl %edx, 0x9770(%rip)      # 0xc3e0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1345
movl 0x975f(%rip), %edx      # 0xc3e0
jmp 0x2c3e
btq %rax, %r13
jb 0x2c95
movl %ebp, %edi
movq %rbx, %rsi
callq 0x3ac4
jmp 0x2c7b
leaq 0x974c(%rip), %rbx      # 0xc3e8
leaq 0x971d(%rip), %rsi      # 0xc3c0
movq %rbx, %rdi
callq 0x7282
movq %rbx, %rdi
callq 0x12e0
callq 0x29f5
cmpl $0x2f, 0x9721(%rip)     # 0xc3e0
jne 0x2cd4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2b16
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/scanner.c
// Function: load_c
void load_c(FILE* text)
{
    current_char = getc(text);
    current_token[current_token_position] = current_char;
    current_token_position++;
    current_token[current_token_position] = 0x00;
}

// Assembly:
pushq %rax
callq 0x10f0
movb %al, 0x9766(%rip)       # 0xc484
movslq 0x96ef(%rip), %rcx      # 0xc414
leaq 0x96f4(%rip), %rdx      # 0xc420
movb %al, (%rcx,%rdx)
leaq 0x1(%rcx), %rax
movl %eax, 0x96db(%rip)      # 0xc414
movb $0x0, 0x1(%rcx,%rdx)
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/scanner.c
// Function: end_token
void end_token(int type, TOKEN* token)
{
    alloc(current_token_position+1, token);
    strcpy(token->lex, current_token);
    token->type = type;
    delete_string();
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
movl 0x9686(%rip), %edi      # 0xc414
incl %edi
callq 0x2d6f
movq (%rbx), %rdi
leaq 0x9681(%rip), %rsi      # 0xc420
callq 0x1040
movl %ebp, 0x8(%rbx)
movb $0x0, 0x9672(%rip)      # 0xc420
andl $0x0, 0x965f(%rip)      # 0xc414
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/symtable.c
// Function: BSTSearchGlobal
bool BSTSearchGlobal (tBSTNodePtrGlobal RootPtr, char* name,functionData *Content)	{

	if (RootPtr != NULL)
	{
		if ((strcmp(name, RootPtr->Name) < 0))
		{
			return BSTSearchGlobal(RootPtr->LPtr,name,Content);
				
		}
		else if (strcmp(name, RootPtr->Name) > 0)
		{
			return BSTSearchGlobal(RootPtr->RPtr,name,Content);
		}
		else
		{
			*(Content) = RootPtr->content;
			return true;								
		}
	}
	else 
	{

		return false;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
testq %rbx, %rbx
je 0x3bca
movq (%rbx), %rsi
movq %r15, %rdi
callq 0x1080
movl $0x1010, %ecx           # imm = 0x1010
testl %eax, %eax
js 0x3bb3
movl $0x1018, %ecx           # imm = 0x1018
je 0x3bb9
movq (%rbx,%rcx), %rbx
jmp 0x3b93
leaq 0x8(%rbx), %rsi
movl $0x1008, %edx           # imm = 0x1008
movq %r14, %rdi
callq 0x1090
testq %rbx, %rbx
setne %al
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/symtable.c
// Function: BSTInsertGlobal
void BSTInsertGlobal (tBSTNodePtrGlobal* RootPtr, char* name, functionData Content)	{

    
	if (*RootPtr == NULL)
	{
		*RootPtr = malloc(sizeof (struct tBSTNodeGlobal));	
		(*RootPtr)->Name = name;
		(*RootPtr)->content = Content;
		(*RootPtr)->LPtr = NULL;
		(*RootPtr)->RPtr = NULL;	
	}

	else if (strcmp(name, (*RootPtr)->Name) == 0)
	{														
		(*RootPtr)->content = Content;

	}
	else if (strcmp(name, (*RootPtr)->Name) < 0)     	
	{
		BSTInsertGlobal(&(*RootPtr)->LPtr,name,Content);
	}
	else if (strcmp(name, (*RootPtr)->Name) > 0)
	{
		BSTInsertGlobal(&(*RootPtr)->RPtr,name,Content);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2018, %rsp           # imm = 0x2018
movq %rsi, %r14
movq %rdi, %r12
leaq 0x2050(%rsp), %rbx
leaq 0x8(%rsp), %r13
leaq 0x1010(%rsp), %rbp
movq (%r12), %r15
testq %r15, %r15
je 0x3c41
movq (%r15), %rsi
movq %r14, %rdi
callq 0x1080
testl %eax, %eax
je 0x3c73
movq %r13, %rdi
js 0x3c22
movq %rbp, %rdi
notl %eax
shrl $0x1f, %eax
leaq (%r15,%rax,8), %r12
addq $0x1010, %r12           # imm = 0x1010
movl $0x1008, %edx           # imm = 0x1008
movq %rbx, %rsi
callq 0x1090
jmp 0x3c02
movl $0x1020, %edi           # imm = 0x1020
callq 0x10a0
movq %rax, %r15
movq %rax, (%r12)
movq %r14, (%rax)
leaq 0x8(%rax), %rdi
movl $0x1008, %edx           # imm = 0x1008
movq %rbx, %rsi
callq 0x1090
xorps %xmm0, %xmm0
movups %xmm0, 0x1010(%r15)
jmp 0x3c87
addq $0x8, %r15
movl $0x1008, %edx           # imm = 0x1008
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1090
addq $0x2018, %rsp           # imm = 0x2018
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/symtable.c
// Function: BSTDisposeGlobal
void BSTDisposeGlobal (tBSTNodePtrGlobal *RootPtr) {

	if (*RootPtr != NULL)					
	{
		BSTDisposeGlobal(&(*RootPtr)->LPtr);
		BSTDisposeGlobal(&(*RootPtr)->RPtr);
		free(*RootPtr);
		*RootPtr = NULL;
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x3cca
addq $0x1010, %rdi           # imm = 0x1010
callq 0x3c99
movl $0x1018, %edi           # imm = 0x1018
addq (%rbx), %rdi
callq 0x3c99
movq (%rbx), %rdi
callq 0x1030
andq $0x0, (%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/symtable.c
// Function: BSTSearchLocal
bool BSTSearchLocal (tBSTNodePtrLocal RootPtr, char* name, int *Type, char *Data)    {


    if (RootPtr != NULL && RootPtr->Name != NULL)
    {
        if ((strcmp(name, RootPtr->Name) < 0))
        {
            return BSTSearchLocal(RootPtr->LPtr,name, Type, Data);
                
        }
        else if (strcmp(name, RootPtr->Name) > 0)
        {
            return BSTSearchLocal(RootPtr->RPtr,name, Type, Data);
        }
        else
        {
            *Type = RootPtr->Type;
            //*Data = *RootPtr->Data;
            return true;
        }
    }
    else
    {
        return false;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
pushq $0x18
popq %r12
pushq $0x20
popq %r13
testq %r14, %r14
je 0x3d12
movq (%r14), %rsi
testq %rsi, %rsi
je 0x3d12
movq %r15, %rdi
callq 0x1080
movq %r12, %rcx
testl %eax, %eax
js 0x3d0c
movq %r13, %rcx
je 0x3d1e
movq (%r14,%rcx), %r14
jmp 0x3ceb
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl 0x8(%r14), %eax
movl %eax, (%rbx)
movb $0x1, %al
jmp 0x3d14
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/symtable.c
// Function: BSTInsertLocal
void BSTInsertLocal (tBSTNodePtrLocal* RootPtr, char * Name, int *Type, char *Data)	{


	if (*RootPtr == NULL){
		*RootPtr = malloc(sizeof (struct tBSTNodeLocal));	
		(*RootPtr)->Name = Name;
		(*RootPtr)->LPtr = NULL;
		(*RootPtr)->RPtr = NULL;	
		(*RootPtr)->Type = *Type;
		(*RootPtr)->Data = Data;
	
	}else if (strcmp(Name, (*RootPtr)->Name) == 0)
	{
	}else if (strcmp(Name, (*RootPtr)->Name) < 0)     	
	{
	//	printf("Vlkadam dolava\n");
		BSTInsertLocal(&(*RootPtr)->LPtr,Name, Type, Data);
	}else if (strcmp(Name, (*RootPtr)->Name) > 0)
	{
	//	printf("Vkladam doprava\n");
		BSTInsertLocal(&(*RootPtr)->RPtr,Name, Type, Data);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq (%r12), %r13
testq %r13, %r13
je 0x3d68
movq (%r13), %rsi
movq %r15, %rdi
callq 0x1080
testl %eax, %eax
je 0x3d88
notl %eax
shrl $0x1f, %eax
leaq 0x18(,%rax,8), %r12
addq %r13, %r12
jmp 0x3d3d
pushq $0x28
popq %rdi
callq 0x10a0
movq %rax, (%r12)
movq %r15, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rax)
movl (%r14), %ecx
movl %ecx, 0x8(%rax)
movq %rbx, 0x10(%rax)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/symtable.c
// Function: ReplaceByRightmost
void ReplaceByRightmost (tBSTNodePtrLocal PtrReplaced, tBSTNodePtrLocal *RootPtr) {

	if(*RootPtr != NULL && PtrReplaced != NULL){
		if((*RootPtr)->RPtr != NULL){ 
			// najde najpravejsi uzol
			ReplaceByRightmost(PtrReplaced, &(*RootPtr)->RPtr);
		}else{
			PtrReplaced->Name = (*RootPtr)->Name;
			PtrReplaced->Type = (*RootPtr)->Type;
			PtrReplaced->Data = (*RootPtr)->Data;
			BSTDelete(RootPtr, (*RootPtr)->Name);
		}
	}else return;
}

// Assembly:
testq %rdi, %rdi
je 0x3dd7
movq (%rsi), %rdx
testq %rdx, %rdx
je 0x3dd7
movq %rsi, %rax
movq %rdx, %rcx
leaq 0x20(%rdx), %rsi
movq 0x20(%rdx), %rdx
testq %rdx, %rdx
jne 0x3d9a
movq (%rcx), %rcx
movq %rcx, (%rdi)
movq (%rax), %rcx
movl 0x8(%rcx), %edx
movl %edx, 0x8(%rdi)
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rdi)
movq (%rax), %rcx
movq (%rcx), %rsi
movq %rax, %rdi
jmp 0x3dd8
retq
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/symtable.c
// Function: BSTDelete
void BSTDelete (tBSTNodePtrLocal *RootPtr, char *K) {

	if(*RootPtr != NULL){ // nemame prazdny uzol
		if((*RootPtr)->Name > K){ // kluc je vlavo 
			BSTDelete(&(*RootPtr)->LPtr, K);
		}else if((*RootPtr)->Name < K){ // kluc je vpravo
			BSTDelete(&(*RootPtr)->RPtr, K); 
		}else if((*RootPtr)->Name == K){ // ak sme nasli uzol

			if((*RootPtr)->LPtr != NULL && (*RootPtr)->RPtr != NULL){ // 2 podstromy
					ReplaceByRightmost(*RootPtr, &(*RootPtr)->LPtr);
			}else if((*RootPtr)->LPtr != NULL && (*RootPtr)->RPtr == NULL){ // lavy 
				tBSTNodePtrLocal temp_node;//funguje
				temp_node = (*RootPtr)->LPtr; // ulozime odstranovany uzol
				free(*RootPtr);
				*RootPtr = temp_node;

			}else if((*RootPtr)->RPtr != NULL && (*RootPtr)->LPtr == NULL){ // pravy
				tBSTNodePtrLocal temp_node; // funguje
				temp_node = (*RootPtr)->RPtr;
				free(*RootPtr);
				*RootPtr = temp_node;

			}else{ // ziadny podstrom funguje
				free(*RootPtr);
				*RootPtr = NULL;
			}
		}
	}else{
		return;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
pushq $0x18
popq %rax
pushq $0x20
popq %rcx
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3e40
movq %rax, %rdx
cmpq %rsi, (%rdi)
ja 0x3dfb
movq %rcx, %rdx
jae 0x3e03
addq %rdx, %rdi
movq %rdi, %rbx
jmp 0x3de6
movq 0x18(%rdi), %r15
movq 0x20(%rdi), %r14
testq %r15, %r15
je 0x3e23
testq %r14, %r14
je 0x3e32
leaq 0x18(%rdi), %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x3d92
callq 0x1030
testq %r14, %r14
je 0x3e3c
movq %r14, (%rbx)
jmp 0x3e40
callq 0x1030
movq %r15, (%rbx)
jmp 0x3e40
andq $0x0, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/symtable.c
// Function: BSTDisposeLocal
void BSTDisposeLocal (tBSTNodePtrLocal *RootPtr) {	


	if (*RootPtr != NULL)					
	{
		BSTDisposeLocal(&(*RootPtr)->LPtr);
		BSTDisposeLocal(&(*RootPtr)->RPtr);
		free(*RootPtr);
		*RootPtr = NULL;
	}
	


}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x3e73
addq $0x18, %rdi
callq 0x3e46
movq (%rbx), %rdi
addq $0x20, %rdi
callq 0x3e46
movq (%rbx), %rdi
callq 0x1030
andq $0x0, (%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/symtable.c
// Function: MainStackSearch
bool MainStackSearch(MainStack stack, char* id, int *type) {
    
    //pocet stromov v zasobniku
    int i = stack.top;
    //na ulozenie typu
    int typ = 0;
    char* unneeded = NULL;
    
    while (i != 0) {
        if (BSTSearchLocal((*stack.a[i]), id, &typ, unneeded)) {
            *type = typ;
            return true;
        }
        i--;
    }
    return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x40(%rsp), %r12
movslq (%r12), %r13
leaq 0x4(%rsp), %r15
andl $0x0, (%r15)
movq %r13, %rbp
addq $-0x1, %r13
jae 0x3efc
movq 0x10(%r12,%r13,8), %rax
movq (%rax), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3cd1
testb %al, %al
je 0x3ed6
movl 0x4(%rsp), %eax
movl %eax, (%rbx)
testq %rbp, %rbp
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/MartinNovotny25[P]VUT-FIT-IFJ2020/semantics.c
// Function: printFunction
void printFunction(char *id, functionData data) {
    printf("Spustam printFunction\n");
    printf("Function id: %s\n", id);
    printf("Number of params: %d\n", data.numOfParams);
    printf("Number of return vals: %d\n", data.numOfReturns);
    printf("Params: \n");
    for (int i = 0; i < data.numOfParams; i++) {
        switch (data.paramsType[i]) {
            case t_INT_ID:
                printf("int ");
                break;
            case t_STRING_ID:
                printf("string ");
                break;
            case t_FLOAT64:
                printf("float64 ");
                break;
                
            default:
                break;
        }
        printf("%s\n", data.params[i]);
    }
    printf("Return types:\n");
    for (int i = 0; i < data.numOfReturns; i++) {
        switch (data.returns[i]) {
            case t_INT_ID:
                printf("int ");
                break;
            case t_STRING_ID:
                printf("string ");
                break;
            case t_FLOAT64:
                printf("float64 ");
                break;
                
            default:
                break;
        }
    }
    printf("\nprintFunction Ended\n\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x40(%rsp), %r15
leaq 0x4641(%rip), %rdi      # 0x856f
callq 0x1050
leaq 0x4586(%rip), %rdi      # 0x84c0
xorl %r12d, %r12d
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1070
movl (%r15), %r14d
leaq 0x4580(%rip), %rdi      # 0x84d1
movl %r14d, %esi
xorl %eax, %eax
callq 0x1070
movl 0x4(%r15), %ebx
leaq 0x4581(%rip), %rdi      # 0x84e7
movl %ebx, %esi
xorl %eax, %eax
callq 0x1070
leaq 0x460f(%rip), %rdi      # 0x8585
callq 0x1050
testl %r14d, %r14d
cmovlel %r12d, %r14d
leaq 0x4579(%rip), %r12      # 0x8502
leaq 0x4577(%rip), %rbp      # 0x8507
xorl %r13d, %r13d
cmpq %r13, %r14
je 0x3fd4
movl 0x808(%r15,%r13,4), %eax
movq %r12, %rdi
cmpl $0x18, %eax
je 0x3fbe
cmpl $0x17, %eax
je 0x3fb7
cmpl $0x14, %eax
jne 0x3fc5
movq %rbp, %rdi
jmp 0x3fbe
leaq 0x4551(%rip), %rdi      # 0x850f
xorl %eax, %eax
callq 0x1070
movq 0x8(%r15,%r13,8), %rdi
callq 0x1050
incq %r13
jmp 0x3f93
leaq 0x45b3(%rip), %rdi      # 0x858e
callq 0x1050
xorl %eax, %eax
testl %ebx, %ebx
cmovlel %eax, %ebx
leaq 0x4514(%rip), %r14      # 0x8502
leaq 0x451a(%rip), %r12      # 0x850f
leaq 0x450b(%rip), %r13      # 0x8507
xorl %ebp, %ebp
cmpq %rbp, %rbx
je 0x4031
movl 0xc08(%r15,%rbp,4), %eax
movq %r14, %rdi
cmpl $0x18, %eax
je 0x4025
cmpl $0x17, %eax
je 0x4022
cmpl $0x14, %eax
jne 0x402c
movq %r13, %rdi
jmp 0x4025
movq %r12, %rdi
xorl %eax, %eax
callq 0x1070
incq %rbp
jmp 0x3ffe
leaq 0x4564(%rip), %rdi      # 0x859c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1050