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

	print_vec_info(vec);
	tmp = vec.insert(vec.begin(), "42");
	print_vec_info(vec);

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

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

	print_vec_info(empty);
	tmp = empty.insert(empty.begin(), "42");
	print_vec_info(empty);

	if (tmp == empty.begin())
		std::cout << "valid" << std::endl;

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x70, %rsp
leaq -0x20(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x92e7(%rip), %rsi      # 0x26151
leaq 0x92e4(%rip), %rdx      # 0x26155
leaq -0x30(%rbp), %rdi
callq 0x2f88
leaq -0x68(%rbp), %rdi
leaq -0x30(%rbp), %rdx
leaq -0x50(%rbp), %rcx
movl $0x64, %esi
callq 0x1955c
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x1ce9e
callq 0x21b0
leaq -0x68(%rbp), %rdi
callq 0x195f2
movq -0x68(%rbp), %rbx
leaq -0x30(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x9bcd(%rip), %rsi      # 0x26a86
leaq 0x9bc8(%rip), %rdx      # 0x26a88
callq 0x2f88
leaq -0x68(%rbp), %rdi
leaq -0x30(%rbp), %rdx
movq %rbx, %rsi
callq 0x219ee
movq %rax, %rbx
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x1cee6
callq 0x21b0
leaq -0x68(%rbp), %rdi
callq 0x195f2
cmpq %rbx, -0x68(%rbp)
jne 0x1cf3b
movq 0x170d4(%rip), %rbx     # 0x33fd0
leaq 0xa593(%rip), %rsi      # 0x27496
movl $0x5, %edx
movq %rbx, %rdi
callq 0x2230
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x170a2(%rip), %rdi     # 0x33fd0
callq 0x2030
movq %rax, %rdi
callq 0x2150
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
callq 0x195f2
movq -0x50(%rbp), %rbx
leaq -0x30(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x9b22(%rip), %rsi      # 0x26a86
leaq 0x9b1d(%rip), %rdx      # 0x26a88
callq 0x2f88
leaq -0x50(%rbp), %rdi
leaq -0x30(%rbp), %rdx
movq %rbx, %rsi
callq 0x219ee
movq %rax, %rbx
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x1cf91
callq 0x21b0
leaq -0x50(%rbp), %rdi
callq 0x195f2
cmpq -0x50(%rbp), %rbx
jne 0x1cfe6
movq 0x17029(%rip), %rbx     # 0x33fd0
leaq 0xa4e8(%rip), %rsi      # 0x27496
movl $0x5, %edx
movq %rbx, %rdi
callq 0x2230
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x16ff7(%rip), %rdi     # 0x33fd0
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq -0x30(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x1a4ce
leaq -0x80(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x1a4ce
leaq -0x80(%rbp), %rdi
callq 0xacd4
leaq -0x30(%rbp), %rdi
callq 0xacd4
leaq -0x50(%rbp), %rdi
callq 0xacd4
leaq -0x68(%rbp), %rdi
callq 0xacd4
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0xacd4
jmp 0x1d082
jmp 0x1d07f
movq %rax, %rbx
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x1d082
callq 0x21b0
jmp 0x1d082
jmp 0x1d07f
movq %rax, %rbx
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x1d090
callq 0x21b0
jmp 0x1d090
jmp 0x1d08d
movq %rax, %rbx
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x1d099
callq 0x21b0
jmp 0x1d099
movq %rax, %rbx
jmp 0x1d099
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0xacd4
jmp 0x1d090
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0xacd4
movq %rbx, %rdi
callq 0x2340