// File: /workspace/github_cpp_makefile_star2_O2/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 $0x68, %rsp
movq %rdi, 0x8(%rsp)
leaq 0x28(%rsp), %rax
movq %rsi, (%rax)
leaq 0x10(%rsp), %rdi
andq $0x0, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
leaq 0x60(%rsp), %rcx
movq %rcx, -0x30(%rcx)
movq $0x1, -0x28(%rcx)
movups %xmm0, -0x20(%rcx)
movl $0x3f800000, -0x10(%rcx) # imm = 0x3F800000
movups %xmm0, -0x8(%rcx)
movq %rax, %rsi
callq 0x5ac2
leaq 0x30(%rsp), %r14
movq %rsp, %r15
leaq 0x6608(%rip), %r13      # 0xb3bb
leaq 0x10(%rsp), %rbp
movq 0x18(%rsp), %rax
cmpq %rax, 0x10(%rsp)
je 0x4eb7
movq -0x8(%rax), %rcx
addq $-0x8, %rax
movq %rcx, (%rsp)
movq %rax, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x7426
testb $0x1, %dl
je 0x4db8
movq (%rsp), %rdi
leaq 0x64d2(%rip), %rsi      # 0xb2c6
callq 0x5af6
testb %al, %al
je 0x4e70
movq (%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rax
cmpq %rsi, %rax
je 0x4e22
movq %rbp, %rdi
callq 0x5ac2
movq (%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rax
movq %rax, %rcx
subq %rsi, %rcx
cmpq $0x9, %rcx
jb 0x4db8
pushq $0x1
popq %r12
subq %rsi, %rax
sarq $0x3, %rax
cmpq %rax, %r12
jae 0x4db8
movq (%rsi,%r12,8), %rbx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x5af6
testb %al, %al
je 0x4e5f
movq 0x10(%rbx), %rax
cmpq 0x18(%rbx), %rax
jne 0x4ea5
incq %r12
movq (%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rax
jmp 0x4e32
xorl %ebx, %ebx
xorl %r12d, %r12d
movq (%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rax
subq %rsi, %rax
sarq $0x3, %rax
cmpq %rax, %r12
jae 0x4db8
addq %rbx, %rsi
movq %rbp, %rdi
callq 0x5ac2
incq %r12
addq $0x8, %rbx
jmp 0x4e75
movq (%rax), %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x3280
jmp 0x4ece
leaq 0x6ab8(%rip), %rsi      # 0xb976
movq %rsp, %rdx
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x3140
leaq 0x30(%rsp), %rdi
callq 0x5cfe
leaq 0x10(%rsp), %rdi
callq 0x649c
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4efe
jmp 0x4efe
jmp 0x4efe
jmp 0x4efe
jmp 0x4efe
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x5cfe
leaq 0x10(%rsp), %rdi
callq 0x649c
movq %rbx, %rdi
callq 0x33c0