// File: DimitriDaSilva[P]42_ft_containers/tester/containers/vector/test_vector_modifiers.cpp
// Function: test_vector_modifiers_insert_fill_begin_w_realloc()
void
test_vector_modifiers_insert_fill_begin_w_realloc()
{
	ft::vector<std::string> vec(100, "test");

	print_vec_info(vec);
	vec.insert(vec.begin(), 5, "42");
	print_vec_info(vec);

	ft::vector<std::string> empty;

	print_vec_info(empty);
	empty.insert(empty.begin(), 5, "42");
	print_vec_info(empty);

	{
		ft::vector<std::string> cpy1 = vec;
		ft::vector<std::string> cpy2 = empty;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
leaq -0x39(%rbp), %rdi
movq %rdi, -0x120(%rbp)
callq 0x3370
movq -0x120(%rbp), %rdx
leaq 0x112d6(%rip), %rsi     # 0x5710f
leaq -0x38(%rbp), %rdi
callq 0x3290
jmp 0x45e44
leaq -0x4d(%rbp), %rdi
movq %rdi, -0x128(%rbp)
callq 0x15360
movq -0x128(%rbp), %rcx
leaq -0x18(%rbp), %rdi
movl $0x64, %esi
leaq -0x38(%rbp), %rdx
callq 0x3c220
jmp 0x45e6f
leaq -0x4d(%rbp), %rdi
callq 0x16ae0
leaq -0x38(%rbp), %rdi
callq 0x3160
leaq -0x39(%rbp), %rdi
callq 0x3230
leaq -0x18(%rbp), %rdi
callq 0x3c2a0
jmp 0x45e95
leaq -0x18(%rbp), %rdi
callq 0x3f050
movq %rax, -0x60(%rbp)
leaq -0x58(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x4b6d0
leaq -0x81(%rbp), %rdi
movq %rdi, -0x130(%rbp)
callq 0x3370
movq -0x130(%rbp), %rdx
leaq 0x11bc7(%rip), %rsi     # 0x57a97
leaq -0x80(%rbp), %rdi
callq 0x3290
jmp 0x45edb
movq -0x58(%rbp), %rsi
leaq -0x18(%rbp), %rdi
movl $0x5, %edx
leaq -0x80(%rbp), %rcx
callq 0x4b890
movq %rax, -0x138(%rbp)
jmp 0x45efa
movq -0x138(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x3160
leaq -0x81(%rbp), %rdi
callq 0x3230
leaq -0x18(%rbp), %rdi
callq 0x3c2a0
jmp 0x45f28
leaq -0xa8(%rbp), %rdi
movq %rdi, -0x140(%rbp)
callq 0x14ce0
movq -0x140(%rbp), %rdi
callq 0x3c2a0
jmp 0x45f49
leaq -0xa8(%rbp), %rdi
callq 0x3f050
movq %rax, -0xb8(%rbp)
leaq -0xb0(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x4b6d0
leaq -0xd9(%rbp), %rdi
movq %rdi, -0x148(%rbp)
callq 0x3370
movq -0x148(%rbp), %rdx
leaq 0x11b07(%rip), %rsi     # 0x57a97
leaq -0xd8(%rbp), %rdi
callq 0x3290
jmp 0x45f9e
movq -0xb0(%rbp), %rsi
leaq -0xa8(%rbp), %rdi
movl $0x5, %edx
leaq -0xd8(%rbp), %rcx
callq 0x4b890
movq %rax, -0x150(%rbp)
jmp 0x45fc6
movq -0x150(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0x3160
leaq -0xd9(%rbp), %rdi
callq 0x3230
leaq -0xa8(%rbp), %rdi
callq 0x3c2a0
jmp 0x45ffa
leaq -0x100(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x3e0c0
jmp 0x4600c
leaq -0x118(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x3e0c0
jmp 0x46021
leaq -0x118(%rbp), %rdi
callq 0x152b0
leaq -0x100(%rbp), %rdi
callq 0x152b0
leaq -0xa8(%rbp), %rdi
callq 0x152b0
leaq -0x18(%rbp), %rdi
callq 0x152b0
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x46083
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x4d(%rbp), %rdi
callq 0x16ae0
leaq -0x38(%rbp), %rdi
callq 0x3160
leaq -0x39(%rbp), %rdi
callq 0x3230
jmp 0x46142
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x46139
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x460c5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x3160
leaq -0x81(%rbp), %rdi
callq 0x3230
jmp 0x46139
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x4612d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x46107
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0x3160
leaq -0xd9(%rbp), %rdi
callq 0x3230
jmp 0x4612d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x152b0
leaq -0xa8(%rbp), %rdi
callq 0x152b0
leaq -0x18(%rbp), %rdi
callq 0x152b0
movq -0x48(%rbp), %rdi
callq 0x3360
nopl (%rax,%rax)