// File: aisthesis[P]realnumber/tst/array_arithmetic_test.cpp
// Function: conversion_helpers::to_digit_array::test_method()
BOOST_AUTO_TEST_CASE(to_digit_array) {
		unsigned char* digits1 = array_arithmetic::convert::helpers::to_digit_array("123");
		BOOST_CHECK_EQUAL(digits1[0], static_cast<unsigned char>(1));
		BOOST_CHECK_EQUAL(digits1[1], static_cast<unsigned char>(2));
		BOOST_CHECK_EQUAL(digits1[2], static_cast<unsigned char>(3));
		delete[] digits1;
		BOOST_CHECK_THROW(array_arithmetic::convert::helpers::to_digit_array("12."), std::invalid_argument); 
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x380, %rsp            # imm = 0x380
movq %rdi, -0x10(%rbp)
leaq -0x39(%rbp), %rdi
movq %rdi, -0x298(%rbp)
callq 0x3350
movq -0x298(%rbp), %rdx
leaq 0x16ace(%rip), %rsi     # 0x1d0db
leaq -0x38(%rbp), %rdi
callq 0x17690
jmp 0x6618
leaq -0x38(%rbp), %rdi
callq 0x1afe0
movq %rax, -0x2a0(%rbp)
jmp 0x662a
leaq -0x38(%rbp), %rdi
callq 0x30e0
leaq -0x39(%rbp), %rdi
callq 0x31e0
movq -0x2a0(%rbp), %rax
movq %rax, -0x18(%rbp)
movq 0x1ebd2(%rip), %rax     # 0x25220
movq %rax, -0x2c8(%rbp)
leaq 0x169b3(%rip), %rsi     # 0x1d00f
movq %rsi, -0x2b0(%rbp)
leaq -0x60(%rbp), %rdi
movq %rdi, -0x2c0(%rbp)
movl $0x1d, %edx
movq %rdx, -0x2a8(%rbp)
callq 0x17390
leaq -0x70(%rbp), %rdi
movq %rdi, -0x2b8(%rbp)
callq 0x173c0
movq -0x2c8(%rbp), %rdi
movq -0x2c0(%rbp), %rsi
movq -0x2b8(%rbp), %rcx
movl $0x3c, %edx
callq 0x3390
callq 0x17650
movq %rax, %rsi
leaq 0x16cf2(%rip), %rdx     # 0x1d3af
leaq -0x98(%rbp), %rdi
callq 0x17610
movq -0x2b0(%rbp), %rsi
movq -0x2a8(%rbp), %rdx
leaq -0xa8(%rbp), %rdi
callq 0x17390
jmp 0x66e5
movq -0x18(%rbp), %r9
movb $0x1, -0xa9(%rbp)
leaq 0x169f3(%rip), %rcx     # 0x1d0ea
movq %rsp, %rax
movq %rcx, 0x10(%rax)
leaq -0xa9(%rbp), %rcx
movq %rcx, 0x8(%rax)
leaq 0x169cf(%rip), %rcx     # 0x1d0df
movq %rcx, (%rax)
leaq -0x98(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
movl $0x3c, %edx
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x17740
jmp 0x6738
leaq -0x98(%rbp), %rdi
callq 0x17660
callq 0x17680
testb $0x1, %al
jne 0x6647
jmp 0x6753
movq 0x1eac6(%rip), %rax     # 0x25220
movq %rax, -0x2f0(%rbp)
leaq 0x168a7(%rip), %rsi     # 0x1d00f
movq %rsi, -0x2d8(%rbp)
leaq -0xc0(%rbp), %rdi
movq %rdi, -0x2e8(%rbp)
movl $0x1d, %edx
movq %rdx, -0x2d0(%rbp)
callq 0x17390
leaq -0xd0(%rbp), %rdi
movq %rdi, -0x2e0(%rbp)
callq 0x173c0
movq -0x2f0(%rbp), %rdi
movq -0x2e8(%rbp), %rsi
movq -0x2e0(%rbp), %rcx
movl $0x3d, %edx
callq 0x3390
callq 0x17650
movq %rax, %rsi
leaq 0x16be0(%rip), %rdx     # 0x1d3af
leaq -0xf8(%rbp), %rdi
callq 0x17610
movq -0x2d8(%rbp), %rsi
movq -0x2d0(%rbp), %rdx
leaq -0x108(%rbp), %rdi
callq 0x17390
jmp 0x67f7
movq -0x18(%rbp), %r9
incq %r9
movb $0x2, -0x109(%rbp)
leaq 0x16907(%rip), %rcx     # 0x1d113
movq %rsp, %rax
movq %rcx, 0x10(%rax)
leaq -0x109(%rbp), %rcx
movq %rcx, 0x8(%rax)
leaq 0x168e3(%rip), %rcx     # 0x1d108
movq %rcx, (%rax)
leaq -0xf8(%rbp), %rdi
leaq -0x108(%rbp), %rsi
movl $0x3d, %edx
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x17740
jmp 0x684d
leaq -0xf8(%rbp), %rdi
callq 0x17660
callq 0x17680
testb $0x1, %al
jne 0x6753
jmp 0x6868
movq 0x1e9b1(%rip), %rax     # 0x25220
movq %rax, -0x318(%rbp)
leaq 0x16792(%rip), %rsi     # 0x1d00f
movq %rsi, -0x300(%rbp)
leaq -0x120(%rbp), %rdi
movq %rdi, -0x310(%rbp)
movl $0x1d, %edx
movq %rdx, -0x2f8(%rbp)
callq 0x17390
leaq -0x130(%rbp), %rdi
movq %rdi, -0x308(%rbp)
callq 0x173c0
movq -0x318(%rbp), %rdi
movq -0x310(%rbp), %rsi
movq -0x308(%rbp), %rcx
movl $0x3e, %edx
callq 0x3390
callq 0x17650
movq %rax, %rsi
leaq 0x16acb(%rip), %rdx     # 0x1d3af
leaq -0x158(%rbp), %rdi
callq 0x17610
movq -0x300(%rbp), %rsi
movq -0x2f8(%rbp), %rdx
leaq -0x168(%rbp), %rdi
callq 0x17390
jmp 0x690c
movq -0x18(%rbp), %r9
addq $0x2, %r9
movb $0x3, -0x169(%rbp)
leaq 0x1681a(%rip), %rcx     # 0x1d13c
movq %rsp, %rax
movq %rcx, 0x10(%rax)
leaq -0x169(%rbp), %rcx
movq %rcx, 0x8(%rax)
leaq 0x167f6(%rip), %rcx     # 0x1d131
movq %rcx, (%rax)
leaq -0x158(%rbp), %rdi
leaq -0x168(%rbp), %rsi
movl $0x3e, %edx
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x17740
jmp 0x6963
leaq -0x158(%rbp), %rdi
callq 0x17660
callq 0x17680
testb $0x1, %al
jne 0x6868
movq -0x18(%rbp), %rax
movq %rax, -0x320(%rbp)
cmpq $0x0, %rax
je 0x6999
movq -0x320(%rbp), %rdi
callq 0x3280
jmp 0x699b
movq 0x1e87e(%rip), %rax     # 0x25220
movq %rax, -0x328(%rbp)
leaq 0x1665f(%rip), %rsi     # 0x1d00f
leaq -0x180(%rbp), %rdi
movl $0x1d, %edx
callq 0x17390
jmp 0x69c3
leaq -0x190(%rbp), %rdi
callq 0x173c0
jmp 0x69d1
movq -0x328(%rbp), %rdi
leaq -0x180(%rbp), %rsi
movl $0x40, %edx
leaq -0x190(%rbp), %rcx
callq 0x3390
jmp 0x69f2
leaq -0x1b1(%rbp), %rdi
movq %rdi, -0x330(%rbp)
callq 0x3350
movq -0x330(%rbp), %rdx
leaq 0x16747(%rip), %rsi     # 0x1d15a
leaq -0x1b0(%rbp), %rdi
callq 0x17690
jmp 0x6a21
leaq -0x1b0(%rbp), %rdi
callq 0x1afe0
jmp 0x6a2f
leaq -0x1b0(%rbp), %rdi
callq 0x30e0
leaq -0x1b1(%rbp), %rdi
callq 0x31e0
movq 0x1e7d2(%rip), %rax     # 0x25220
movq %rax, -0x338(%rbp)
leaq 0x165b3(%rip), %rsi     # 0x1d00f
leaq -0x1c8(%rbp), %rdi
movl $0x1d, %edx
callq 0x17390
jmp 0x6a6f
leaq -0x1d8(%rbp), %rdi
callq 0x173c0
jmp 0x6a7d
movq -0x338(%rbp), %rdi
leaq -0x1c8(%rbp), %rsi
movl $0x40, %edx
leaq -0x1d8(%rbp), %rcx
callq 0x3390
jmp 0x6a9e
leaq -0x1f0(%rbp), %rdi
xorl %esi, %esi
callq 0x17960
jmp 0x6aae
callq 0x17650
movq %rax, -0x340(%rbp)
jmp 0x6abc
movq -0x340(%rbp), %rsi
leaq 0x16694(%rip), %rdx     # 0x1d15e
leaq -0x210(%rbp), %rdi
callq 0x179a0
jmp 0x6ad8
leaq 0x16530(%rip), %rsi     # 0x1d00f
leaq -0x220(%rbp), %rdi
movl $0x1d, %edx
callq 0x17390
jmp 0x6af2
movq %rsp, %rax
movq $0x0, (%rax)
xorl %eax, %eax
leaq -0x1f0(%rbp), %rdi
leaq -0x210(%rbp), %rsi
leaq -0x220(%rbp), %rdx
movl $0x40, %ecx
movl $0x1, %r9d
movl %r9d, %r8d
callq 0x3380
jmp 0x6b28
leaq -0x210(%rbp), %rdi
callq 0x179e0
leaq -0x1f0(%rbp), %rdi
callq 0x17a00
callq 0x17680
movb %al, -0x341(%rbp)
jmp 0x6b4d
movb -0x341(%rbp), %al
testb $0x1, %al
jne 0x6a47
jmp 0x6b5d
jmp 0x6da9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6b85
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x30e0
leaq -0x39(%rbp), %rdi
callq 0x31e0
jmp 0x6e0a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x17660
jmp 0x6e0a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xf8(%rbp), %rdi
callq 0x17660
jmp 0x6e0a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x158(%rbp), %rdi
callq 0x17660
jmp 0x6e0a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6c5e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6c1e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x1b0(%rbp), %rdi
callq 0x30e0
leaq -0x1b1(%rbp), %rdi
callq 0x31e0
jmp 0x6c5e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6c52
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x210(%rbp), %rdi
callq 0x179e0
leaq -0x1f0(%rbp), %rdi
callq 0x17a00
movl -0x4c(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x6e0a
movq -0x48(%rbp), %rdi
callq 0x3090
movq %rax, -0x228(%rbp)
movq -0x228(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x6c8b
movq 0x1e58e(%rip), %rax     # 0x25220
movq %rax, -0x350(%rbp)
leaq 0x1636f(%rip), %rsi     # 0x1d00f
leaq -0x238(%rbp), %rdi
movl $0x1d, %edx
callq 0x17390
jmp 0x6cb3
leaq -0x248(%rbp), %rdi
callq 0x173c0
jmp 0x6cc1
movq -0x350(%rbp), %rdi
leaq -0x238(%rbp), %rsi
movl $0x40, %edx
leaq -0x248(%rbp), %rcx
callq 0x3390
jmp 0x6ce2
leaq -0x260(%rbp), %rdi
movl $0x1, %esi
callq 0x17960
jmp 0x6cf5
callq 0x17650
movq %rax, -0x358(%rbp)
jmp 0x6d03
movq -0x358(%rbp), %rsi
leaq 0x16485(%rip), %rdx     # 0x1d196
leaq -0x280(%rbp), %rdi
callq 0x17a20
jmp 0x6d1f
leaq 0x162e9(%rip), %rsi     # 0x1d00f
leaq -0x290(%rbp), %rdi
movl $0x1d, %edx
callq 0x17390
jmp 0x6d39
movq %rsp, %rax
movq $0x0, (%rax)
xorl %eax, %eax
leaq -0x260(%rbp), %rdi
leaq -0x280(%rbp), %rsi
leaq -0x290(%rbp), %rdx
movl $0x40, %ecx
movl $0x1, %r9d
movl %r9d, %r8d
callq 0x3380
jmp 0x6d6f
leaq -0x280(%rbp), %rdi
callq 0x17a60
leaq -0x260(%rbp), %rdi
callq 0x17a00
callq 0x17680
movb %al, -0x359(%rbp)
jmp 0x6d94
movb -0x359(%rbp), %al
testb $0x1, %al
jne 0x6c8b
jmp 0x6da4
callq 0x32f0
jmp 0x6dab
callq 0x17680
testb $0x1, %al
jne 0x699b
addq $0x380, %rsp            # imm = 0x380
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6e01
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6df5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x280(%rbp), %rdi
callq 0x17a60
leaq -0x260(%rbp), %rdi
callq 0x17a00
callq 0x32f0
jmp 0x6e08
jmp 0x6e0a
movq -0x48(%rbp), %rdi
callq 0x3340
movq %rax, %rdi
callq 0x17a80
nopl (%rax,%rax)