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

	print_vec_info(vec);
	tmp = vec.insert(it + 50, "42");
	print_vec_info(vec);

	it = vec.begin();
	if (tmp == it + 50)
		std::cout << "valid" << std::endl;

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
leaq -0x39(%rbp), %rdi
movq %rdi, -0xd0(%rbp)
callq 0x3370
movq -0xd0(%rbp), %rdx
leaq 0x11ce6(%rip), %rsi     # 0x5710f
leaq -0x38(%rbp), %rdi
callq 0x3290
jmp 0x45434
leaq -0x4d(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0x15360
movq -0xd8(%rbp), %rcx
leaq -0x18(%rbp), %rdi
movl $0x64, %esi
leaq -0x38(%rbp), %rdx
callq 0x3c220
jmp 0x4545f
leaq -0x4d(%rbp), %rdi
callq 0x16ae0
leaq -0x38(%rbp), %rdi
callq 0x3160
leaq -0x39(%rbp), %rdi
callq 0x3230
leaq -0x18(%rbp), %rdi
movq %rdi, -0xe0(%rbp)
callq 0x3f050
movq %rax, -0x58(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x4b670
movq -0xe0(%rbp), %rdi
callq 0x3c2a0
jmp 0x454a5
leaq -0x58(%rbp), %rdi
movl $0x32, %esi
callq 0x4b850
movq %rax, -0x78(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x4b6d0
leaq -0x99(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq 0x3370
movq -0xe8(%rbp), %rdx
leaq 0x125b2(%rip), %rsi     # 0x57a97
leaq -0x98(%rbp), %rdi
callq 0x3290
jmp 0x454f3
movq -0x70(%rbp), %rsi
leaq -0x18(%rbp), %rdi
leaq -0x98(%rbp), %rdx
callq 0x4b690
movq %rax, -0xf0(%rbp)
jmp 0x45510
movq -0xf0(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x3160
leaq -0x99(%rbp), %rdi
callq 0x3230
leaq -0x18(%rbp), %rdi
callq 0x3c2a0
jmp 0x45546
leaq -0x18(%rbp), %rdi
callq 0x3f050
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq -0x58(%rbp), %rdi
movl $0x32, %esi
callq 0x4b850
movq %rax, -0xb0(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x4b710
testb $0x1, %al
jne 0x4558f
jmp 0x4563b
movq 0x35a22(%rip), %rdi     # 0x7afb8
leaq 0x12f40(%rip), %rsi     # 0x584dd
callq 0x31e0
movq %rax, -0xf8(%rbp)
jmp 0x455ab
movq -0xf8(%rbp), %rdi
movq 0x359df(%rip), %rsi     # 0x7af98
callq 0x3220
jmp 0x455c0
jmp 0x4563b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x455ee
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 0x45674
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x4566b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x4562d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x3160
leaq -0x99(%rbp), %rdi
callq 0x3230
jmp 0x4566b
leaq -0xc8(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x3e0c0
jmp 0x4564d
leaq -0xc8(%rbp), %rdi
callq 0x152b0
leaq -0x18(%rbp), %rdi
callq 0x152b0
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
leaq -0x18(%rbp), %rdi
callq 0x152b0
movq -0x48(%rbp), %rdi
callq 0x3360
nopl (%rax)