// File: /workspace/github_cpp_makefile_star2_O1/ericprud[P]sean-parent-concept-based-polymorphism/doc-user.cpp
// Function: main
int main ()
{
    history_t h;

    h.current().add(string("Hello"));
    h.current().add(0);
    h.current().add(my_class_t());

    draw(h, cout, 0);
    cout << "--------------------------" << endl;

    h.commit();

    h.current()[1] = string("World!");
    h.current().add(h);

    draw(h, cout, 0);
    cout << "--------------------------" << endl;

    h.undo();

    draw(h, cout, 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xd0, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, -0x30(%rbp)
xorl %r14d, %r14d
movq %r14, -0x20(%rbp)
movl $0x18, %edi
callq 0x20f0
movq %rax, %rbx
movq %rax, -0x30(%rbp)
movq %rax, -0x28(%rbp)
addq $0x18, %rax
movq %rax, -0x20(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq %r14, 0x10(%rbx)
movq %rax, -0x28(%rbp)
leaq -0x70(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x1cbe(%rip), %rsi      # 0x4020
leaq 0x1cbc(%rip), %rdx      # 0x4025
leaq -0x80(%rbp), %rdi
callq 0x31e4
leaq -0x38(%rbp), %rdi
movq $0x0, -0x8(%rdi)
leaq -0x40(%rbp), %rsi
leaq -0x11(%rbp), %rdx
leaq -0x80(%rbp), %rcx
callq 0x327e
movups -0x40(%rbp), %xmm0
leaq -0xc0(%rbp), %rsi
movups %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x29c2
movq -0xb8(%rbp), %rdi
testq %rdi, %rdi
je 0x23b6
callq 0x2ba8
movq -0x80(%rbp), %rdi
cmpq %r14, %rdi
je 0x23cb
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2100
movq -0x28(%rbp), %rbx
cmpq -0x30(%rbp), %rbx
je 0x2685
movl $0x20, %edi
callq 0x20f0
addq $-0x18, %rbx
movabsq $0x100000001, %r14      # imm = 0x100000001
movq %r14, 0x8(%rax)
leaq 0x4814(%rip), %rcx      # 0x6c10
movq %rcx, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
leaq 0x4853(%rip), %rdx      # 0x6c60
movq %rdx, 0x10(%rax)
movl $0x0, 0x18(%rax)
leaq -0xb0(%rbp), %rsi
movq %rcx, (%rsi)
movq %rax, 0x8(%rsi)
movq %rbx, %rdi
callq 0x29c2
movq -0xa8(%rbp), %rdi
testq %rdi, %rdi
je 0x243f
callq 0x2ba8
movq -0x28(%rbp), %rbx
cmpq -0x30(%rbp), %rbx
je 0x2685
movl $0x20, %edi
callq 0x20f0
addq $-0x18, %rbx
movq %r14, 0x8(%rax)
leaq 0x483a(%rip), %rcx      # 0x6ca0
movq %rcx, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
leaq 0x4879(%rip), %rdx      # 0x6cf0
movq %rdx, 0x10(%rax)
leaq -0xa0(%rbp), %rsi
movq %rcx, (%rsi)
movq %rax, 0x8(%rsi)
movq %rbx, %rdi
callq 0x29c2
movq -0x98(%rbp), %rdi
testq %rdi, %rdi
je 0x24a2
callq 0x2ba8
movq 0x4b2f(%rip), %rsi      # 0x6fd8
leaq -0x30(%rbp), %rdi
xorl %edx, %edx
callq 0x2747
movq 0x4b1d(%rip), %rbx      # 0x6fd8
leaq 0x1b64(%rip), %rsi      # 0x4026
movl $0x1a, %edx
movq %rbx, %rdi
callq 0x2110
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x20e0
movsbl %al, %esi
movq 0x4aeb(%rip), %rdi      # 0x6fd8
callq 0x2030
movq %rax, %rdi
callq 0x2090
leaq -0x30(%rbp), %rdi
callq 0x28c4
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x1b2f(%rip), %rsi      # 0x4041
leaq 0x1b2e(%rip), %rdx      # 0x4047
leaq -0x60(%rbp), %rdi
callq 0x31e4
leaq -0x38(%rbp), %rdi
movq $0x0, -0x8(%rdi)
leaq -0x40(%rbp), %rsi
leaq -0x11(%rbp), %rdx
leaq -0x60(%rbp), %rcx
callq 0x327e
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
je 0x2685
movq -0x40(%rbp), %rcx
movq -0x38(%rbp), %rdx
movq -0x18(%rax), %rax
movq %rcx, 0x10(%rax)
movq 0x18(%rax), %rdi
movq %rdx, 0x18(%rax)
testq %rdi, %rdi
je 0x256f
callq 0x2ba8
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x2584
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2100
movq -0x28(%rbp), %rbx
cmpq -0x30(%rbp), %rbx
je 0x2685
leaq -0xd8(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x306a
leaq -0x38(%rbp), %rdi
movq $0x0, -0x8(%rdi)
leaq -0x40(%rbp), %rsi
leaq -0x11(%rbp), %rdx
leaq -0xd8(%rbp), %rcx
callq 0x3812
addq $-0x18, %rbx
movups -0x40(%rbp), %xmm0
leaq -0x90(%rbp), %rsi
movups %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x29c2
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0x25ed
callq 0x2ba8
leaq -0xd8(%rbp), %rdi
callq 0x3194
movq 0x49d8(%rip), %rsi      # 0x6fd8
leaq -0x30(%rbp), %rdi
xorl %edx, %edx
callq 0x2747
movq 0x49c6(%rip), %rbx      # 0x6fd8
leaq 0x1a0d(%rip), %rsi      # 0x4026
movl $0x1a, %edx
movq %rbx, %rdi
callq 0x2110
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x20e0
movsbl %al, %esi
movq 0x4994(%rip), %rdi      # 0x6fd8
callq 0x2030
movq %rax, %rdi
callq 0x2090
leaq -0x30(%rbp), %rbx
movq %rbx, %rdi
callq 0x28fa
movq 0x4974(%rip), %rsi      # 0x6fd8
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2747
leaq -0x30(%rbp), %rdi
callq 0x3194
xorl %eax, %eax
addq $0xd0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x19bc(%rip), %rdi      # 0x4048
leaq 0x19c6(%rip), %rsi      # 0x4059
leaq 0x19d0(%rip), %rcx      # 0x406a
movl $0x5b, %edx
callq 0x2080
movq %rax, %rbx
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0x26bd
callq 0x2ba8
jmp 0x26bd
movq %rax, %rbx
leaq -0xd8(%rbp), %rdi
callq 0x3194
jmp 0x2736
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x2736
movq -0x50(%rbp), %rsi
jmp 0x2727
jmp 0x2733
movq %rax, %rbx
movq -0x98(%rbp), %rdi
jmp 0x26f5
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
testq %rdi, %rdi
je 0x2736
callq 0x2ba8
jmp 0x2736
movq %rax, %rbx
movq -0xb8(%rbp), %rdi
testq %rdi, %rdi
je 0x271a
callq 0x2ba8
jmp 0x271a
movq %rax, %rbx
movq -0x80(%rbp), %rdi
cmpq %r14, %rdi
je 0x2736
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2100
jmp 0x2736
jmp 0x2733
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x3194
movq %rbx, %rdi
callq 0x2180