// File: /workspace/github_cpp_makefile_star2_O1/aisthesis[P]realnumber/tst/array_arithmetic_test.cpp
// Function: addition::different_lengths_invoker()
BOOST_AUTO_TEST_CASE(different_lengths) {
		// inputs of equal size
		array_arithmetic::convert::from_int(one_billion, bigger_arr1, bigger_arr_len);
		array_arithmetic::convert::from_int(two_billion, bigger_arr2, bigger_arr_len);
		array_arithmetic::add(bigger_arr1, bigger_arr2, big_sum_arr, bigger_arr_len, bigger_arr_len);
		BOOST_CHECK_EQUAL(array_arithmetic::convert::to_int(big_sum_arr, bigger_arr_len + 1),
				three_billion);
		// different input sizes: small
		array_arithmetic::convert::from_int(one, small_arr1, small_arr_len);
		array_arithmetic::convert::from_int(two, smaller_arr, small_arr_len - 1);
		array_arithmetic::add(small_arr1, smaller_arr, small_result_arr, small_arr_len, small_arr_len - 1);
		BOOST_CHECK_EQUAL(array_arithmetic::convert::to_int(small_result_arr, small_arr_len + 1), three);
		// different input sizes: large
		array_arithmetic::convert::from_int(one_billion, bigger_arr1, bigger_arr_len);
		array_arithmetic::convert::from_int(255, big_arr, bigger_arr_len - 2);
		array_arithmetic::add(bigger_arr1, big_arr, big_sum_arr, bigger_arr_len, bigger_arr_len - 2);
		BOOST_CHECK_EQUAL(array_arithmetic::convert::to_int(big_sum_arr, bigger_arr_len + 1),
				static_cast<unsigned int>(1000000255));
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2e8, %rsp            # imm = 0x2E8
movq 0xc288(%rip), %rbx      # 0x1d190
leaq 0x7150(%rip), %rax      # 0x1805f
movq %rax, -0x98(%rbp)
leaq 0x715f(%rip), %r13      # 0x1807c
movq %r13, -0x90(%rbp)
leaq -0x230(%rbp), %r14
movl $0x198, %edx            # imm = 0x198
movq %r14, %rdi
xorl %esi, %esi
callq 0x30c0
movq %r14, %rdi
callq 0x31b0
leaq -0xa8(%rbp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
leaq -0x2b8(%rbp), %rsi
movb $0x22, (%rsi)
movl $0x1, %edx
movq %r14, %rdi
callq 0x3180
leaq 0x77ed(%rip), %rsi      # 0x18764
leaq -0x230(%rbp), %rdi
movl $0x11, %edx
callq 0x3180
leaq 0x7a44(%rip), %rsi      # 0x189d3
leaq -0x230(%rbp), %rdi
movl $0xe, %edx
callq 0x3180
leaq -0x228(%rbp), %rsi
leaq -0x2b8(%rbp), %rdi
callq 0x31e0
leaq -0xb8(%rbp), %rdi
leaq -0x2b8(%rbp), %r14
movq %r14, %rsi
callq 0x3190
movq (%r14), %rdi
leaq -0x2a8(%rbp), %rax
cmpq %rax, %rdi
je 0x10fe7
movq -0x2a8(%rbp), %rsi
incq %rsi
callq 0x3140
movq -0xb8(%rbp), %rax
leaq -0x308(%rbp), %rcx
movq %rax, (%rcx)
addq -0xb0(%rbp), %rax
movq %rax, 0x8(%rcx)
leaq -0x98(%rbp), %rsi
movl $0x12f, %edx            # imm = 0x12F
movq %rbx, %rdi
callq 0x3290
movq -0xb8(%rbp), %rdi
cmpq %r15, %rdi
je 0x11032
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3140
movq 0xbf8f(%rip), %rsi      # 0x1cfc8
leaq -0x230(%rbp), %rdi
callq 0x30b0
leaq -0x1c0(%rbp), %rdi
callq 0x3060
leaq -0x2b8(%rbp), %rdi
callq 0x165e0
movq 0xc12c(%rip), %rbx      # 0x1d190
leaq 0x6ff4(%rip), %rax      # 0x1805f
movq %rax, -0x88(%rbp)
movq %r13, -0x80(%rbp)
leaq -0x230(%rbp), %r14
movl $0x198, %edx            # imm = 0x198
movq %r14, %rdi
xorl %esi, %esi
callq 0x30c0
movq %r14, %rdi
callq 0x31b0
leaq -0x230(%rbp), %rdi
movq %r15, 0x178(%rdi)
movq $0x0, 0x180(%rdi)
movb $0x0, 0x188(%rdi)
leaq -0x48(%rbp), %rsi
movb $0x22, (%rsi)
movl $0x1, %edx
callq 0x3180
leaq 0x7698(%rip), %rsi      # 0x18764
leaq -0x230(%rbp), %rdi
movl $0x11, %edx
callq 0x3180
leaq 0x78fe(%rip), %rsi      # 0x189e2
leaq -0x230(%rbp), %rdi
movl $0xf, %edx
callq 0x3180
leaq -0x228(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x31e0
leaq -0xb8(%rbp), %rdi
leaq -0x48(%rbp), %r14
movq %r14, %rsi
callq 0x3190
movq (%r14), %rdi
leaq -0x38(%rbp), %r12
cmpq %r12, %rdi
je 0x11130
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3140
movq -0xb8(%rbp), %rax
leaq -0x2f8(%rbp), %rcx
movq %rax, (%rcx)
addq -0xb0(%rbp), %rax
movq %rax, 0x8(%rcx)
leaq -0x88(%rbp), %rsi
movl $0x12f, %edx            # imm = 0x12F
movq %rbx, %rdi
callq 0x3290
movq -0xb8(%rbp), %rdi
cmpq %r15, %rdi
je 0x1117b
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3140
movq 0xbe46(%rip), %rsi      # 0x1cfc8
leaq -0x230(%rbp), %rdi
callq 0x30b0
leaq -0x1c0(%rbp), %rdi
callq 0x3060
movq 0xbfef(%rip), %rbx      # 0x1d190
leaq 0x6eb7(%rip), %rax      # 0x1805f
movq %rax, -0x78(%rbp)
movq %r13, -0x70(%rbp)
leaq -0x230(%rbp), %r14
movl $0x198, %edx            # imm = 0x198
movq %r14, %rdi
xorl %esi, %esi
callq 0x30c0
movq %r14, %rdi
callq 0x31b0
leaq -0x230(%rbp), %rdi
movq %r15, 0x178(%rdi)
movq $0x0, 0x180(%rdi)
movb $0x0, 0x188(%rdi)
leaq -0x48(%rbp), %rsi
movb $0x22, (%rsi)
movl $0x1, %edx
callq 0x3180
leaq 0x755e(%rip), %rsi      # 0x18764
leaq -0x230(%rbp), %rdi
movl $0x11, %edx
callq 0x3180
leaq 0x77d4(%rip), %rsi      # 0x189f2
leaq -0x230(%rbp), %rdi
movl $0xc, %edx
callq 0x3180
leaq -0x228(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x31e0
leaq -0xb8(%rbp), %rdi
leaq -0x48(%rbp), %r14
movq %r14, %rsi
callq 0x3190
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x11266
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3140
movq -0xb8(%rbp), %rax
leaq -0x2e8(%rbp), %rcx
movq %rax, (%rcx)
addq -0xb0(%rbp), %rax
movq %rax, 0x8(%rcx)
leaq -0x78(%rbp), %rsi
movl $0x12f, %edx            # imm = 0x12F
movq %rbx, %rdi
callq 0x3290
movq -0xb8(%rbp), %rdi
cmpq %r15, %rdi
je 0x112ae
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3140
movq 0xbd13(%rip), %rsi      # 0x1cfc8
leaq -0x230(%rbp), %rdi
callq 0x30b0
leaq -0x1c0(%rbp), %rdi
callq 0x3060
leaq -0x2b8(%rbp), %rdi
callq 0x115a4
movq 0xbeb0(%rip), %rbx      # 0x1d190
leaq 0x6d78(%rip), %rax      # 0x1805f
movq %rax, -0x68(%rbp)
movq %r13, -0x60(%rbp)
leaq -0x230(%rbp), %r14
movl $0x198, %edx            # imm = 0x198
movq %r14, %rdi
xorl %esi, %esi
callq 0x30c0
movq %r14, %rdi
callq 0x31b0
leaq -0x230(%rbp), %rdi
movq %r15, 0x178(%rdi)
movq $0x0, 0x180(%rdi)
movb $0x0, 0x188(%rdi)
leaq -0x48(%rbp), %rsi
movb $0x22, (%rsi)
movl $0x1, %edx
callq 0x3180
leaq 0x741f(%rip), %rsi      # 0x18764
leaq -0x230(%rbp), %rdi
movl $0x11, %edx
callq 0x3180
leaq 0x76a2(%rip), %rsi      # 0x189ff
leaq -0x230(%rbp), %rdi
movl $0x12, %edx
callq 0x3180
leaq -0x228(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x31e0
leaq -0xb8(%rbp), %rdi
leaq -0x48(%rbp), %r14
movq %r14, %rsi
callq 0x3190
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x113a5
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3140
movq -0xb8(%rbp), %rax
leaq -0x2d8(%rbp), %rcx
movq %rax, (%rcx)
addq -0xb0(%rbp), %rax
movq %rax, 0x8(%rcx)
leaq -0x68(%rbp), %rsi
movl $0x12f, %edx            # imm = 0x12F
movq %rbx, %rdi
callq 0x3290
movq -0xb8(%rbp), %rdi
cmpq %r15, %rdi
je 0x113ed
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3140
movq 0xbbd4(%rip), %rsi      # 0x1cfc8
leaq -0x230(%rbp), %rdi
callq 0x30b0
leaq -0x1c0(%rbp), %rdi
callq 0x3060
movq 0xbd7d(%rip), %rbx      # 0x1d190
leaq 0x6c45(%rip), %rax      # 0x1805f
movq %rax, -0x58(%rbp)
movq %r13, -0x50(%rbp)
leaq -0x230(%rbp), %r14
movl $0x198, %edx            # imm = 0x198
movq %r14, %rdi
xorl %esi, %esi
callq 0x30c0
movq %r14, %rdi
callq 0x31b0
leaq -0x230(%rbp), %rdi
movq %r15, 0x178(%rdi)
movq $0x0, 0x180(%rdi)
movb $0x0, 0x188(%rdi)
leaq -0x48(%rbp), %rsi
movb $0x22, (%rsi)
movl $0x1, %edx
callq 0x3180
leaq 0x72ec(%rip), %rsi      # 0x18764
leaq -0x230(%rbp), %rdi
movl $0x11, %edx
callq 0x3180
leaq 0x7582(%rip), %rsi      # 0x18a12
leaq -0x230(%rbp), %rdi
movl $0xe, %edx
callq 0x3180
leaq -0x228(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x31e0
leaq -0xb8(%rbp), %rdi
leaq -0x48(%rbp), %r14
movq %r14, %rsi
callq 0x3190
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x114d8
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3140
movq -0xb8(%rbp), %rax
leaq -0x2c8(%rbp), %rcx
movq %rax, (%rcx)
addq -0xb0(%rbp), %rax
movq %rax, 0x8(%rcx)
leaq -0x58(%rbp), %rsi
movl $0x12f, %edx            # imm = 0x12F
movq %rbx, %rdi
callq 0x3290
movq -0xb8(%rbp), %rdi
cmpq %r15, %rdi
je 0x11520
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3140
movq 0xbaa1(%rip), %rsi      # 0x1cfc8
leaq -0x230(%rbp), %rdi
callq 0x30b0
leaq -0x1c0(%rbp), %rdi
callq 0x3060
leaq -0x2b8(%rbp), %rdi
callq 0x166b2
addq $0x2e8, %rsp            # imm = 0x2E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x11565
jmp 0x11565
jmp 0x11565
jmp 0x11565
movq %rax, %rbx
jmp 0x1157f
jmp 0x11570
jmp 0x11570
jmp 0x11570
movq %rax, %rbx
leaq -0x230(%rbp), %rdi
callq 0x1652e
leaq -0x2b8(%rbp), %rdi
callq 0x166b2
movq %rbx, %rdi
callq 0x3250
movq %rax, %rbx
leaq -0x230(%rbp), %rdi
callq 0x1652e
jmp 0x1158b