// File: /workspace/github_c_makefile_star2_O3/MartinNovotny25[P]VUT-FIT-IFJ2020/parser.c
// Function: rule_for_assign
void rule_for_assign() {
    switch (token.type) {
        case t_IDENTIFIER:
            token = get_next_token(stdin);
            TDLLInsertLast(&tokens, token);

            rule_id_n();

            //môže príst iba token assign =
            if (token.type != t_ASSIGN) { error_call(ERR_SYN, &tokens); }
            else { token = get_next_token(stdin); TDLLInsertLast(&tokens, token); }

            TDLLInitList(&psa_list);

            if (token.type == t_BRACES_L) {error_call(ERR_SYN, &tokens);}

            while (token.type != t_BRACES_L && token.type != t_COMMA)
            {
                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);

            rule_exp_n();
            break;

         // otváracia množinová zátvorka -- začiatok bloku tela for
        case t_BRACES_L:
            break;
        // hocico ine - break
        default:
            error_call(ERR_SYN, &tokens);
    }
}

// Assembly:
movl 0x9898(%rip), %eax      # 0xc3d0
cmpl $0x34, %eax
je 0x2baa
cmpl $0x13, %eax
jne 0x2bab
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq 0x9486(%rip), %r15      # 0xbfd8
movq (%r15), %rdi
callq 0x31f4
movq %rax, 0x9867(%rip)      # 0xc3c8
movl %edx, 0x9869(%rip)      # 0xc3d0
leaq 0x9842(%rip), %rdi      # 0xc3b0
movq %rax, %rsi
callq 0x1722
callq 0x2902
cmpl $0x3, 0x984e(%rip)      # 0xc3d0
jne 0x2bbc
movq (%r15), %rdi
callq 0x31f4
movq %rax, 0x9835(%rip)      # 0xc3c8
movl %edx, 0x9837(%rip)      # 0xc3d0
leaq 0x9810(%rip), %rdi      # 0xc3b0
movq %rax, %rsi
callq 0x1722
jmp 0x2bcd
retq
leaq 0x97fe(%rip), %rsi      # 0xc3b0
movl $0x2, %edi
jmp 0x42d0
leaq 0x97ed(%rip), %rsi      # 0xc3b0
movl $0x2, %edi
callq 0x42d0
leaq 0x9804(%rip), %rdi      # 0xc3d8
callq 0x16a3
cmpl $0x34, 0x97f0(%rip)     # 0xc3d0
jne 0x2bf3
leaq 0x97c7(%rip), %rsi      # 0xc3b0
movl $0x2, %edi
callq 0x42d0
leaq 0x97b6(%rip), %rbx      # 0xc3b0
movabsq $0xa03c00b0fc6, %r12    # imm = 0xA03C00B0FC6
leaq 0x97cd(%rip), %r14      # 0xc3d8
movabsq $0x10000000000020, %r13 # imm = 0x10000000000020
movl 0x97b5(%rip), %edx      # 0xc3d0
cmpq $0x34, %rdx
ja 0x2c5e
btq %rdx, %r12
jae 0x2c58
movq 0x979a(%rip), %rsi      # 0xc3c8
movq %r14, %rdi
callq 0x1722
movq (%r15), %rdi
callq 0x31f4
movq %rax, 0x9783(%rip)      # 0xc3c8
movl %edx, 0x9785(%rip)      # 0xc3d0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1722
jmp 0x2c15
btq %rdx, %r13
jb 0x2c6d
movl $0x2, %edi
movq %rbx, %rsi
callq 0x42d0
jmp 0x2c15
leaq 0x9764(%rip), %rbx      # 0xc3d8
leaq 0x9735(%rip), %rsi      # 0xc3b0
movq %rbx, %rdi
callq 0x7bf8
movq %rbx, %rdi
callq 0x16b2
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2e31