LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/octreegrid.cpp
// Function: myOctree::OctreeGrid()
void OctreeGrid() {

	std::cerr << "\n"  <<"Setting up grid" << std::endl;

	set_root_neighbours();

	//This is to be done after neighbours are set at that particular level
	exchange_ghost_values_of_level(0);

	//prints neighbours information
	//print_neighbour_information(nodes);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0x1179c(%rip), %rbx     # 0x14ff0
leaq 0xdad8(%rip), %rsi      # 0x11333
movl $0x1, %edx
movq %rbx, %rdi
callq 0x2230
leaq 0xd8e8(%rip), %rsi      # 0x11157
movl $0xf, %edx
movq %rbx, %rdi
callq 0x2230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
callq 0x3431
xorl %edi, %edi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x370b
nop
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/adapt.cpp
// Function: myOctree::refine_nodes()
void refine_nodes() {

        create_list_of_leaf_nodes();

        for (std::list<Octree*>::iterator i = leaf_nodes.begin(), end = leaf_nodes.end(); i != end; ++i) {

                if((*i)->get_level() >= max_level)
                        continue;

                if((*i)->setToRefine)
                        (*i)->refine();

        }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
callq 0x2f28
leaq 0x11855(%rip), %rbx     # 0x15220
movq (%rbx), %r14
cmpq %rbx, %r14
je 0x39f7
movq 0x10(%r14), %rdi
callq 0x40ba
cmpl 0x11c32(%rip), %eax     # 0x15614
jge 0x39f2
movq 0x10(%r14), %rdi
cmpb $0x1, (%rdi)
jne 0x39f2
callq 0x4282
movq (%r14), %r14
jmp 0x39ce
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/adapt.cpp
// Function: myOctree::coarsen_nodes()
void coarsen_nodes() {

        create_list_of_leaf_nodes();

        for (std::list<Octree*>::iterator i = nodes.begin(), end = nodes.end(); i != end;) {

                if((*i)->setToCoarsen && !((*i)->isRootNode()) && ((*i)->isLeafNode())) {

                        //printf("deleting\n");
                        //setting the children of its parent to NULL
                        for(int n=0; n<2; n++) {
                                for(int m=0; m<2; m++) {
                                        for(int l=0; l<2; l++) {
                                                (*i)->get_parent()->set_child_null_at(l, m, n);
                                        }       
                                }       
                        }       

                        i = nodes.erase(i);
                }
                else {
                        ++i;
                }       
        }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
callq 0x2f28
leaq 0x117f2(%rip), %r13     # 0x15208
movq (%r13), %rbx
cmpq %r13, %rbx
je 0x3ab3
movq 0x10(%rbx), %rdi
cmpb $0x1, 0x1(%rdi)
jne 0x3aab
callq 0x4052
testb %al, %al
jne 0x3aab
movq 0x10(%rbx), %rdi
callq 0x4040
testb %al, %al
je 0x3aab
xorl %r14d, %r14d
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x10(%rbx), %rdi
callq 0x4116
movq %rax, %rdi
movl %r12d, %esi
movl %r15d, %edx
movl %r14d, %ecx
callq 0x40ec
incl %r12d
cmpl $0x1, %r12d
je 0x3a4c
leal 0x1(%r15), %eax
testl %r15d, %r15d
movl %eax, %r15d
je 0x3a49
leal 0x1(%r14), %eax
testl %r14d, %r14d
movl %eax, %r14d
je 0x3a46
movq (%rbx), %r14
decq 0x10(%r13)
movq %rbx, %rdi
callq 0x2310
movl $0x18, %esi
movq %rbx, %rdi
callq 0x2200
movq %r14, %rbx
jmp 0x3a1a
movq (%rbx), %rbx
jmp 0x3a1a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/adapt.cpp
// Function: myOctree::recheck_siblings_coarsen_flags()
void recheck_siblings_coarsen_flags() {

        create_list_of_leaf_nodes();


        for (std::list<Octree*>::iterator it = leaf_nodes.begin(), end = leaf_nodes.end(); it != end; ++it) {
	
		if((*it)->setToCoarsen == true)	{
			
                        for(int n=0; n<2; n++) {
                                for(int m=0; m<2; m++) {
                                        for(int l=0; l<2; l++) {
						if((*it)->get_parent()->get_child_at(l,m,n)->setToCoarsen == false)
							(*it)->setToCoarsen = false;
					}
				}
			}
		}
	}		

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
callq 0x2f28
leaq 0x11256(%rip), %r12     # 0x15220
movq (%r12), %r13
cmpq %r12, %r13
je 0x4030
movq 0x10(%r13), %rax
cmpb $0x1, 0x1(%rax)
jne 0x402a
xorl %ebx, %ebx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x10(%r13), %rdi
callq 0x4116
movq %rax, %rdi
movl %r15d, %esi
movl %r14d, %edx
movl %ebx, %ecx
callq 0x40c6
cmpb $0x0, 0x1(%rax)
jne 0x400c
movq 0x10(%r13), %rax
movb $0x0, 0x1(%rax)
incl %r15d
cmpl $0x1, %r15d
je 0x3fe5
leal 0x1(%r14), %eax
testl %r14d, %r14d
movl %eax, %r14d
je 0x3fe2
leal 0x1(%rbx), %eax
testl %ebx, %ebx
movl %eax, %ebx
je 0x3fdf
movq (%r13), %r13
jmp 0x3fce
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/octree.cpp
// Function: myOctree::Octree::get_relative_location(int*, int*, int*)
void Octree::get_relative_location(int* i, int* j, int* k) {

	if(this->isRootNode()) {
             	std::cerr << "Error!: This is root node, no siblings at root node. " << std::endl;
              	exit(1);
       	}

	for(int n=0; n<2; n++) {
		for(int m=0; m<2; m++) {
     			for(int l=0; l<2; l++) {
                      		if(this->get_parent()->get_child_at(l,m,n) == this) {
                              		*i = l;
					*j = m;
					*k = n;
				}
                        }
            	}
       	}	

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0xe8(%rdi), %rax
testq %rax, %rax
je 0x418b
addq $0xa0, %rax
xorl %r8d, %r8d
movq %rax, %r9
xorl %r10d, %r10d
movq %r9, %r11
xorl %ebx, %ebx
cmpq %rdi, (%r11)
jne 0x4157
movl %ebx, (%rsi)
movl %r10d, (%rdx)
movl %r8d, (%rcx)
incq %rbx
addq $0x20, %r11
cmpq $0x1, %rbx
je 0x414a
leaq 0x1(%r10), %r11
addq $0x10, %r9
testq %r10, %r10
movq %r11, %r10
je 0x4145
leaq 0x1(%r8), %r9
addq $0x8, %rax
testq %r8, %r8
movq %r9, %r8
je 0x413f
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x10e5e(%rip), %rdi     # 0x14ff0
leaq 0xcff7(%rip), %rsi      # 0x11190
callq 0x21e0
movq %rax, %rdi
callq 0x2100
movl $0x1, %edi
callq 0x2250
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/octree.cpp
// Function: myOctree::Octree::set_to_refine_with_nesting()
void Octree::set_to_refine_with_nesting() {

	//set refinement criteria
	this->setToRefine = true;
	
	//check nesting
	if(!(this->isRootNode())) {

		for(int m=0;m<3;m++) {
                	for(int n=0;n<2;n++) {	
				if(this->neighbour[m][n]==NULL && this->bc[m][n]==NONE) {
                      			if(!(this->parent->neighbour[m][n]->setToRefine==true)) { 
                              			this->parent->neighbour[m][n]->set_to_refine_with_nesting();     
                      			}
              			}
			}
		}	
	}
}

// Assembly:
movb $0x1, (%rdi)
cmpq $0x0, 0xe8(%rdi)
je 0x423b
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r13
leaq 0x8(%rdi), %r14
leaq 0x38(%rdi), %r15
movl $0x8, %r12d
xorl %eax, %eax
movq %rax, -0x30(%rbp)
xorl %ebx, %ebx
cmpq $0x0, (%r14,%rbx,2)
jne 0x420a
cmpl $0x0, (%r15,%rbx)
jne 0x420a
movq 0xe8(%r13), %rax
addq %r12, %rax
movq (%rax,%rbx,2), %rdi
cmpb $0x0, (%rdi)
jne 0x420a
callq 0x41b0
addq $0x4, %rbx
cmpq $0x4, %rbx
je 0x41e4
movq -0x30(%rbp), %rax
incq %rax
addq $0x10, %r14
addq $0x8, %r15
addq $0x10, %r12
cmpq $0x3, %rax
jne 0x41de
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/octree.cpp
// Function: myOctree::Octree::set_to_coarsen_with_nesting()
void Octree::set_to_coarsen_with_nesting() {
	
	bool criteria;	
	criteria = true;

	for(int m=0;m<3;m++) {
		for(int n=0;n<2;n++) {
			if(this->neighbour[m][n]) {
		//std::cerr << "\n" << "hi" << std::endl;
              			if(!(this->neighbour[m][n]->isLeafNode())) {
                      			criteria = false;
              			}
      			}     	
		}
	}	

	this->setToCoarsen = criteria;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x8(%rdi), %rcx
movb $0x1, %al
xorl %edx, %edx
xorl %esi, %esi
xorl %r8d, %r8d
movq (%rcx,%r8,8), %r9
testq %r9, %r9
je 0x4264
cmpq $0x0, 0xa0(%r9)
movzbl %al, %eax
cmovnel %edx, %eax
incq %r8
cmpq $0x1, %r8
je 0x424d
incq %rsi
addq $0x10, %rcx
cmpq $0x3, %rsi
jne 0x424a
andb $0x1, %al
movb %al, 0x1(%rdi)
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/octree.cpp
// Function: myOctree::Octree::Octree(myOctree::Octree const&)
Octree::Octree(const Octree &obj) {
    
//	std::cerr << " copy constructor of octree is working " << std::endl;

  	x_min = obj.x_min;
    	y_min = obj.y_min;
    	z_min = obj.z_min;
    	x_max = obj.x_max;
    	y_max = obj.y_max;
    	z_max = obj.z_max;
    	x_centre = obj.x_centre;
    	y_centre = obj.y_centre;
    	z_centre = obj.z_centre;
    	level = obj.level;

    	for(int i=0; i<2; i++) {
        	for(int j=0; j<2; j++) {
            		for(int k=0; k<2; k++)
                		children[i][j][k] = obj.children[i][j][k];
        	}
    	}

    	parent = obj.parent;
    	block_data = new Block(*(obj.block_data));
	setToRefine = obj.setToRefine;
	setToCoarsen = obj.setToCoarsen;

	number = obj.number;

	//neighbors
	for(int m=0;m<3;m++) {
		for(int n=0;n<2;n++) {
			neighbour[m][n] = obj.neighbour[m][n];
		}
	}	
	
	//boundary conditions
	for(int m=0;m<3;m++) {
		for(int n=0;n<2;n++) {
			bc[m][n] = obj.bc[m][n];
		}
	}	
    	

	nodes.push_back(this);
 
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movsd 0x68(%rsi), %xmm0
movsd %xmm0, 0x68(%rdi)
movsd 0x78(%rsi), %xmm0
movsd %xmm0, 0x78(%rdi)
movsd 0x88(%rsi), %xmm0
movsd %xmm0, 0x88(%rdi)
movsd 0x70(%rsi), %xmm0
movsd %xmm0, 0x70(%rdi)
movsd 0x80(%rsi), %xmm0
movsd %xmm0, 0x80(%rdi)
movsd 0x90(%rsi), %xmm0
movsd %xmm0, 0x90(%rdi)
movsd 0x50(%rsi), %xmm0
movsd %xmm0, 0x50(%rdi)
movsd 0x58(%rsi), %xmm0
movsd %xmm0, 0x58(%rdi)
movsd 0x60(%rsi), %xmm0
movsd %xmm0, 0x60(%rdi)
movl 0xf0(%rsi), %eax
movl %eax, 0xf0(%rdi)
movl $0xa0, %eax
leaq (%rsi,%rax), %rcx
addq %rdi, %rax
xorl %edx, %edx
movq %rax, %rsi
movq %rcx, %rdi
xorl %r8d, %r8d
xorl %r9d, %r9d
movq (%rdi,%r9,8), %r10
movq %r10, (%rsi,%r9,8)
incq %r9
cmpq $0x1, %r9
je 0x49b8
leaq 0x1(%r8), %r9
addq $0x10, %rdi
addq $0x10, %rsi
testq %r8, %r8
movq %r9, %r8
je 0x49b5
leaq 0x1(%rdx), %rsi
addq $0x20, %rcx
addq $0x20, %rax
testq %rdx, %rdx
movq %rsi, %rdx
je 0x49ac
movq 0xe8(%r14), %rax
movq %rax, 0xe8(%rbx)
movl $0x90, %edi
callq 0x21f0
movq %rax, %r15
movq 0xe0(%r14), %rsi
movq %rax, %rdi
callq 0x5d68
movq %r15, 0xe0(%rbx)
movb (%r14), %al
movb %al, (%rbx)
movb 0x1(%r14), %al
movb %al, 0x1(%rbx)
movl 0x98(%r14), %eax
movl %eax, 0x98(%rbx)
leaq 0x8(%r14), %rax
leaq 0x8(%rbx), %rcx
xorl %edx, %edx
xorl %esi, %esi
movq (%rax,%rsi,8), %rdi
movq %rdi, (%rcx,%rsi,8)
incq %rsi
cmpq $0x1, %rsi
je 0x4a47
incq %rdx
addq $0x10, %rax
addq $0x10, %rcx
cmpq $0x3, %rdx
jne 0x4a45
addq $0x38, %r14
leaq 0x38(%rbx), %rax
xorl %ecx, %ecx
xorl %edx, %edx
movl (%r14,%rdx,4), %esi
movl %esi, (%rax,%rdx,4)
incq %rdx
cmpq $0x1, %rdx
je 0x4a75
incq %rcx
addq $0x8, %r14
addq $0x8, %rax
cmpq $0x3, %rcx
jne 0x4a73
movl $0x18, %edi
callq 0x21f0
movq %rbx, 0x10(%rax)
leaq 0x1075d(%rip), %rbx     # 0x15208
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2060
incq 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x90, %esi
movq %r15, %rdi
callq 0x2200
movq %rbx, %rdi
callq 0x2340
nop
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/octree.cpp
// Function: myOctree::Octree::Octree(double, double, double, double, double, double, int)
Octree::Octree( double x1, double x2, double y1, double y2, double z1, double z2, int l ) : x_min(x1), x_max(x2), y_min(y1), y_max(y2), z_min(z1), z_max(z2), level(l)   {
//	std::cerr << " parametrized constructor of octree is working " << std::endl;
    
    	for(int i=0; i<2; i++) {
        	for(int j=0; j<2; j++) {
            		for(int k=0; k<2; k++)
                		children[i][j][k] = NULL;
        	}
    	}
    
	parent = NULL;
   	setToRefine = false;
	setToCoarsen = false; 
	
	//neighbors
	for(int m=0;m<3;m++) {
		for(int n=0;n<2;n++) {
			neighbour[m][n] = NULL;
		}
	}	
   
	//boundary conditions
	for(int m=0;m<3;m++) {
		for(int n=0;n<2;n++) {
			bc[m][n] = NONE;
		}
	}	

	number = 0;
 
    	x_centre = (x_min + x_max ) / 2.0;
    	y_centre = (y_min + y_max ) / 2.0;
    	z_centre = (z_min + z_max ) / 2.0;
    
    
    	//creating block to assign it to the data
    	Block new_block(x_min, x_max, y_min, y_max, z_min, z_max);
    	block_data = new Block(new_block);
    
    	nodes.push_back(this);
    
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rdi, %rbx
movsd %xmm0, 0x68(%rdi)
movsd %xmm1, 0x70(%rdi)
movsd %xmm2, 0x78(%rdi)
movsd %xmm3, 0x80(%rdi)
movsd %xmm4, 0x88(%rdi)
movsd %xmm5, 0x90(%rdi)
movl %esi, 0xf0(%rdi)
xorps %xmm6, %xmm6
movups %xmm6, 0xa0(%rdi)
movups %xmm6, 0xb0(%rdi)
movups %xmm6, 0xc0(%rdi)
movups %xmm6, 0xd0(%rdi)
xorl %eax, %eax
movq %rax, 0xe8(%rdi)
movw $0x0, (%rdi)
movups %xmm6, 0x8(%rdi)
movups %xmm6, 0x18(%rdi)
movups %xmm6, 0x28(%rdi)
movups %xmm6, 0x38(%rdi)
movq %rax, 0x48(%rdi)
movl $0x0, 0x98(%rdi)
movapd %xmm0, %xmm6
addsd %xmm1, %xmm6
movsd 0xc611(%rip), %xmm7     # 0x11188
mulsd %xmm7, %xmm6
movsd %xmm6, 0x50(%rdi)
movapd %xmm2, %xmm6
addsd %xmm3, %xmm6
mulsd %xmm7, %xmm6
movsd %xmm6, 0x58(%rdi)
movapd %xmm4, %xmm6
addsd %xmm5, %xmm6
mulsd %xmm7, %xmm6
movsd %xmm6, 0x60(%rdi)
leaq -0xa0(%rbp), %rdi
callq 0x4d44
movl $0x90, %edi
callq 0x21f0
movq %rax, %r14
leaq -0xa0(%rbp), %rsi
movq %rax, %rdi
callq 0x5d68
movq %r14, 0xe0(%rbx)
movl $0x18, %edi
callq 0x21f0
movq %rbx, 0x10(%rax)
leaq 0x10622(%rip), %rbx     # 0x15208
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2060
incq 0x10(%rbx)
leaq -0xa0(%rbp), %rdi
callq 0x60b0
addq $0x90, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x4c21
movq %rax, %rbx
movl $0x90, %esi
movq %r14, %rdi
callq 0x2200
jmp 0x4c24
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
callq 0x60b0
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/octree.cpp
// Function: myOctree::Octree::Octree()
Octree::Octree() {
//	std::cerr << " default constructor of octree is working " << std::endl;
    
    for(int i=0; i<2; i++) {
        for(int j=0; j<2; j++) {
            for(int k=0; k<2; k++)
                children[i][j][k] = NULL;
        }
    }
    
 	parent = NULL;
	setToRefine = false;
	setToCoarsen = false;   

	//neighbors
	for(int m=0;m<3;m++) {
		for(int n=0;n<2;n++) {
			neighbour[m][n] = NULL;
		}
	}	
	
	x_centre = 0.0;
	y_centre = 0.0;
	z_centre = 0.0;
	x_min = 0.0;
	y_min = 0.0;
	z_min = 0.0;
	x_max = 0.0;
	y_max = 0.0;
	z_max = 0.0;

	level = 0;

	//boundary conditions
	for(int m=0;m<3;m++) {
		for(int n=0;n<2;n++) {
			bc[m][n] = NONE;
		}
	}	

	number = 0;

    //creating block to assign it to the data
    Block new_block;
    block_data = new Block(new_block);
    
    nodes.push_back(this);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0xd0(%rdi)
movups %xmm0, 0xc0(%rdi)
movups %xmm0, 0xb0(%rdi)
movups %xmm0, 0xa0(%rdi)
movq $0x0, 0xe8(%rdi)
movw $0x0, (%rdi)
movups %xmm0, 0x8(%rdi)
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x28(%rdi)
xorl %eax, %eax
movl %eax, 0xf0(%rdi)
movups %xmm0, 0x38(%rdi)
movups %xmm0, 0x48(%rdi)
movups %xmm0, 0x58(%rdi)
movups %xmm0, 0x68(%rdi)
movups %xmm0, 0x78(%rdi)
movups %xmm0, 0x88(%rdi)
movl %eax, 0x98(%rdi)
leaq -0xa0(%rbp), %rdi
callq 0x57aa
movl $0x90, %edi
callq 0x21f0
movq %rax, %r14
leaq -0xa0(%rbp), %rsi
movq %rax, %rdi
callq 0x5d68
movq %r14, 0xe0(%rbx)
movl $0x18, %edi
callq 0x21f0
movq %rbx, 0x10(%rax)
leaq 0x10517(%rip), %rbx     # 0x15208
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2060
incq 0x10(%rbx)
leaq -0xa0(%rbp), %rdi
callq 0x60b0
addq $0x90, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x4d2c
movq %rax, %rbx
movl $0x90, %esi
movq %r14, %rdi
callq 0x2200
jmp 0x4d2f
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
callq 0x60b0
movq %rbx, %rdi
callq 0x2340
nop
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/block.cpp
// Function: myOctree::Block::~Block()
Block::~Block() {
  //		std::cerr << "destructor of block is working" << std::endl;

        delete mesh;
	delete field;

	for (int i = 0; i < scalar_fields.size(); ++i)
                        delete scalarfields[i];
   	
	delete scalarfields;

	for (int i = 0; i < vector_fields.size(); ++i)
                        delete vectorfields[i];
   	
	delete vectorfields;


	for (int i = 0; i < (iNx+2*pad); ++i) {
		for (int j = 0; j < (iNy+2*pad); ++j)
	      		delete [] flag[i][j];
	 
		delete [] flag[i];
	}
	
	delete [] flag;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0x60da
movq %r14, %rdi
callq 0x67be
movl $0x90, %esi
movq %r14, %rdi
callq 0x2200
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0x60f8
movq %r14, %rdi
callq 0x6c20
movl $0x50, %esi
movq %r14, %rdi
callq 0x2200
movq 0xf531(%rip), %rax      # 0x15630
cmpq 0xf522(%rip), %rax      # 0x15628
je 0x6147
xorl %r15d, %r15d
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %r14
testq %r14, %r14
je 0x612d
movq %r14, %rdi
callq 0x6c20
movl $0x50, %esi
movq %r14, %rdi
callq 0x2200
incq %r15
movq 0xf4f9(%rip), %rax      # 0x15630
subq 0xf4ea(%rip), %rax      # 0x15628
sarq $0x5, %rax
cmpq %r15, %rax
ja 0x610b
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x615a
movl $0x8, %esi
callq 0x2200
movq 0xf4e7(%rip), %rax      # 0x15648
cmpq 0xf4d8(%rip), %rax      # 0x15640
je 0x61a9
xorl %r15d, %r15d
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %r14
testq %r14, %r14
je 0x618f
movq %r14, %rdi
callq 0x67be
movl $0x90, %esi
movq %r14, %rdi
callq 0x2200
incq %r15
movq 0xf4af(%rip), %rax      # 0x15648
subq 0xf4a0(%rip), %rax      # 0x15640
sarq $0x5, %rax
cmpq %r15, %rax
ja 0x616d
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x61bc
movl $0x8, %esi
callq 0x2200
movl 0xf01e(%rip), %eax      # 0x151e0
addl %eax, %eax
addl 0xf48e(%rip), %eax      # 0x15658
jle 0x6244
xorl %r14d, %r14d
movl 0xf00b(%rip), %eax      # 0x151e0
addl %eax, %eax
addl 0xf47f(%rip), %eax      # 0x1565c
jle 0x6215
xorl %r15d, %r15d
movq 0x88(%rbx), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15,8), %rdi
testq %rdi, %rdi
je 0x61fb
callq 0x2280
incq %r15
movslq 0xf457(%rip), %rax      # 0x1565c
movslq 0xefd4(%rip), %rcx      # 0x151e0
leaq (%rax,%rcx,2), %rax
cmpq %rax, %r15
jl 0x61e2
movq 0x88(%rbx), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x622a
callq 0x2280
incq %r14
movslq 0xf424(%rip), %rax      # 0x15658
movslq 0xefa5(%rip), %rcx      # 0x151e0
leaq (%rax,%rcx,2), %rax
cmpq %rax, %r14
jl 0x61cf
movq 0x88(%rbx), %rdi
addq $0x8, %rsp
testq %rdi, %rdi
je 0x625f
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2280
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/vecfield.cpp
// Function: myOctree::VecField::VecField(int, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
VecField::VecField( int N_x, int N_y, int N_z, std::string info ) : Nx(N_x), Ny(N_y), Nz(N_z), name(info) {
                //std::cerr << "parametrized constructor of vecfield is working" << std::endl; 
                
        N = Nx*Ny*Nz;
        x = new double** [Nx];
        y = new double** [Nx];
        z = new double** [Nx];
        for(int i=0;i<Nx;i++) {
                x[i] = new double* [Ny];
                y[i] = new double* [Ny];
                z[i] = new double* [Ny];
                for(int j=0;j<Ny;j++) {
                        x[i][j] = new double [Nz];
                        y[i][j] = new double [Nz];
                        z[i][j] = new double [Nz];
                }       
        }

	set_field(0.0);
       
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
movl %esi, (%rdi)
movl %edx, 0x4(%rdi)
movl %ecx, 0x8(%rdi)
addq $0x28, %rdi
leaq 0x38(%r14), %rax
movq %rax, -0x48(%rbp)
movq %rax, 0x28(%r14)
movq (%r8), %rsi
movq 0x8(%r8), %rdx
addq %rsi, %rdx
movq %rdi, -0x40(%rbp)
callq 0x391e
movslq (%r14), %rdx
movslq 0x4(%r14), %rcx
movq %rcx, %rax
movq %rcx, -0x30(%rbp)
imull %edx, %eax
movslq 0x8(%r14), %rbx
movl %ebx, %ecx
imull %eax, %ecx
leaq (,%rdx,8), %rax
movq %rdx, -0x38(%rbp)
testq %rdx, %rdx
movl %ecx, 0xc(%r14)
movq $-0x1, %r15
cmovnsq %rax, %r15
movq %r15, %rdi
callq 0x2030
movq %rax, 0x10(%r14)
movq %r15, %rdi
callq 0x2030
movq %rax, 0x18(%r14)
movq %r15, %rdi
callq 0x2030
movq %rax, 0x20(%r14)
cmpl $0x0, -0x38(%rbp)
jle 0x6432
movq -0x30(%rbp), %rcx
leaq (,%rcx,8), %rdx
testl %ecx, %ecx
movq $-0x1, %rax
cmovsq %rax, %rdx
movq %rdx, -0x50(%rbp)
movq %rbx, %r12
shlq $0x3, %r12
testl %ebx, %ebx
cmovsq %rax, %r12
movl %ecx, %ebx
xorl %r13d, %r13d
movq -0x50(%rbp), %r15
movq %r15, %rdi
callq 0x2030
movq 0x10(%r14), %rcx
movq %rax, (%rcx,%r13,8)
movq %r15, %rdi
callq 0x2030
movq 0x18(%r14), %rcx
movq %rax, (%rcx,%r13,8)
movq %r15, %rdi
callq 0x2030
movq 0x20(%r14), %rcx
movq %rax, (%rcx,%r13,8)
cmpl $0x0, -0x30(%rbp)
jle 0x6425
xorl %r15d, %r15d
movq %r12, %rdi
callq 0x2030
movq 0x10(%r14), %rcx
movq (%rcx,%r13,8), %rcx
movq %rax, (%rcx,%r15,8)
movq %r12, %rdi
callq 0x2030
movq 0x18(%r14), %rcx
movq (%rcx,%r13,8), %rcx
movq %rax, (%rcx,%r15,8)
movq %r12, %rdi
callq 0x2030
movq 0x20(%r14), %rcx
movq (%rcx,%r13,8), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
cmpq %r15, %rbx
jne 0x63e1
incq %r13
cmpq -0x38(%rbp), %r13
jne 0x63a4
xorps %xmm0, %xmm0
movq %r14, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6476
jmp 0x644f
jmp 0x644f
movq %rax, %r14
movq -0x40(%rbp), %rax
movq (%rax), %rdi
movq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x646d
movq (%rax), %rsi
incq %rsi
callq 0x2200
movq %r14, %rdi
callq 0x2340
nop
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/vecfield.cpp
// Function: myOctree::VecField::set_field(double)
void VecField::set_field(double value) {

        for(int i=0;i<this->Nx;i++) {
                for(int j=0;j<this->Ny;j++) {
                        for(int k=0;k<this->Nz;k++) {
                                this->x[i][j][k] = value;
                                this->y[i][j][k] = value;
                                this->z[i][j][k] = value;
                        }
                }
        }
}

// Assembly:
movslq (%rdi), %rax
testq %rax, %rax
jle 0x64f5
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl 0x4(%rdi), %ecx
movl 0x8(%rdi), %edx
xorl %esi, %esi
testl %ecx, %ecx
jle 0x64e5
movq 0x10(%rdi), %r8
movq 0x18(%rdi), %r9
movq 0x20(%rdi), %r10
xorl %r11d, %r11d
testl %edx, %edx
jle 0x64dd
movq (%r8,%rsi,8), %rbx
movq (%rbx,%r11,8), %rbx
movq (%r9,%rsi,8), %r14
movq (%r14,%r11,8), %r14
movq (%r10,%rsi,8), %r15
movq (%r15,%r11,8), %r15
xorl %r12d, %r12d
movsd %xmm0, (%rbx,%r12,8)
movsd %xmm0, (%r14,%r12,8)
movsd %xmm0, (%r15,%r12,8)
incq %r12
cmpq %r12, %rdx
jne 0x64c3
incq %r11
cmpq %rcx, %r11
jne 0x64a4
incq %rsi
cmpq %rax, %rsi
jne 0x6491
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/vecfield.cpp
// Function: myOctree::VecField::VecField()
VecField::VecField() {
 //             std::cerr << "default constructor of vecfield is working" << std::endl;
 
        Nx = 0;
        Ny = 0;
        Nz = 0;
        N = Nx*Ny*Nz;
        x = new double** [Nx];
        y = new double** [Nx];
        z = new double** [Nx];
        for(int i=0;i<Nx;i++) {
                x[i] = new double* [Ny];
                y[i] = new double* [Ny];
                z[i] = new double* [Ny];
                for(int j=0;j<Ny;j++) {
                        x[i][j] = new double [Nz];
                        y[i][j] = new double [Nz];
                        z[i][j] = new double [Nz];
                }
        }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x38(%rdi), %r15
movq %r15, 0x28(%rdi)
movq $0x0, 0x30(%rdi)
movb $0x0, 0x38(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
xorl %edi, %edi
callq 0x2030
movq %rax, 0x10(%rbx)
xorl %edi, %edi
callq 0x2030
movq %rax, 0x18(%rbx)
xorl %edi, %edi
callq 0x2030
movq %rax, 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x28(%rbx), %rdi
cmpq %r15, %rdi
je 0x6560
movq (%r15), %rsi
incq %rsi
callq 0x2200
movq %r14, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/vecfield.cpp
// Function: myOctree::VecField::~VecField()
VecField::~VecField() {
                //std::cerr << "destructor of vecfield is working" << std::endl;

        for (int i = 0; i < Nx; ++i) {
                for (int j = 0; j < Ny; ++j) {
                        delete [] x[i][j];
                        delete [] y[i][j];
                        delete [] z[i][j];
                }
                delete [] x[i];
                delete [] y[i];
                delete [] z[i];
        }

        delete [] x;
        delete [] y;
        delete [] z;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, (%rdi)
jle 0x6873
xorl %r14d, %r14d
cmpl $0x0, 0x4(%rbx)
jle 0x682e
xorl %r15d, %r15d
movq 0x10(%rbx), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15,8), %rdi
testq %rdi, %rdi
je 0x67f6
callq 0x2280
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15,8), %rdi
testq %rdi, %rdi
je 0x680c
callq 0x2280
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15,8), %rdi
testq %rdi, %rdi
je 0x6822
callq 0x2280
incq %r15
movslq 0x4(%rbx), %rax
cmpq %rax, %r15
jl 0x67e0
movq 0x10(%rbx), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x6840
callq 0x2280
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x6852
callq 0x2280
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x6864
callq 0x2280
incq %r14
movslq (%rbx), %rax
cmpq %rax, %r14
jl 0x67d7
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x6881
callq 0x2280
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x688f
callq 0x2280
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x689d
callq 0x2280
movq 0x28(%rbx), %rdi
addq $0x38, %rbx
cmpq %rbx, %rdi
je 0x68bf
movq (%rbx), %rsi
incq %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2200
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/field.cpp
// Function: myOctree::Field::Field(int, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Field::Field( int N_x, int N_y, int N_z, std::string info ) : Nx(N_x), Ny(N_y), Nz(N_z), name(info)  {
        //      std::cerr << "parametrized constructor of field is working" << std::endl;

        N = Nx*Ny*Nz;
        val = new double** [Nx];
        for(int i=0;i<Nx;i++) {
                val[i] = new double* [Ny];
                for(int j=0;j<Ny;j++) {
                        val[i][j] = new double [Nz];
                }
        }
	
	set_field(0.0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
movl %esi, (%rdi)
movl %edx, 0x4(%rdi)
movl %ecx, 0x8(%rdi)
addq $0x18, %rdi
leaq 0x28(%r14), %rax
movq %rax, -0x40(%rbp)
movq %rax, 0x18(%r14)
movq (%r8), %rsi
movq 0x8(%r8), %rdx
addq %rsi, %rdx
movq %rdi, -0x38(%rbp)
callq 0x391e
movslq (%r14), %r15
movslq 0x4(%r14), %rcx
movq %rcx, %rax
movq %rcx, -0x30(%rbp)
imull %r15d, %eax
movslq 0x8(%r14), %rbx
movl %ebx, %ecx
imull %eax, %ecx
leaq (,%r15,8), %rax
testq %r15, %r15
movl %ecx, 0xc(%r14)
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x2030
movq %rax, 0x10(%r14)
movq %r15, -0x50(%rbp)
testl %r15d, %r15d
jle 0x69c0
movq -0x30(%rbp), %rcx
leaq (,%rcx,8), %rdx
testl %ecx, %ecx
movq $-0x1, %rax
cmovsq %rax, %rdx
movq %rdx, -0x48(%rbp)
movq %rbx, %r12
shlq $0x3, %r12
testl %ebx, %ebx
cmovsq %rax, %r12
movl %ecx, %ebx
xorl %r13d, %r13d
movq -0x48(%rbp), %rdi
callq 0x2030
movq 0x10(%r14), %rcx
movq %rax, (%rcx,%r13,8)
cmpl $0x0, -0x30(%rbp)
jle 0x69b7
xorl %r15d, %r15d
movq %r12, %rdi
callq 0x2030
movq 0x10(%r14), %rcx
movq (%rcx,%r13,8), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
cmpq %r15, %rbx
jne 0x699b
incq %r13
cmpq -0x50(%rbp), %r13
jne 0x6981
xorps %xmm0, %xmm0
movq %r14, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6a04
jmp 0x69dd
jmp 0x69dd
movq %rax, %r14
movq -0x38(%rbp), %rax
movq (%rax), %rdi
movq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x69fb
movq (%rax), %rsi
incq %rsi
callq 0x2200
movq %r14, %rdi
callq 0x2340
nop
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/field.cpp
// Function: myOctree::Field::set_field(double)
void Field::set_field(double value) {

        for(int i=0;i<this->Nx;i++) {
                for(int j=0;j<this->Ny;j++) {
                        for(int k=0;k<this->Nz;k++) {
                                this->val[i][j][k] = value;
                        }
                }
        }
}

// Assembly:
movslq (%rdi), %rax
testq %rax, %rax
jle 0x6a51
pushq %rbp
movq %rsp, %rbp
movl 0x4(%rdi), %ecx
movl 0x8(%rdi), %edx
xorl %esi, %esi
testl %ecx, %ecx
jle 0x6a48
movq 0x10(%rdi), %r8
xorl %r9d, %r9d
testl %edx, %edx
jle 0x6a40
movq (%r8,%rsi,8), %r10
movq (%r10,%r9,8), %r10
xorl %r11d, %r11d
movsd %xmm0, (%r10,%r11,8)
incq %r11
cmpq %r11, %rdx
jne 0x6a32
incq %r9
cmpq %rcx, %r9
jne 0x6a23
incq %rsi
cmpq %rax, %rsi
jne 0x6a18
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/field.cpp
// Function: myOctree::Field::Field()
Field::Field() {
        //      std::cerr << "default constructor of field is working" << std::endl;

        Nx = 0;
        Ny = 0;
        Nz = 0;
        N = Nx*Ny*Nz;
        val = new double** [Nx];
        for(int i=0;i<Nx;i++) {
                val[i] = new double* [Ny];
                for(int j=0;j<Ny;j++) {
                        val[i][j] = new double [Nz];
                }
        }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x28(%rdi), %r15
movq %r15, 0x18(%rdi)
movq $0x0, 0x20(%rdi)
movb $0x0, 0x28(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
xorl %edi, %edi
callq 0x2030
movq %rax, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x18(%rbx), %rdi
cmpq %r15, %rdi
je 0x6aa6
movq (%r15), %rsi
incq %rsi
callq 0x2200
movq %r14, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/field.cpp
// Function: myOctree::Field::Field(myOctree::Field const&)
Field::Field(const Field &obj) {

        //      std::cerr << "copy constructor of field is working" << std::endl;

        Nx = obj.Nx;
        Ny = obj.Ny;
        Nz = obj.Nz;
        N = obj.N;
        name = obj.name;
        //      std::cerr << "field is" << name <<  std::endl;

        val = new double** [Nx];
        for(int i=0;i<Nx;i++) {
                val[i] = new double* [Ny];
                for(int j=0;j<Ny;j++) {
                        val[i][j] = new double [Nz];
                        memcpy(val[i][j],obj.val[i][j],sizeof(double)*Nz);
                }
        }

        for(int i = 0; i < 3; ++ i) {
                memcpy(&(bc[i][0]), &(obj.bc[i][0]), 2 * sizeof(FieldBc));
        }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %r15
addq $0x18, %rdi
leaq 0x28(%r15), %rax
movq %rax, -0x38(%rbp)
movq %rax, 0x18(%r15)
movq $0x0, 0x20(%r15)
movb $0x0, 0x28(%r15)
movl (%rsi), %eax
movl %eax, (%r15)
movl 0x4(%rsi), %eax
movl %eax, 0x4(%r15)
movl 0x8(%rsi), %eax
movl %eax, 0x8(%r15)
movl 0xc(%rsi), %eax
movl %eax, 0xc(%r15)
addq $0x18, %rsi
movq %rdi, -0x30(%rbp)
callq 0x2120
movslq (%r15), %rax
leaq (,%rax,8), %rcx
testq %rax, %rax
movq $-0x1, %rdi
cmovnsq %rcx, %rdi
callq 0x2030
movq %rax, 0x10(%r15)
cmpl $0x0, (%r15)
jle 0x6bd1
xorl %r13d, %r13d
movslq 0x4(%r15), %rax
leaq (,%rax,8), %rdi
testq %rax, %rax
movq $-0x1, %rax
cmovsq %rax, %rdi
callq 0x2030
movq 0x10(%r15), %rcx
movq %rax, (%rcx,%r13,8)
cmpl $0x0, 0x4(%r15)
jle 0x6bc2
xorl %ebx, %ebx
movslq 0x8(%r15), %rax
leaq (,%rax,8), %r12
testq %rax, %rax
movq %r12, %rdi
movq $-0x1, %rax
cmovsq %rax, %rdi
callq 0x2030
movq 0x10(%r15), %rcx
movq (%rcx,%r13,8), %rcx
movq %rax, (%rcx,%rbx,8)
movq 0x10(%r15), %rax
movq (%rax,%r13,8), %rax
movq (%rax,%rbx,8), %rdi
movq 0x10(%r14), %rax
movq (%rax,%r13,8), %rax
movq (%rax,%rbx,8), %rsi
movq %r12, %rdx
callq 0x2180
incq %rbx
movslq 0x4(%r15), %rax
cmpq %rax, %rbx
jl 0x6b68
incq %r13
movslq (%r15), %rax
cmpq %rax, %r13
jl 0x6b38
xorl %eax, %eax
movq 0x38(%r14,%rax,8), %rcx
movq %rcx, 0x38(%r15,%rax,8)
incq %rax
cmpq $0x3, %rax
jne 0x6bd3
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6bf9
jmp 0x6bf9
movq %rax, %r14
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x6c17
movq (%rax), %rsi
incq %rsi
callq 0x2200
movq %r14, %rdi
callq 0x2340
nop
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/field.cpp
// Function: myOctree::Field::~Field()
Field::~Field() {
        //      std::cerr << "delete constructor of field is working" << std::endl;

        for (int i = 0; i < Nx; ++i) {
                for (int j = 0; j < Ny; ++j)
                        delete [] val[i][j];

                delete [] val[i];
                }

        delete [] val;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, (%rdi)
jle 0x6c7d
xorl %r14d, %r14d
cmpl $0x0, 0x4(%rbx)
jle 0x6c60
xorl %r15d, %r15d
movq 0x10(%rbx), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15,8), %rdi
testq %rdi, %rdi
je 0x6c54
callq 0x2280
incq %r15
movslq 0x4(%rbx), %rax
cmpq %rax, %r15
jl 0x6c3e
movq 0x10(%rbx), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x6c72
callq 0x2280
incq %r14
movslq (%rbx), %rax
cmpq %rax, %r14
jl 0x6c35
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x6c8b
callq 0x2280
movq 0x18(%rbx), %rdi
addq $0x28, %rbx
cmpq %rbx, %rdi
je 0x6cad
movq (%rbx), %rsi
incq %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2200
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/vtk.cpp
// Function: myOctree::get_point(int, int, int, int, int)
long int get_point(int i, int j, int k, int Npx, int Npy) {

	int I = i+1;
	int J = j+1;
	int K = k+1;
	
	long int n;

	n = k * Npx * Npy + j * Npx + I; 	

	return n-1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
imull %r8d, %edx
addl %esi, %edx
imull %ecx, %edx
leal (%rdi,%rdx), %eax
incl %eax
cltq
decq %rax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/output.cpp
// Function: std::NodeBc_to_string[abi:cxx11](myOctree::node_boundary_flags)
string NodeBc_to_string(myOctree::NodeBc bcc) {

	string bc;

	if(bcc==myOctree::NONE) 
		bc = "N";

	if(bcc==myOctree::BOUNDARY) 
		bc = "B";

	if(bcc==myOctree::MPI_BOUNDARY) 
		bc = "MB";


	return bc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
cmpl $0x2, %esi
je 0xa774
movl %esi, %r14d
cmpl $0x1, %esi
je 0xa753
testl %r14d, %r14d
jne 0xa78f
leaq 0x6cbc(%rip), %rcx      # 0x113f1
movl $0x1, %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22e0
cmpl $0x2, %r14d
je 0xa774
cmpl $0x1, %r14d
jne 0xa78f
movq 0x8(%rbx), %rdx
leaq 0x6c96(%rip), %rcx      # 0x113f4
movl $0x1, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x22e0
cmpl $0x2, %r14d
jne 0xa78f
movq 0x8(%rbx), %rdx
leaq 0x6c74(%rip), %rcx      # 0x113f3
movl $0x2, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x22e0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0xa7b3
movq (%r15), %rsi
incq %rsi
callq 0x2200
movq %r14, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/input.cpp
// Function: std::string_to_NodeBc(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
myOctree::NodeBc string_to_NodeBc(string bc) {

	myOctree::NodeBc bcc;

	if(bc=="N")
		bcc = myOctree::NONE;

	if(bc=="B")
		bcc = myOctree::BOUNDARY;

	if(bc=="MPI_BOUNDARY")
		bcc = myOctree::MPI_BOUNDARY;
		
	return bcc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x650c(%rip), %rsi      # 0x113f1
callq 0x20a0
leaq 0x6503(%rip), %rsi      # 0x113f4
movq %rbx, %rdi
callq 0x20a0
xorl %r14d, %r14d
testl %eax, %eax
sete %r14b
leaq 0x6519(%rip), %rsi      # 0x11422
movq %rbx, %rdi
callq 0x20a0
testl %eax, %eax
movl $0x2, %eax
cmovnel %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/input.cpp
// Function: std::string_to_FieldBc(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
myOctree::FieldBc string_to_FieldBc(string bc) {

	myOctree::FieldBc bcc;

	if(bc=="N")
		bcc = myOctree::none;

	if(bc=="D")
		bcc = myOctree::dirichlet;
	
	if(bc=="NE")
		bcc = myOctree::neumann;

	if(bc=="MB")
		bcc = myOctree::mpi_boundary;
		
	return bcc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x64bc(%rip), %rsi      # 0x113f1
callq 0x20a0
leaq 0x64ee(%rip), %rsi      # 0x1142f
movq %rbx, %rdi
callq 0x20a0
xorl %r14d, %r14d
testl %eax, %eax
sete %r14b
leaq 0x64d8(%rip), %rsi      # 0x11431
movq %rbx, %rdi
callq 0x20a0
testl %eax, %eax
movl $0x2, %r15d
cmovnel %r14d, %r15d
leaq 0x647f(%rip), %rsi      # 0x113f3
movq %rbx, %rdi
callq 0x20a0
testl %eax, %eax
movl $0x3, %eax
cmovnel %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/input.cpp
// Function: std::read_max_level(std::basic_ifstream<char, std::char_traits<char>>&)
void read_max_level(ifstream& file) {

	string line, str;
	
	//Skips if a line is empty		
	getline(file, line);
	while(line.empty()) {
		getline(file, line);
	}

	if(line=="max_level") {

		file >> myOctree::max_level;
	
	}

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
leaq -0x30(%rbp), %r15
movq %r15, -0x10(%r15)
xorl %eax, %eax
movq %rax, -0x8(%r15)
movb %al, (%r15)
leaq -0x50(%rbp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
movq (%rdi), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %edx
leaq -0x40(%rbp), %rsi
movq %rbx, %rdi
callq 0x2370
leaq -0x40(%rbp), %r14
cmpq $0x0, -0x38(%rbp)
jne 0xd33f
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2370
jmp 0xd314
leaq 0x41f9(%rip), %rsi      # 0x1153f
leaq -0x40(%rbp), %rdi
callq 0x20a0
testl %eax, %eax
jne 0xd362
leaq 0x82ba(%rip), %rsi      # 0x15614
movq %rbx, %rdi
callq 0x2130
movq -0x60(%rbp), %rdi
cmpq %r12, %rdi
je 0xd377
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2200
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0xd38c
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2200
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0xd39b
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r12, %rdi
je 0xd3b3
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2200
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0xd3c8
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2200
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/input.cpp
// Function: std::read_input_file()
void read_input_file() {

	int blocknumber;
	string line, str;

	ifstream file ("../input/input.pfs"); 
	if(file.fail()) {
		cerr << "Error opening input file\n";
		exit(1);
	}

	if(file.peek() == ifstream::traits_type::eof()) {
		cerr << "Nothing in the input file\n";
		exit(1);
	}

	else {

		cerr << "\nReading input files" << endl;

		read_scalar_fields(file);

		read_vector_fields(file);
	
		blocknumber = read_blocks(file);

		read_scalar_field_Bc(file, blocknumber);

		read_vector_field_Bc(file, blocknumber);

		read_max_level(file);

	}

	file.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
leaq -0x48(%rbp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
movq %rax, -0x8(%r15)
movb %al, (%r15)
leaq 0x4142(%rip), %rsi      # 0x11549
leaq -0x260(%rbp), %rdi
movl $0x8, %edx
callq 0x2360
movq -0x260(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x240(%rbp,%rax)
jne 0xd52a
leaq -0x260(%rbp), %rdi
callq 0x20d0
cmpl $-0x1, %eax
je 0xd53f
movq 0x7ba3(%rip), %rbx      # 0x14ff0
leaq 0x4123(%rip), %rsi      # 0x11577
movl $0x14, %edx
movq %rbx, %rdi
callq 0x2230
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq 0x7b71(%rip), %rdi      # 0x14ff0
callq 0x2040
movq %rax, %rdi
callq 0x2150
leaq -0x260(%rbp), %rdi
callq 0xaf92
leaq -0x260(%rbp), %rdi
callq 0xb1e2
leaq -0x260(%rbp), %rdi
callq 0xb432
movl %eax, %ebx
leaq -0x260(%rbp), %rdi
movl %eax, %esi
callq 0xbb6a
leaq -0x260(%rbp), %rdi
movl %ebx, %esi
callq 0xc38c
leaq -0x260(%rbp), %rdi
callq 0xd2b8
leaq -0x260(%rbp), %rdi
callq 0x2070
leaq -0x260(%rbp), %rdi
callq 0x2080
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0xd507
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2200
movq -0x58(%rbp), %rdi
cmpq %r14, %rdi
je 0xd51c
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2200
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x7abf(%rip), %rdi      # 0x14ff0
leaq 0x3ec9(%rip), %rsi      # 0x11401
callq 0x21e0
jmp 0xd552
movq 0x7aaa(%rip), %rdi      # 0x14ff0
leaq 0x400f(%rip), %rsi      # 0x1155c
callq 0x21e0
movl $0x1, %edi
callq 0x2250
movq %rax, %rbx
jmp 0xd570
movq %rax, %rbx
leaq -0x260(%rbp), %rdi
callq 0x2080
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0xd585
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2200
movq -0x58(%rbp), %rdi
cmpq %r14, %rdi
je 0xd59a
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2200
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O1/suhasjains[P]AMR-Solver/src/multigrid.cpp
// Function: amrsolver::Trilinear_interpolate(double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double)
double Trilinear_interpolate(double x0,double x1, double x2, double y0, double y1, double y2, double z0, double z1, double z2, \
				double val0, double val1, double val2, double val3, double val4, double val5, double val6, double val7) {

	double N0, N1, N2, N3, N4, N5, N6, N7;
	double result;

	N0 = ((x1-x2)*(y1-y2)*(z2-z0))/((x1-x0)*(y1-y0)*(z1-z0));
	N1 = ((x1-x2)*(y2-y0)*(z2-z0))/((x1-x0)*(y1-y0)*(z1-z0));
	N2 = ((x2-x0)*(y1-y2)*(z2-z0))/((x1-x0)*(y1-y0)*(z1-z0));
	N3 = ((x2-x0)*(y2-y0)*(z2-z0))/((x1-x0)*(y1-y0)*(z1-z0));
	N4 = ((x1-x2)*(y1-y2)*(z1-z2))/((x1-x0)*(y1-y0)*(z1-z0));
	N5 = ((x1-x2)*(y2-y0)*(z1-z2))/((x1-x0)*(y1-y0)*(z1-z0));
	N6 = ((x2-x0)*(y1-y2)*(z1-z2))/((x1-x0)*(y1-y0)*(z1-z0));
	N7 = ((x2-x0)*(y2-y0)*(z1-z2))/((x1-x0)*(y1-y0)*(z1-z0));

	result = val0*N0 + val1*N1 + val2*N2 + val3*N3 + val4*N4 + val5*N5 + val6*N6 + val7*N7;

	return result;	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movapd %xmm0, %xmm8
movsd 0x10(%rbp), %xmm12
movapd %xmm1, %xmm9
subsd %xmm2, %xmm9
movapd %xmm4, %xmm0
subsd %xmm5, %xmm0
movapd %xmm9, %xmm10
mulsd %xmm0, %xmm10
movapd %xmm7, %xmm11
subsd %xmm12, %xmm7
subsd %xmm6, %xmm12
movapd %xmm10, %xmm13
mulsd %xmm12, %xmm13
subsd %xmm8, %xmm1
subsd %xmm3, %xmm4
mulsd %xmm1, %xmm4
subsd %xmm6, %xmm11
mulsd %xmm4, %xmm11
divsd %xmm11, %xmm13
subsd %xmm3, %xmm5
mulsd %xmm5, %xmm9
movapd %xmm9, %xmm3
mulsd %xmm12, %xmm3
divsd %xmm11, %xmm3
subsd %xmm8, %xmm2
mulsd %xmm2, %xmm0
movapd %xmm0, %xmm1
mulsd %xmm12, %xmm1
divsd %xmm11, %xmm1
mulsd %xmm5, %xmm2
mulsd %xmm2, %xmm12
divsd %xmm11, %xmm12
mulsd %xmm7, %xmm10
divsd %xmm11, %xmm10
mulsd %xmm7, %xmm9
divsd %xmm11, %xmm9
mulsd %xmm7, %xmm0
divsd %xmm11, %xmm0
mulsd %xmm2, %xmm7
divsd %xmm11, %xmm7
mulsd 0x20(%rbp), %xmm3
mulsd 0x18(%rbp), %xmm13
addsd %xmm3, %xmm13
mulsd 0x28(%rbp), %xmm1
addsd %xmm13, %xmm1
mulsd 0x30(%rbp), %xmm12
mulsd 0x38(%rbp), %xmm10
addsd %xmm1, %xmm12
addsd %xmm12, %xmm10
mulsd 0x40(%rbp), %xmm9
addsd %xmm10, %xmm9
mulsd 0x48(%rbp), %xmm0
addsd %xmm9, %xmm0
mulsd 0x50(%rbp), %xmm7
addsd %xmm7, %xmm0
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/xiangzejun[P]Optimizing_Implementations_of_Linear_Layers/strategy.cpp
// Function: get_trans_matrix(std::vector<std::bitset<32ul>, std::allocator<std::bitset<32ul>>>&, std::vector<std::bitset<32ul>, std::allocator<std::bitset<32ul>>>)
void get_trans_matrix(vector<ROW> &trans_m, vector<ROW> m)
{   
	trans_m.clear();
	for(int i = 0; i < m.size(); i++)
	{  
		bitset<SIZE> tmp(0);
		for (int j = 0; j < m.size(); j++)
		{
		tmp[m[0].size() - 1 - j] = m[j][m[0].size() - i - 1];
		}
		trans_m.push_back(tmp);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0x3aa7
movq %rax, 0x8(%r14)
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
je 0x3b4c
sarq $0x3, %rdx
xorl %r12d, %r12d
movq %rsp, %r15
movq $0x0, (%rsp)
movb $0x1f, %cl
subb %r12b, %cl
movl $0x1, %esi
shlq %cl, %rsi
cmpq $0x1, %rdx
adcq $0x0, %rdx
movl $0x1f, %ecx
xorl %edi, %edi
movq %rdi, %r8
btsq %rcx, %r8
btrq %rcx, %rdi
testq %rsi, (%rax)
cmovneq %r8, %rdi
movq %rdi, (%rsp)
addq $0x8, %rax
leaq (%rdx,%rcx), %r8
decq %r8
decq %rcx
cmpq $0x1f, %r8
jne 0x3ae5
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x3b27
movq (%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%r14)
jmp 0x3b32
movq %r14, %rdi
movq %r15, %rdx
callq 0x4bce
incq %r12
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r12, %rdx
ja 0x3ac1
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/xiangzejun[P]Optimizing_Implementations_of_Linear_Layers/strategy.cpp
// Function: build_table(std::vector<std::bitset<32ul>, std::allocator<std::bitset<32ul>>>, int*)
void build_table(vector<ROW> m, int tab[SIZE])
{
	int ind = 0;
	for (int i = 0; i < m.size(); i++)
	{
		for (int j = 0; j < m.size(); j++)
		{
			if (m[i].test(j))
			{
				ind = m.size() - 1 - j;
				break;
			}
		}
		tab[ind] = i;
	}
}

// Assembly:
pushq %rax
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
subq %rax, %rcx
je 0x3bad
sarq $0x3, %rcx
cmpq $0x1, %rcx
movq %rcx, %rdx
adcq $0x0, %rdx
decl %ecx
xorl %edi, %edi
xorl %r8d, %r8d
movq (%rax,%rdi,8), %r10
xorl %r9d, %r9d
cmpq $0x20, %r9
je 0x3baf
btq %r9, %r10
jb 0x3b98
incq %r9
cmpq %r9, %rdx
jne 0x3b82
jmp 0x3b9e
movl %ecx, %r8d
subl %r9d, %r8d
movslq %r8d, %r9
movl %edi, (%rsi,%r9,4)
incq %rdi
cmpq %rdx, %rdi
jne 0x3b7b
popq %rax
retq
leaq 0x34c1(%rip), %rdi      # 0x7077
leaq 0x34ad(%rip), %rsi      # 0x706a
movl $0x20, %edx
movl $0x20, %ecx
xorl %eax, %eax
callq 0x2210