// File: /workspace/github_cpp_makefile_star2_O3/SMT-COMP[P]scrambler/scrambler.cpp
// Function: get_named_annot(scrambler::node*)
std::string get_named_annot(scrambler::node *root)
{
    std::vector<scrambler::node *> to_process;
    std::unordered_set<scrambler::node *> seen;

    to_process.push_back(root);
    while (!to_process.empty()) {
        scrambler::node *cur = to_process.back();
        to_process.pop_back();

        if (!seen.insert(cur).second) {
            continue;
        }
        if (cur->symbol == "!") {
            if (cur->children.size() >= 1) {
                to_process.push_back(cur->children[0]);
            }
            if (cur->children.size() >= 2) {
                for (size_t j = 1; j < cur->children.size(); ++j) {
                    scrambler::node *attr = cur->children[j];
                    if (attr->symbol == ":named" &&
                        !attr->children.empty()) {
                        return attr->children[0]->symbol;
                    }
                }
            }
        } else {
            for (size_t j = 0; j < cur->children.size(); ++j) {
                to_process.push_back(cur->children[j]);
            }
        }
    }

    return "";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, 0x30(%rsp)
leaq 0x38(%rsp), %rdx
movq %rsi, (%rdx)
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x70(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
xorl %esi, %esi
callq 0x6e92
movq 0x18(%rsp), %rax
cmpq %rax, 0x10(%rsp)
je 0x56a5
leaq 0x40(%rsp), %r14
leaq 0x28(%rsp), %r12
leaq 0x6e4f(%rip), %rbp      # 0xc3bb
leaq 0x10(%rsp), %rbx
movq -0x8(%rax), %rcx
addq $-0x8, %rax
movq %rcx, 0x8(%rsp)
movq %rax, 0x18(%rsp)
movq %r14, 0x28(%rsp)
movq %r14, %rdi
leaq 0x8(%rsp), %rsi
movq %r12, %rdx
callq 0x7d00
testb $0x1, %dl
je 0x5695
movq 0x8(%rsp), %rdi
leaq 0x6d19(%rip), %rsi      # 0xc2c6
callq 0x30a0
movq 0x8(%rsp), %rcx
movq 0x10(%rcx), %rdx
movq 0x18(%rcx), %rcx
testl %eax, %eax
je 0x5619
cmpq %rdx, %rcx
je 0x5695
xorl %r13d, %r13d
xorl %r15d, %r15d
addq %r13, %rdx
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x55ef
movq (%rdx), %rax
movq %rax, (%rsi)
addq $0x8, 0x18(%rsp)
jmp 0x55f7
movq %rbx, %rdi
callq 0x6e92
incq %r15
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rdx
movq 0x18(%rax), %rax
subq %rdx, %rax
sarq $0x3, %rax
addq $0x8, %r13
cmpq %rax, %r15
jb 0x55d2
jmp 0x5695
cmpq %rdx, %rcx
je 0x5640
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x5638
movq (%rdx), %rax
movq %rax, (%rsi)
addq $0x8, 0x18(%rsp)
jmp 0x5640
movq %rbx, %rdi
callq 0x6e92
movq 0x8(%rsp), %rcx
movq 0x10(%rcx), %rax
movq 0x18(%rcx), %rcx
subq %rax, %rcx
cmpq $0x9, %rcx
jb 0x5695
movl $0x1, %r15d
movq (%rax,%r15,8), %r13
movq %r13, %rdi
movq %rbp, %rsi
callq 0x30a0
testl %eax, %eax
jne 0x5679
movq 0x10(%r13), %rax
cmpq 0x18(%r13), %rax
jne 0x56bb
incq %r15
movq 0x8(%rsp), %rcx
movq 0x10(%rcx), %rax
movq 0x18(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %r15
jb 0x565c
movq 0x18(%rsp), %rax
cmpq %rax, 0x10(%rsp)
jne 0x5571
leaq 0x72ca(%rip), %rdi      # 0xc976
leaq 0x28(%rsp), %rdx
movq %rdi, %rsi
callq 0x67ee
jmp 0x56d4
movq (%rax), %rax
movq (%rax), %rdi
addq $-0x18, %rdi
leaq 0x28(%rsp), %rsi
leaq 0x7(%rsp), %rdx
callq 0x3140
movq 0x30(%rsp), %rbx
movq %rax, (%rbx)
leaq 0x40(%rsp), %rdi
callq 0x66ec
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x56f5
callq 0x3240
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5711
jmp 0x5711
jmp 0x5711
jmp 0x5711
jmp 0x5711
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x66ec
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x572d
callq 0x3240
movq %rbx, %rdi
callq 0x3410