// File: /workspace/github_cpp_makefile_star2_O1/xiangzejun[P]Optimizing_Implementations_of_Linear_Layers/main.cpp
// Function: main
int main()
{
	int counter = 100000;
	struct timeval start;
	struct timeval end;
	gettimeofday(&start, NULL);

	int num = 0;
	cout<<FILENAME<<endl;
	// while((num++) < 1)
	// srand(time(0));
	while(true)
	{
		vector<ROW> m = get_matrix();


		vector<xpair> seq = reduce(m);

		vector<ROW> tmp_m = get_reduced_matrix(seq, m);

		cout << "minimal = " << counter << "   current = " << seq.size() << endl << endl;

		if(seq.size() < counter)
		{
			counter = seq.size();
			print_seq(m, tmp_m, seq);
		}
	}

	gettimeofday(&end, NULL);
	float time  = 1000000 * (end.tv_sec - start.tv_sec) + end.tv_usec - start.tv_usec;
	time /= 1000000;
	cout << "Time used = " << time << endl;

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
leaq 0xd8(%rsp), %rdi
xorl %esi, %esi
callq 0x2230
movq 0x7a85(%rip), %rbx      # 0x9fd8
leaq 0x4aaa(%rip), %rsi      # 0x7004
movl $0x7, %edx
movq %rbx, %rdi
callq 0x2180
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movl $0x186a0, %ebx          # imm = 0x186A0
leaq 0xc0(%rsp), %r14
movq %rsp, %r12
leaq 0x90(%rsp), %rbp
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
movq %r14, %rdi
callq 0x4cf8
leaq 0xa8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x2ea0
movq %r12, %rdi
movq %r15, %rsi
callq 0x68aa
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x25f3
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
leaq 0x48(%rsp), %rdi
movq %r12, %rsi
callq 0x2f16
movq %rbp, %rdi
movq %r14, %rsi
callq 0x2ea0
leaq 0x60(%rsp), %rdi
leaq 0x48(%rsp), %rsi
movq %rbp, %rdx
callq 0x4e00
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x263a
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2651
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movl $0xa, %edx
movq 0x797b(%rip), %rdi      # 0x9fd8
leaq 0x49a8(%rip), %rsi      # 0x700c
callq 0x2180
movq 0x7968(%rip), %rdi      # 0x9fd8
movl %ebx, %esi
callq 0x2260
movq %rax, %r15
movl $0xd, %edx
movq %rax, %rdi
leaq 0x498e(%rip), %rsi      # 0x7017
callq 0x2180
movq 0x8(%rsp), %rsi
subq (%rsp), %rsi
sarq $0x2, %rsi
imulq %r13, %rsi
movq %r15, %rdi
callq 0x20d0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movq 0x8(%rsp), %r15
subq (%rsp), %r15
sarq $0x2, %r15
imulq %r13, %r15
movslq %ebx, %rax
cmpq %rax, %r15
jae 0x27a1
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x2ea0
leaq 0x18(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x2ea0
leaq 0x78(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2f16
leaq 0x30(%rsp), %rdi
leaq 0x18(%rsp), %rsi
movq %rbx, %rdx
callq 0x28fa
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x2770
movq 0x88(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2787
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x279e
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movl %r15d, %ebx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x27b8
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x27ce
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x25b0
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
jmp 0x25b0
movq %rax, %rbx
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x2816
movq 0x88(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
jmp 0x2816
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2832
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
jmp 0x2832
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x28a8
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
jmp 0x28a8
movq %rax, %rbx
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x2870
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
jmp 0x2870
movq %rax, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x28bf
movq 0x58(%rsp), %rsi
jmp 0x28b7
movq %rax, %rbx
jmp 0x28bf
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x28d5
movq 0xb8(%rsp), %rsi
jmp 0x28cd
movq %rax, %rbx
jmp 0x28d5
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x28bf
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x28d5
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x28f2
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2270