// File: /workspace/github_cpp_makefile_star2_O3/akitsu-sanae[P]adtpp/src/main.cpp
// Function: parse(std::istream&)
Adt parse(std::istream& input) {
    std::string buf;
    input >> buf;
    Adt result{buf};
    input >> buf;
    if (buf != "{")
        throw std::logic_error{"parse error: expected '{'"};
    while (true) {
        std::string label;
        std::string type;
        input >> label;
        if (label == "}")
            break;
        input >> buf;
        if (buf != "of")
            throw std::logic_error{"parse error: expected 'of'"};
        std::getline(input, type);
        trim(type);
        result.add(std::make_pair(label, type));
    }
    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, %r14
movq %rdi, %r15
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x2200
leaq 0x10(%r15), %rax
movq %rax, (%r15)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x69d0
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r15)
movq $0x0, 0x30(%r15)
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x2200
leaq 0x12af(%rip), %rsi      # 0x812b
leaq 0x10(%rsp), %rdi
callq 0x2080
testl %eax, %eax
jne 0x7059
movq %r15, 0x8(%rsp)
leaq 0x20(%r15), %rax
movq %rax, 0x70(%rsp)
xorl %ebp, %ebp
leaq 0x50(%rsp), %r12
leaq 0x30(%rsp), %rbx
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
movq %rbp, 0x58(%rsp)
movb %bpl, 0x60(%rsp)
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq %rbp, 0x38(%rsp)
movb %bpl, 0x40(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x2200
movq %r12, %rdi
leaq 0x12f6(%rip), %rsi      # 0x81db
callq 0x2080
movl %eax, %r15d
testl %eax, %eax
je 0x6fac
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
callq 0x2200
leaq 0x10(%rsp), %rdi
leaq 0x1744(%rip), %rsi      # 0x8652
callq 0x2080
testl %eax, %eax
jne 0x7020
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x22d0
movq %rbx, %rdi
callq 0x6d78
leaq 0x78(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x7a96
movq 0x70(%rsp), %rdi
movq %r13, %rsi
callq 0x782c
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x6f8a
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x6fac
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x6fc8
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x6fe4
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x21a0
testl %r15d, %r15d
jne 0x6ea8
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x7009
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x8(%rsp), %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x20e0
movq %rax, %r14
leaq 0x1621(%rip), %rsi      # 0x8655
movq %rax, %rdi
callq 0x2210
movq 0x3f8d(%rip), %rsi      # 0xafd0
movq 0x3f6e(%rip), %rdx      # 0xafb8
movq %r14, %rdi
movq 0x8(%rsp), %r15
callq 0x2280
jmp 0x708b
movl $0x10, %edi
callq 0x20e0
movq %rax, %r14
leaq 0x15cb(%rip), %rsi      # 0x8638
movq %rax, %rdi
callq 0x2210
movq 0x3f54(%rip), %rsi      # 0xafd0
movq 0x3f35(%rip), %rdx      # 0xafb8
movq %r14, %rdi
callq 0x2280
movq %rax, %rbx
movq %r14, %rdi
callq 0x2130
jmp 0x7105
movq %rax, %rbx
jmp 0x7105
movq %rax, %rbx
jmp 0x710d
movq %rax, %rbx
jmp 0x70cd
movq %rax, %rbx
movq %r14, %rdi
callq 0x2130
jmp 0x70c8
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x77ce
jmp 0x70c8
jmp 0x70c5
movq %rax, %rbx
movq 0x8(%rsp), %r15
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x70e9
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x7105
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x21a0
movq %r15, %rdi
callq 0x7804
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x7129
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21a0
movq %rbx, %rdi
callq 0x22a0