// File: /workspace/github_cpp_makefile_star2_O3/yukioc[P]tscrpt/t-tscrpt.cpp
// Function: t_div()
void t_div(){ /*{{{*/
	bool except;
	tscrpt_t sc;
	obj_t*o;

	//! \test 12 / 4 => 3
	o = sc.eval("12 / 4");
	mu_assert(o!=NULL);
	mu_assert(o->type=='N');
	mu_assert(o->value()==3);
	delete o;

	//! \test 13 / 5 => 2
	o = sc.eval("13 / 5");
	mu_assert(o!=NULL);
	mu_assert(o->type=='N');
	mu_assert(o->value()==2);
	delete o;
	o=0;

	//! \test 14 / 0 => runtime_error
	except=false;
	try {
		o=sc.eval("14 / 0");
	}catch(std::exception& e){
		except=true;
		mu_assert(typeid(e)==typeid(std::runtime_error));
		sc.clear();
	}
	mu_assert(except==true);

	//! \test "ddd" / 6 => 0
	o = sc.eval("\"ddd\" / 6");
	mu_assert(o!=NULL);
	mu_assert(o->type=='N');
	mu_assert(o->value()==0);
	delete o;

	//! \test 11 / "ddd" => runtime_error
	except=false;
	try {
		o = sc.eval("11 / \"ddd\"");
	}catch(std::exception& e){
		except=true;
		mu_assert(typeid(e)==typeid(std::runtime_error));
	}
	mu_assert(except==true);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x276a
leaq 0x2155(%rip), %rsi      # 0x7786
movq %rbx, %rdi
callq 0x27e2
movq %rax, %r14
movq %rax, %rbx
movl 0x4b2f(%rip), %eax      # 0xa174
incl %eax
movl %eax, 0x4b27(%rip)      # 0xa174
testq %r14, %r14
jne 0x567f
incl 0x4b14(%rip)            # 0xa16c
leaq 0x1d48(%rip), %rdi      # 0x73a7
leaq 0x1d5f(%rip), %rsi      # 0x73c5
leaq 0x1f72(%rip), %rcx      # 0x75df
movl $0xf0, %edx
xorl %eax, %eax
callq 0x2040
movl 0x4af5(%rip), %eax      # 0xa174
incl %eax
movl %eax, 0x4aed(%rip)      # 0xa174
cmpb $0x4e, (%rbx)
je 0x56b9
incl 0x4ada(%rip)            # 0xa16c
leaq 0x1d0e(%rip), %rdi      # 0x73a7
leaq 0x1d25(%rip), %rsi      # 0x73c5
leaq 0x1f40(%rip), %rcx      # 0x75e7
movl $0xf1, %edx
xorl %eax, %eax
callq 0x2040
movl 0x4abb(%rip), %eax      # 0xa174
incl %eax
movl %eax, 0x4ab3(%rip)      # 0xa174
movq %rbx, %rdi
callq 0x260c
cmpl $0x3, %eax
je 0x56f5
incl 0x4a98(%rip)            # 0xa16c
leaq 0x1ccc(%rip), %rdi      # 0x73a7
leaq 0x1ce3(%rip), %rsi      # 0x73c5
leaq 0x20a4(%rip), %rcx      # 0x778d
movl $0xf2, %edx
xorl %eax, %eax
callq 0x2040
movq 0x8(%rbx), %rdi
addq $0x18, %r14
cmpq %r14, %rdi
je 0x570d
movq (%r14), %rsi
incq %rsi
callq 0x2150
movl $0x30, %esi
movq %rbx, %rdi
callq 0x2150
leaq 0x207a(%rip), %rsi      # 0x779b
movq %rsp, %rdi
callq 0x27e2
movq %rax, %r14
movq %rax, %rbx
movl 0x4a3f(%rip), %eax      # 0xa174
incl %eax
movl %eax, 0x4a37(%rip)      # 0xa174
testq %r14, %r14
jne 0x576f
incl 0x4a24(%rip)            # 0xa16c
leaq 0x1c58(%rip), %rdi      # 0x73a7
leaq 0x1c6f(%rip), %rsi      # 0x73c5
leaq 0x1e82(%rip), %rcx      # 0x75df
movl $0xf7, %edx
xorl %eax, %eax
callq 0x2040
movl 0x4a05(%rip), %eax      # 0xa174
incl %eax
movl %eax, 0x49fd(%rip)      # 0xa174
cmpb $0x4e, (%rbx)
je 0x57a9
incl 0x49ea(%rip)            # 0xa16c
leaq 0x1c1e(%rip), %rdi      # 0x73a7
leaq 0x1c35(%rip), %rsi      # 0x73c5
leaq 0x1e50(%rip), %rcx      # 0x75e7
movl $0xf8, %edx
xorl %eax, %eax
callq 0x2040
movl 0x49cb(%rip), %eax      # 0xa174
incl %eax
movl %eax, 0x49c3(%rip)      # 0xa174
movq %rbx, %rdi
callq 0x260c
cmpl $0x2, %eax
je 0x57e5
incl 0x49a8(%rip)            # 0xa16c
leaq 0x1bdc(%rip), %rdi      # 0x73a7
leaq 0x1bf3(%rip), %rsi      # 0x73c5
leaq 0x1ee5(%rip), %rcx      # 0x76be
movl $0xf9, %edx
xorl %eax, %eax
callq 0x2040
movq 0x8(%rbx), %rdi
addq $0x18, %r14
cmpq %r14, %rdi
je 0x57fd
movq (%r14), %rsi
incq %rsi
callq 0x2150
movl $0x30, %esi
movq %rbx, %rdi
callq 0x2150
leaq 0x1f91(%rip), %rsi      # 0x77a2
movq %rsp, %rdi
callq 0x27e2
incl 0x4955(%rip)            # 0xa174
incl 0x4947(%rip)            # 0xa16c
leaq 0x1b7b(%rip), %rdi      # 0x73a7
leaq 0x1b92(%rip), %rsi      # 0x73c5
leaq 0x1d83(%rip), %rcx      # 0x75bd
movl $0x106, %edx            # imm = 0x106
xorl %eax, %eax
callq 0x2040
leaq 0x1f82(%rip), %rsi      # 0x77cf
movq %rsp, %rdi
callq 0x27e2
movq %rax, %r14
movq %rax, %rbx
movl 0x4913(%rip), %eax      # 0xa174
incl %eax
movl %eax, 0x490b(%rip)      # 0xa174
testq %r14, %r14
jne 0x589b
incl 0x48f8(%rip)            # 0xa16c
leaq 0x1b2c(%rip), %rdi      # 0x73a7
leaq 0x1b43(%rip), %rsi      # 0x73c5
leaq 0x1d56(%rip), %rcx      # 0x75df
movl $0x10a, %edx            # imm = 0x10A
xorl %eax, %eax
callq 0x2040
movl 0x48d9(%rip), %eax      # 0xa174
incl %eax
movl %eax, 0x48d1(%rip)      # 0xa174
cmpb $0x4e, (%rbx)
je 0x58d5
incl 0x48be(%rip)            # 0xa16c
leaq 0x1af2(%rip), %rdi      # 0x73a7
leaq 0x1b09(%rip), %rsi      # 0x73c5
leaq 0x1d24(%rip), %rcx      # 0x75e7
movl $0x10b, %edx            # imm = 0x10B
xorl %eax, %eax
callq 0x2040
movl 0x489f(%rip), %eax      # 0xa174
incl %eax
movl %eax, 0x4897(%rip)      # 0xa174
movq %rbx, %rdi
callq 0x260c
testl %eax, %eax
je 0x5910
incl 0x487d(%rip)            # 0xa16c
leaq 0x1ab1(%rip), %rdi      # 0x73a7
leaq 0x1ac8(%rip), %rsi      # 0x73c5
leaq 0x1e3b(%rip), %rcx      # 0x773f
movl $0x10c, %edx            # imm = 0x10C
xorl %eax, %eax
callq 0x2040
movq 0x8(%rbx), %rdi
addq $0x18, %r14
cmpq %r14, %rdi
je 0x5928
movq (%r14), %rsi
incq %rsi
callq 0x2150
movl $0x30, %esi
movq %rbx, %rdi
callq 0x2150
leaq 0x1e9d(%rip), %rsi      # 0x77d9
movq %rsp, %rdi
callq 0x27e2
incl 0x482a(%rip)            # 0xa174
incl 0x481c(%rip)            # 0xa16c
leaq 0x1a50(%rip), %rdi      # 0x73a7
leaq 0x1a67(%rip), %rsi      # 0x73c5
leaq 0x1c58(%rip), %rcx      # 0x75bd
movl $0x117, %edx            # imm = 0x117
xorl %eax, %eax
callq 0x2040
movq %rsp, %rdi
callq 0x2772
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x59e3
movq %rbx, %rdi
movl %edx, %esi
callq 0x23ff
callq 0x2210
incl 0x47d6(%rip)            # 0xa174
jmp 0x5971
jmp 0x59e0
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x59e3
movq %rbx, %rdi
movl %edx, %esi
callq 0x23a1
movq %rsp, %rdi
callq 0x2782
callq 0x2210
incl 0x47ad(%rip)            # 0xa174
jmp 0x5846
jmp 0x59e0
movq %rax, %rbx
callq 0x2210
jmp 0x59e3
movq %rax, %rdi
callq 0x3b4c
movq %rax, %rbx
movq %rsp, %rdi
callq 0x2772
movq %rbx, %rdi
callq 0x2240