// File: /workspace/github_c_makefile_star2_O2/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 0x9cdb(%rip), %eax      # 0xc3e0
cmpl $0x34, %eax
je 0x2779
cmpl $0x13, %eax
jne 0x277a
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x98b7(%rip), %r15      # 0xbfd8
movq (%r15), %rdi
callq 0x2dbc
movq %rax, 0x9ca8(%rip)      # 0xc3d8
movl %edx, 0x9caa(%rip)      # 0xc3e0
leaq 0x9c83(%rip), %rdi      # 0xc3c0
movq %rax, %rsi
callq 0x1345
callq 0x24e1
cmpl $0x3, 0x9c8f(%rip)      # 0xc3e0
jne 0x2789
movq (%r15), %rdi
callq 0x2dbc
movq %rax, 0x9c76(%rip)      # 0xc3d8
movl %edx, 0x9c78(%rip)      # 0xc3e0
leaq 0x9c51(%rip), %rdi      # 0xc3c0
movq %rax, %rsi
callq 0x1345
jmp 0x2798
retq
leaq 0x9c3f(%rip), %rsi      # 0xc3c0
pushq $0x2
popq %rdi
jmp 0x3ac4
leaq 0x9c30(%rip), %rsi      # 0xc3c0
pushq $0x2
popq %rdi
callq 0x3ac4
leaq 0x9c49(%rip), %rdi      # 0xc3e8
callq 0x12d4
cmpl $0x34, 0x9c35(%rip)     # 0xc3e0
jne 0x27bc
leaq 0x9c0c(%rip), %rsi      # 0xc3c0
pushq $0x2
popq %rdi
callq 0x3ac4
leaq 0x9bfd(%rip), %rbx      # 0xc3c0
pushq $0x2
popq %rbp
movabsq $0xa03c00b0fc6, %r12    # imm = 0xA03C00B0FC6
leaq 0x9c11(%rip), %r14      # 0xc3e8
movabsq $0x10000000000020, %r13 # imm = 0x10000000000020
movl 0x9bf9(%rip), %edx      # 0xc3e0
cmpq $0x34, %rdx
ja 0x282a
btq %rdx, %r12
jae 0x2824
movq 0x9bde(%rip), %rsi      # 0xc3d8
movq %r14, %rdi
callq 0x1345
movq (%r15), %rdi
callq 0x2dbc
movq %rax, 0x9bc7(%rip)      # 0xc3d8
movl %edx, 0x9bc9(%rip)      # 0xc3e0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1345
jmp 0x27e1
btq %rdx, %r13
jb 0x2836
movl %ebp, %edi
movq %rbx, %rsi
callq 0x3ac4
jmp 0x27e1
leaq 0x9bab(%rip), %rbx      # 0xc3e8
leaq 0x9b7c(%rip), %rsi      # 0xc3c0
movq %rbx, %rdi
callq 0x7282
movq %rbx, %rdi
callq 0x12e0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x29f5