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

	vec.reserve(101);

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

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

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
leaq -0x39(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
callq 0x3370
movq -0xc8(%rbp), %rdx
leaq 0x11546(%rip), %rsi     # 0x5710f
leaq -0x38(%rbp), %rdi
callq 0x3290
jmp 0x45bd4
leaq -0x4d(%rbp), %rdi
movq %rdi, -0xd0(%rbp)
callq 0x15360
movq -0xd0(%rbp), %rcx
leaq -0x18(%rbp), %rdi
movl $0x64, %esi
leaq -0x38(%rbp), %rdx
callq 0x3c220
jmp 0x45bff
leaq -0x4d(%rbp), %rdi
callq 0x16ae0
leaq -0x38(%rbp), %rdi
callq 0x3160
leaq -0x39(%rbp), %rdi
callq 0x3230
leaq -0x58(%rbp), %rdi
callq 0x4b670
leaq -0x60(%rbp), %rdi
callq 0x4b670
leaq -0x18(%rbp), %rdi
movl $0x65, %esi
callq 0x4b750
jmp 0x45c3c
leaq -0x18(%rbp), %rdi
callq 0x3c2a0
jmp 0x45c47
leaq -0x18(%rbp), %rdi
callq 0x3ed10
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq -0x78(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x4b6d0
leaq -0x99(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0x3370
movq -0xd8(%rbp), %rdx
leaq 0x11e0d(%rip), %rsi     # 0x57a97
leaq -0x98(%rbp), %rdi
callq 0x3290
jmp 0x45c98
movq -0x78(%rbp), %rsi
leaq -0x18(%rbp), %rdi
leaq -0x98(%rbp), %rdx
callq 0x4b690
movq %rax, -0xe0(%rbp)
jmp 0x45cb5
movq -0xe0(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%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 0x45ceb
leaq -0x18(%rbp), %rdi
callq 0x3ed10
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x4b710
testb $0x1, %al
jne 0x45d1c
jmp 0x45dc8
movq 0x35295(%rip), %rdi     # 0x7afb8
leaq 0x127b3(%rip), %rsi     # 0x584dd
callq 0x31e0
movq %rax, -0xe8(%rbp)
jmp 0x45d38
movq -0xe8(%rbp), %rdi
movq 0x35252(%rip), %rsi     # 0x7af98
callq 0x3220
jmp 0x45d4d
jmp 0x45dc8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x45d7b
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 0x45e01
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x45df8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x45dba
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 0x45df8
leaq -0xc0(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x3e0c0
jmp 0x45dda
leaq -0xc0(%rbp), %rdi
callq 0x152b0
leaq -0x18(%rbp), %rdi
callq 0x152b0
addq $0xf0, %rsp
popq %rbp
retq
leaq -0x18(%rbp), %rdi
callq 0x152b0
movq -0x48(%rbp), %rdi
callq 0x3360
nopw (%rax,%rax)