#include "seq.hh"
#include <cassert>
#include <stdexcept>
#include "graph.hh"
#include "mse-grad.hh"
#include "ops-builder.hh"
#include "../runtime/node.hh"
#include "../memory/alloc.hh"

namespace ops
{

    Seq::Seq(std::vector<Op*> ops)
        : Op("seq", ops.back()->shape_get(), ops)
    {}

    void Seq::compile()
    {
        auto& g = Graph::instance();
        auto& clast = g.compiled(preds().back());

        std::vector<rt::Node*> nodes;
        for (auto p : preds())
            nodes.push_back(g.compiled(p).out_node);

        auto out_node = rt::Node::nop(nodes);
        g.add_compiled(this, {out_node}, {}, out_node, clast.out_shape, clast.out_data);
    }
}

	.file	"tmpxft_0023552d_00000000-6_seq.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4605:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4605:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EE11_M_allocateEm.isra.0, @function
_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EE11_M_allocateEm.isra.0:
.LFB5633:
	.cfi_startproc
	testq	%rdi, %rdi
	je	.L3
	movabsq	$1152921504606846975, %rax
	cmpq	%rdi, %rax
	jnb	.L4
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$2305843009213693951, %rax
	cmpq	%rdi, %rax
	jnb	.L5
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L5:
	call	_ZSt17__throw_bad_allocv@PLT
.L4:
	.cfi_def_cfa_offset 8
	salq	$3, %rdi
	jmp	_Znwm@PLT
.L3:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE5633:
	.size	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EE11_M_allocateEm.isra.0, .-_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EE11_M_allocateEm.isra.0
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4628:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	movq	%rax, %rdi
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4628:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev,"axG",@progbits,_ZNSt6vectorIPN3ops2OpESaIS2_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev
	.type	_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev, @function
_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev:
.LFB4960:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L12
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L12:
	ret
	.cfi_endproc
.LFE4960:
	.size	_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev, .-_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev
	.weak	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	.set	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev,_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev
	.section	.text._ZN3ops2OpD2Ev,"axG",@progbits,_ZN3ops2OpD5Ev,comdat
	.align 2
	.weak	_ZN3ops2OpD2Ev
	.type	_ZN3ops2OpD2Ev, @function
_ZN3ops2OpD2Ev:
.LFB4578:
	.cfi_startproc
	endbr64
	leaq	16+_ZTVN3ops2OpE(%rip), %rax
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	addq	$88, %rdi
	movq	%rax, -88(%rdi)
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	leaq	64(%rbx), %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L15
	movq	56(%rbx), %rsi
	subq	%rdi, %rsi
	call	_ZdlPvm@PLT
.L15:
	leaq	8(%rbx), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	.cfi_endproc
.LFE4578:
	.size	_ZN3ops2OpD2Ev, .-_ZN3ops2OpD2Ev
	.weak	_ZN3ops2OpD1Ev
	.set	_ZN3ops2OpD1Ev,_ZN3ops2OpD2Ev
	.section	.text._ZN3ops2OpD0Ev,"axG",@progbits,_ZN3ops2OpD5Ev,comdat
	.align 2
	.weak	_ZN3ops2OpD0Ev
	.type	_ZN3ops2OpD0Ev, @function
_ZN3ops2OpD0Ev:
.LFB4580:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	_ZN3ops2OpD1Ev
	movq	8(%rsp), %rdi
	movl	$112, %esi
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	jmp	_ZdlPvm@PLT
	.cfi_endproc
.LFE4580:
	.size	_ZN3ops2OpD0Ev, .-_ZN3ops2OpD0Ev
	.section	.text._ZN3ops3SeqD2Ev,"axG",@progbits,_ZN3ops3SeqD5Ev,comdat
	.align 2
	.weak	_ZN3ops3SeqD2Ev
	.type	_ZN3ops3SeqD2Ev, @function
_ZN3ops3SeqD2Ev:
.LFB5625:
	.cfi_startproc
	endbr64
	leaq	16+_ZTVN3ops3SeqE(%rip), %rax
	movq	%rax, (%rdi)
	jmp	_ZN3ops2OpD2Ev
	.cfi_endproc
.LFE5625:
	.size	_ZN3ops3SeqD2Ev, .-_ZN3ops3SeqD2Ev
	.weak	_ZN3ops3SeqD1Ev
	.set	_ZN3ops3SeqD1Ev,_ZN3ops3SeqD2Ev
	.section	.text._ZN3ops3SeqD0Ev,"axG",@progbits,_ZN3ops3SeqD5Ev,comdat
	.align 2
	.weak	_ZN3ops3SeqD0Ev
	.type	_ZN3ops3SeqD0Ev, @function
_ZN3ops3SeqD0Ev:
.LFB5627:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%rdi, 8(%rsp)
	call	_ZN3ops3SeqD1Ev
	movq	8(%rsp), %rdi
	movl	$112, %esi
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	jmp	_ZdlPvm@PLT
	.cfi_endproc
.LFE5627:
	.size	_ZN3ops3SeqD0Ev, .-_ZN3ops3SeqD0Ev
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"seq"
	.text
	.align 2
	.globl	_ZN3ops3SeqC2ESt6vectorIPNS_2OpESaIS3_EE
	.type	_ZN3ops3SeqC2ESt6vectorIPNS_2OpESaIS3_EE, @function
_ZN3ops3SeqC2ESt6vectorIPNS_2OpESaIS3_EE:
.LFB4581:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4581
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%edx, %edx
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rdi, %rbx
	subq	$96, %rsp
	.cfi_def_cfa_offset 144
	movq	8(%rsi), %r12
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	xorl	%eax, %eax
	subq	(%rsi), %r12
	movq	%rdx, 8(%rsp)
	movq	%rax, 32(%rsp)
	leaq	32(%rsp), %rbp
	movq	%rax, 40(%rsp)
	movq	%rax, 48(%rsp)
	movq	%rdx, 16(%rsp)
	movq	%rdx, 24(%rsp)
	je	.L36
	movabsq	$9223372036854775800, %rax
	cmpq	%r12, %rax
	jnb	.L27
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L40
.LEHB0:
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L27:
	movq	%r12, %rdi
	call	_Znwm@PLT
.LEHE0:
	movq	%rax, %rcx
	jmp	.L26
.L36:
	xorl	%ecx, %ecx
.L26:
	addq	%rcx, %r12
	movq	0(%r13), %rsi
	movq	%rcx, 8(%rsp)
	movq	%r12, 24(%rsp)
	movq	8(%r13), %r12
	movq	%rcx, 16(%rsp)
	movq	%r12, %r13
	subq	%rsi, %r13
	cmpq	$8, %r13
	jle	.L29
	movq	%rcx, %rdi
	movq	%r13, %rdx
	call	memmove@PLT
	movq	%rax, %rcx
	jmp	.L30
.L29:
	jne	.L30
	movq	(%rsi), %rax
	movq	%rax, (%rcx)
.L30:
	movq	-8(%r12), %rdi
	addq	%r13, %rcx
	leaq	8(%rsp), %r12
	movq	%rcx, 16(%rsp)
.LEHB1:
	call	_ZNK3ops2Op9shape_getEv@PLT
.LEHE1:
	leaq	3+.LC0(%rip), %rdx
	leaq	72(%rsp), %rdi
	movq	%rax, %r14
	leaq	-3(%rdx), %rsi
	movq	%rdi, 56(%rsp)
	leaq	56(%rsp), %r13
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	56(%rsp), %rax
	movq	%rbp, %r8
	movq	%r12, %rcx
	movq	$3, 64(%rsp)
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	movb	$0, 3(%rax)
.LEHB2:
	call	_ZN3ops2OpC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_5ShapeESt6vectorIPS0_SaISD_EESF_@PLT
.LEHE2:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r12, %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	movq	%rbp, %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	leaq	16+_ZTVN3ops3SeqE(%rip), %rax
	movq	%rax, (%rbx)
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L35
	jmp	.L40
.L39:
	endbr64
	movq	%rax, %rbx
.L31:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L32
.L38:
	endbr64
	movq	%rax, %rbx
.L32:
	movq	%r12, %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	jmp	.L33
.L37:
	endbr64
	movq	%rax, %rbx
.L33:
	movq	%rbp, %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L40
	movq	%rbx, %rdi
.LEHB3:
	call	_Unwind_Resume@PLT
.LEHE3:
.L40:
	call	__stack_chk_fail@PLT
.L35:
	addq	$96, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4581:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4581:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4581-.LLSDACSB4581
.LLSDACSB4581:
	.uleb128 .LEHB0-.LFB4581
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L37-.LFB4581
	.uleb128 0
	.uleb128 .LEHB1-.LFB4581
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L38-.LFB4581
	.uleb128 0
	.uleb128 .LEHB2-.LFB4581
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L39-.LFB4581
	.uleb128 0
	.uleb128 .LEHB3-.LFB4581
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
.LLSDACSE4581:
	.text
	.size	_ZN3ops3SeqC2ESt6vectorIPNS_2OpESaIS3_EE, .-_ZN3ops3SeqC2ESt6vectorIPNS_2OpESaIS3_EE
	.globl	_ZN3ops3SeqC1ESt6vectorIPNS_2OpESaIS3_EE
	.set	_ZN3ops3SeqC1ESt6vectorIPNS_2OpESaIS3_EE,_ZN3ops3SeqC2ESt6vectorIPNS_2OpESaIS3_EE
	.section	.text._ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev,"axG",@progbits,_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED5Ev,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
	.type	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev, @function
_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev:
.LFB4978:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L43
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L43:
	ret
	.cfi_endproc
.LFE4978:
	.size	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev, .-_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
	.weak	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED1Ev
	.set	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED1Ev,_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
	.section	.text._ZNSt12_Vector_baseIPfSaIS0_EED2Ev,"axG",@progbits,_ZNSt12_Vector_baseIPfSaIS0_EED5Ev,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseIPfSaIS0_EED2Ev
	.type	_ZNSt12_Vector_baseIPfSaIS0_EED2Ev, @function
_ZNSt12_Vector_baseIPfSaIS0_EED2Ev:
.LFB5002:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L45
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L45:
	ret
	.cfi_endproc
.LFE5002:
	.size	_ZNSt12_Vector_baseIPfSaIS0_EED2Ev, .-_ZNSt12_Vector_baseIPfSaIS0_EED2Ev
	.weak	_ZNSt12_Vector_baseIPfSaIS0_EED1Ev
	.set	_ZNSt12_Vector_baseIPfSaIS0_EED1Ev,_ZNSt12_Vector_baseIPfSaIS0_EED2Ev
	.section	.rodata._ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_.str1.1,"aMS",@progbits,1
.LC1:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_,"axG",@progbits,_ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_
	.type	_ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_, @function
_ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_:
.LFB5225:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movabsq	$1152921504606846975, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rax
	movq	(%rdi), %r14
	movq	%rax, (%rsp)
	subq	%r14, %rax
	sarq	$3, %rax
	cmpq	%rbx, %rax
	jne	.L48
	leaq	.LC1(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L48:
	movq	%rdx, %rcx
	cmpq	%r14, (%rsp)
	movl	$1, %edx
	movq	%rdi, %r13
	cmovne	%rax, %rdx
	movq	%rsi, %rbp
	addq	%rdx, %rax
	jc	.L52
	movabsq	$1152921504606846975, %rbx
	cmpq	%rbx, %rax
	cmovbe	%rax, %rbx
.L52:
	movq	%rbx, %rdi
	movq	%rcx, 8(%rsp)
	movq	%rbp, %r15
	call	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EE11_M_allocateEm.isra.0
	movq	8(%rsp), %rcx
	subq	%r14, %r15
	movq	%rax, %r12
	movq	(%rcx), %rax
	movq	%rax, (%r12,%r15)
	testq	%r15, %r15
	jle	.L53
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	memmove@PLT
.L53:
	movq	(%rsp), %rax
	leaq	8(%r12,%r15), %rdx
	subq	%rbp, %rax
	testq	%rax, %rax
	jle	.L54
	movq	%rdx, %rdi
	movq	%rbp, %rsi
	movq	%rax, %rcx
	rep movsb
.L54:
	leaq	(%rdx,%rax), %rbp
	testq	%r14, %r14
	je	.L55
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L55:
	leaq	(%r12,%rbx,8), %rax
	movq	%r12, 0(%r13)
	movq	%rbp, 8(%r13)
	movq	%rax, 16(%r13)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5225:
	.size	_ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_, .-_ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_
	.text
	.align 2
	.globl	_ZN3ops3Seq7compileEv
	.type	_ZN3ops3Seq7compileEv, @function
_ZN3ops3Seq7compileEv:
.LFB4583:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4583
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	movq	%rdi, %r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
.LEHB4:
	call	_ZN3ops5Graph8instanceEv@PLT
	movq	%r12, %rsi
	movq	%rax, -152(%rbp)
	leaq	-80(%rbp), %rax
	movq	%rax, %rdi
	movq	%rax, -136(%rbp)
	call	_ZN3ops2Op5predsEv@PLT
.LEHE4:
	movq	-72(%rbp), %rax
	movq	-152(%rbp), %rdi
	movq	-8(%rax), %rsi
.LEHB5:
	call	_ZN3ops5Graph8compiledEPNS_2OpE@PLT
.LEHE5:
	movq	-136(%rbp), %rdi
	movq	%rax, %rbx
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	xorl	%edi, %edi
	movq	%r12, %rsi
	movq	%rdi, -128(%rbp)
	movq	%rdi, -120(%rbp)
	movq	%rdi, -112(%rbp)
	movq	-136(%rbp), %rdi
.LEHB6:
	call	_ZN3ops2Op5predsEv@PLT
.LEHE6:
	movq	-72(%rbp), %r14
	movq	-80(%rbp), %r13
	leaq	-128(%rbp), %r15
.L63:
	cmpq	%r13, %r14
	je	.L87
	movq	0(%r13), %rsi
	movq	-152(%rbp), %rdi
.LEHB7:
	call	_ZN3ops5Graph8compiledEPNS_2OpE@PLT
	movq	-120(%rbp), %rsi
	cmpq	-112(%rbp), %rsi
	je	.L64
	movq	56(%rax), %rax
	addq	$8, %rsi
	movq	%rax, -8(%rsi)
	movq	%rsi, -120(%rbp)
	jmp	.L65
.L64:
	leaq	56(%rax), %rdx
	movq	%r15, %rdi
	call	_ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_
.LEHE7:
.L65:
	addq	$8, %r13
	jmp	.L63
.L87:
	movq	-136(%rbp), %rdi
	leaq	-128(%rbp), %r14
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	movq	%r14, %rdi
.LEHB8:
	call	_ZN2rt4Node3nopERKSt6vectorIPS0_SaIS2_EE@PLT
.LEHE8:
	xorl	%esi, %esi
	movq	%rax, %r13
	movl	$1, %edi
	movq	88(%rbx), %r15
	leaq	-104(%rbp), %rax
	movq	%rsi, -80(%rbp)
	addq	$64, %rbx
	movq	%rsi, -72(%rbp)
	movq	%rsi, -64(%rbp)
	movq	%rsi, -104(%rbp)
	movq	%rsi, -96(%rbp)
	movq	%rsi, -88(%rbp)
	movq	%rax, -144(%rbp)
.LEHB9:
	call	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EE11_M_allocateEm.isra.0
.LEHE9:
	leaq	8(%rax), %rdx
	movq	%rax, -104(%rbp)
	movq	%rbx, %r9
	movq	%r13, %r8
	movq	%rdx, -88(%rbp)
	movq	%r12, %rsi
	movq	%rdx, -96(%rbp)
	movq	%r13, (%rax)
	pushq	%rcx
	movq	-136(%rbp), %rcx
	movq	-144(%rbp), %rdx
	movq	-152(%rbp), %rdi
	pushq	%r15
.LEHB10:
	.cfi_escape 0x2e,0x10
	call	_ZN3ops5Graph12add_compiledEPNS_2OpESt6vectorIPN2rt4NodeESaIS6_EES3_IPfSaIS9_EES6_RKNS_5ShapeES9_@PLT
.LEHE10:
	movq	-144(%rbp), %rdi
	popq	%rax
	popq	%rdx
	call	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
	movq	-136(%rbp), %rdi
	call	_ZNSt12_Vector_baseIPfSaIS0_EED2Ev
	movq	%r14, %rdi
	call	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L76
	jmp	.L82
.L81:
	endbr64
	jmp	.L85
.L77:
	endbr64
	movq	%rax, %rbx
.L70:
	movq	-136(%rbp), %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	jmp	.L86
.L78:
	endbr64
	movq	%rax, %rbx
.L72:
	movq	-136(%rbp), %rdi
	call	_ZNSt6vectorIPN3ops2OpESaIS2_EED1Ev
	jmp	.L73
.L80:
	endbr64
.L85:
	movq	%rax, %rbx
.L74:
	movq	-144(%rbp), %rdi
	call	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
	movq	-136(%rbp), %rdi
	call	_ZNSt12_Vector_baseIPfSaIS0_EED2Ev
	jmp	.L73
.L79:
	endbr64
	movq	%rax, %rbx
.L73:
	leaq	-128(%rbp), %rdi
	call	_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev
.L86:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L82
	movq	%rbx, %rdi
.LEHB11:
	call	_Unwind_Resume@PLT
.LEHE11:
.L82:
	call	__stack_chk_fail@PLT
.L76:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4583:
	.section	.gcc_except_table
.LLSDA4583:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4583-.LLSDACSB4583
.LLSDACSB4583:
	.uleb128 .LEHB4-.LFB4583
	.uleb128 .LEHE4-.LEHB4
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB5-.LFB4583
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L77-.LFB4583
	.uleb128 0
	.uleb128 .LEHB6-.LFB4583
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L79-.LFB4583
	.uleb128 0
	.uleb128 .LEHB7-.LFB4583
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L78-.LFB4583
	.uleb128 0
	.uleb128 .LEHB8-.LFB4583
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L79-.LFB4583
	.uleb128 0
	.uleb128 .LEHB9-.LFB4583
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L81-.LFB4583
	.uleb128 0
	.uleb128 .LEHB10-.LFB4583
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L80-.LFB4583
	.uleb128 0
	.uleb128 .LEHB11-.LFB4583
	.uleb128 .LEHE11-.LEHB11
	.uleb128 0
	.uleb128 0
.LLSDACSE4583:
	.text
	.size	_ZN3ops3Seq7compileEv, .-_ZN3ops3Seq7compileEv
	.weak	_ZTSN3ops3SeqE
	.section	.rodata._ZTSN3ops3SeqE,"aG",@progbits,_ZTSN3ops3SeqE,comdat
	.align 8
	.type	_ZTSN3ops3SeqE, @object
	.size	_ZTSN3ops3SeqE, 11
_ZTSN3ops3SeqE:
	.string	"N3ops3SeqE"
	.weak	_ZTIN3ops3SeqE
	.section	.data.rel.ro._ZTIN3ops3SeqE,"awG",@progbits,_ZTIN3ops3SeqE,comdat
	.align 8
	.type	_ZTIN3ops3SeqE, @object
	.size	_ZTIN3ops3SeqE, 24
_ZTIN3ops3SeqE:
	.quad	_ZTVN10__cxxabiv120__si_class_type_infoE+16
	.quad	_ZTSN3ops3SeqE
	.quad	_ZTIN3ops2OpE
	.weak	_ZTVN3ops3SeqE
	.section	.data.rel.ro._ZTVN3ops3SeqE,"awG",@progbits,_ZTVN3ops3SeqE,comdat
	.align 8
	.type	_ZTVN3ops3SeqE, @object
	.size	_ZTVN3ops3SeqE, 48
_ZTVN3ops3SeqE:
	.quad	0
	.quad	_ZTIN3ops3SeqE
	.quad	_ZN3ops3SeqD1Ev
	.quad	_ZN3ops3SeqD0Ev
	.quad	_ZN3ops3Seq7compileEv
	.quad	_ZN3ops2Op10child_gradEmPS0_
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>
#include "seq.hh"
#include <cassert>
#include <stdexcept>
#include "graph.hh"
#include "mse-grad.hh"
#include "ops-builder.hh"
#include "../runtime/node.hh"
#include "../memory/alloc.hh"

namespace ops
{

    Seq::Seq(std::vector<Op*> ops)
        : Op("seq", ops.back()->shape_get(), ops)
    {}

    void Seq::compile()
    {
        auto& g = Graph::instance();
        auto& clast = g.compiled(preds().back());

        std::vector<rt::Node*> nodes;
        for (auto p : preds())
            nodes.push_back(g.compiled(p).out_node);

        auto out_node = rt::Node::nop(nodes);
        g.add_compiled(this, {out_node}, {}, out_node, clast.out_shape, clast.out_data);
    }
}

	.text
	.file	"seq.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_ZN3ops3SeqC2ESt6vectorIPNS_2OpESaIS3_EE # -- Begin function _ZN3ops3SeqC2ESt6vectorIPNS_2OpESaIS3_EE
	.p2align	1, 0x90
	.type	_ZN3ops3SeqC2ESt6vectorIPNS_2OpESaIS3_EE,@function
_ZN3ops3SeqC2ESt6vectorIPNS_2OpESaIS3_EE: # @_ZN3ops3SeqC2ESt6vectorIPNS_2OpESaIS3_EE
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$88, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	48(%rsp), %r12
	movq	%r12, -16(%r12)
	leaq	32(%rsp), %rdi
	movl	$.L.str, %esi
	movl	$.L.str+3, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	movq	8(%r14), %rax
	movq	-8(%rax), %rdi
.Ltmp0:
	callq	_ZNK3ops2Op9shape_getEv
.Ltmp1:
# %bb.1:
.Ltmp2:
	movq	%rax, %r15
	leaq	8(%rsp), %rdi
	movq	%r14, %rsi
	callq	_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ERKS4_
.Ltmp3:
# %bb.2:
	xorps	%xmm0, %xmm0
	leaq	64(%rsp), %r8
	movaps	%xmm0, (%r8)
	movq	$0, 16(%r8)
.Ltmp5:
	leaq	32(%rsp), %rsi
	leaq	8(%rsp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_ZN3ops2OpC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_5ShapeESt6vectorIPS0_SaISD_EESF_
.Ltmp6:
# %bb.3:
	movq	64(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_5
# %bb.4:
	callq	_ZdlPv
.LBB0_5:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_7
# %bb.6:
	callq	_ZdlPv
.LBB0_7:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit7
	movq	32(%rsp), %rdi
	cmpq	%r12, %rdi
	je	.LBB0_9
# %bb.8:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB0_9:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	movq	$_ZTVN3ops3SeqE+16, (%rbx)
	addq	$88, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB0_11:
	.cfi_def_cfa_offset 128
.Ltmp7:
	movq	%rax, %rbx
	movq	64(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_13
# %bb.12:
	callq	_ZdlPv
.LBB0_13:                               # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit9
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_15
# %bb.14:
	callq	_ZdlPv
	jmp	.LBB0_15
.LBB0_10:
.Ltmp4:
	movq	%rax, %rbx
.LBB0_15:                               # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit11
	movq	32(%rsp), %rdi
	cmpq	%r12, %rdi
	je	.LBB0_17
# %bb.16:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i12
	callq	_ZdlPv
.LBB0_17:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit14
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end0:
	.size	_ZN3ops3SeqC2ESt6vectorIPNS_2OpESaIS3_EE, .Lfunc_end0-_ZN3ops3SeqC2ESt6vectorIPNS_2OpESaIS3_EE
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table0:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp3-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp3
	.uleb128 .Ltmp4-.Lfunc_begin0           #     jumps to .Ltmp4
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp5-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp6-.Ltmp5                  #   Call between .Ltmp5 and .Ltmp6
	.uleb128 .Ltmp7-.Lfunc_begin0           #     jumps to .Ltmp7
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Lfunc_end0-.Ltmp6             #   Call between .Ltmp6 and .Lfunc_end0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIPN3ops2OpESaIS2_EEC2ERKS4_,"axG",@progbits,_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ERKS4_,comdat
	.weak	_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ERKS4_ # -- Begin function _ZNSt6vectorIPN3ops2OpESaIS2_EEC2ERKS4_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ERKS4_,@function
_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ERKS4_: # @_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ERKS4_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %rax
	movq	(%rsi), %rcx
	movq	%rax, %r12
	subq	%rcx, %r12
	sarq	$3, %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	cmpq	%rcx, %rax
	je	.LBB1_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv
	movq	%rax, %r15
	jmp	.LBB1_3
.LBB1_1:
	xorl	%r15d, %r15d
.LBB1_3:
	movq	%r15, (%rbx)
	movq	%r15, 8(%rbx)
	leaq	(%r15,%r12,8), %rax
	movq	%rax, 16(%rbx)
	movq	(%r14), %rsi
	movq	8(%r14), %r14
	subq	%rsi, %r14
	cmpq	$9, %r14
	jl	.LBB1_5
# %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB1_7:
	addq	%r14, %r15
	movq	%r15, 8(%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB1_5:
	.cfi_def_cfa_offset 48
	cmpq	$8, %r14
	jne	.LBB1_7
# %bb.6:
	movq	(%rsi), %rax
	movq	%rax, (%r15)
	jmp	.LBB1_7
.Lfunc_end1:
	.size	_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ERKS4_, .Lfunc_end1-_ZNSt6vectorIPN3ops2OpESaIS2_EEC2ERKS4_
	.cfi_endproc
                                        # -- End function
	.text
	.globl	_ZN3ops3Seq7compileEv           # -- Begin function _ZN3ops3Seq7compileEv
	.p2align	1, 0x90
	.type	_ZN3ops3Seq7compileEv,@function
_ZN3ops3Seq7compileEv:                  # @_ZN3ops3Seq7compileEv
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, %rbx
	callq	_ZN3ops5Graph8instanceEv
	movq	%rax, %r14
	leaq	16(%rsp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ZN3ops2Op5predsEv
	movq	8(%r15), %rax
	movq	-8(%rax), %rsi
.Ltmp8:
	movq	%r14, %rdi
	callq	_ZN3ops5Graph8compiledEPNS_2OpE
.Ltmp9:
# %bb.1:
	movq	%rax, %r15
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_3
# %bb.2:
	callq	_ZdlPv
.LBB2_3:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit
	xorps	%xmm0, %xmm0
	movaps	%xmm0, 16(%rsp)
	movq	$0, 32(%rsp)
.Ltmp11:
	leaq	48(%rsp), %rdi
	movq	%rbx, %rsi
	callq	_ZN3ops2Op5predsEv
.Ltmp12:
# %bb.4:
	movq	48(%rsp), %r12
	movq	56(%rsp), %rbp
	cmpq	%rbp, %r12
	je	.LBB2_12
# %bb.5:
	leaq	16(%rsp), %r13
.LBB2_6:                                # =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
.Ltmp14:
	movq	%r14, %rdi
	callq	_ZN3ops5Graph8compiledEPNS_2OpE
.Ltmp15:
# %bb.7:                                #   in Loop: Header=BB2_6 Depth=1
	addq	$56, %rax
	movq	24(%rsp), %rsi
	cmpq	32(%rsp), %rsi
	je	.LBB2_9
# %bb.8:                                #   in Loop: Header=BB2_6 Depth=1
	movq	(%rax), %rax
	movq	%rax, (%rsi)
	addq	$8, 24(%rsp)
	jmp	.LBB2_10
.LBB2_9:                                #   in Loop: Header=BB2_6 Depth=1
.Ltmp16:
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_
.Ltmp17:
.LBB2_10:                               # %_ZNSt6vectorIPN2rt4NodeESaIS2_EE9push_backERKS2_.exit
                                        #   in Loop: Header=BB2_6 Depth=1
	addq	$8, %r12
	cmpq	%rbp, %r12
	jne	.LBB2_6
# %bb.11:                               # %._crit_edge.loopexit
	movq	48(%rsp), %r12
.LBB2_12:                               # %._crit_edge
	testq	%r12, %r12
	je	.LBB2_14
# %bb.13:
	movq	%r12, %rdi
	callq	_ZdlPv
.LBB2_14:                               # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit24
.Ltmp19:
	leaq	16(%rsp), %rdi
	callq	_ZN2rt4Node3nopERKSt6vectorIPS0_SaIS2_EE
.Ltmp20:
# %bb.15:
	movq	%rax, %r12
	leaq	48(%rsp), %rsi
	movq	%rax, (%rsi)
.Ltmp22:
	leaq	72(%rsp), %rdi
	leaq	15(%rsp), %rcx
	movl	$1, %edx
	callq	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
.Ltmp23:
# %bb.16:
	movq	%r15, %r9
	addq	$64, %r9
	xorps	%xmm0, %xmm0
	leaq	96(%rsp), %rcx
	movaps	%xmm0, (%rcx)
	movq	$0, 16(%rcx)
	movq	88(%r15), %rax
.Ltmp25:
	movq	%rax, (%rsp)
	leaq	72(%rsp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %r8
	callq	_ZN3ops5Graph12add_compiledEPNS_2OpESt6vectorIPN2rt4NodeESaIS6_EES3_IPfSaIS9_EES6_RKNS_5ShapeES9_
.Ltmp26:
# %bb.17:
	movq	96(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_19
# %bb.18:
	callq	_ZdlPv
.LBB2_19:                               # %_ZNSt6vectorIPfSaIS0_EED2Ev.exit
	movq	72(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_21
# %bb.20:
	callq	_ZdlPv
.LBB2_21:                               # %_ZNSt6vectorIPN2rt4NodeESaIS2_EED2Ev.exit
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_23
# %bb.22:
	callq	_ZdlPv
.LBB2_23:                               # %_ZNSt6vectorIPN2rt4NodeESaIS2_EED2Ev.exit32
	addq	$120, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB2_24:
	.cfi_def_cfa_offset 176
.Ltmp27:
	movq	%rax, %rbx
	movq	96(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_26
# %bb.25:
	callq	_ZdlPv
.LBB2_26:                               # %_ZNSt6vectorIPfSaIS0_EED2Ev.exit34
	movq	72(%rsp), %rdi
	jmp	.LBB2_33
.LBB2_27:
.Ltmp24:
	jmp	.LBB2_31
.LBB2_28:
.Ltmp21:
	jmp	.LBB2_31
.LBB2_29:
.Ltmp13:
	jmp	.LBB2_31
.LBB2_30:
.Ltmp10:
.LBB2_31:
	movq	%rax, %rbx
	jmp	.LBB2_35
.LBB2_32:
.Ltmp18:
	movq	%rax, %rbx
	movq	48(%rsp), %rdi
.LBB2_33:                               # %_ZNSt6vectorIPfSaIS0_EED2Ev.exit34
	testq	%rdi, %rdi
	je	.LBB2_35
# %bb.34:
	callq	_ZdlPv
.LBB2_35:
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB2_37
# %bb.36:
	callq	_ZdlPv
.LBB2_37:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end2:
	.size	_ZN3ops3Seq7compileEv, .Lfunc_end2-_ZN3ops3Seq7compileEv
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table2:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Lfunc_begin1-.Lfunc_begin1    # >> Call Site 1 <<
	.uleb128 .Ltmp8-.Lfunc_begin1           #   Call between .Lfunc_begin1 and .Ltmp8
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp8-.Lfunc_begin1           # >> Call Site 2 <<
	.uleb128 .Ltmp9-.Ltmp8                  #   Call between .Ltmp8 and .Ltmp9
	.uleb128 .Ltmp10-.Lfunc_begin1          #     jumps to .Ltmp10
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp11-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Ltmp12-.Ltmp11                #   Call between .Ltmp11 and .Ltmp12
	.uleb128 .Ltmp13-.Lfunc_begin1          #     jumps to .Ltmp13
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp14-.Lfunc_begin1          # >> Call Site 4 <<
	.uleb128 .Ltmp17-.Ltmp14                #   Call between .Ltmp14 and .Ltmp17
	.uleb128 .Ltmp18-.Lfunc_begin1          #     jumps to .Ltmp18
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp19-.Lfunc_begin1          # >> Call Site 5 <<
	.uleb128 .Ltmp20-.Ltmp19                #   Call between .Ltmp19 and .Ltmp20
	.uleb128 .Ltmp21-.Lfunc_begin1          #     jumps to .Ltmp21
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp22-.Lfunc_begin1          # >> Call Site 6 <<
	.uleb128 .Ltmp23-.Ltmp22                #   Call between .Ltmp22 and .Ltmp23
	.uleb128 .Ltmp24-.Lfunc_begin1          #     jumps to .Ltmp24
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp25-.Lfunc_begin1          # >> Call Site 7 <<
	.uleb128 .Ltmp26-.Ltmp25                #   Call between .Ltmp25 and .Ltmp26
	.uleb128 .Ltmp27-.Lfunc_begin1          #     jumps to .Ltmp27
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp26-.Lfunc_begin1          # >> Call Site 8 <<
	.uleb128 .Lfunc_end2-.Ltmp26            #   Call between .Ltmp26 and .Lfunc_end2
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_,"axG",@progbits,_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_,comdat
	.weak	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_ # -- Begin function _ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_,@function
_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_: # @_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	leaq	(%rsi,%rdx,8), %rdx
.Ltmp28:
	callq	_ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag
.Ltmp29:
# %bb.1:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.LBB3_2:
	.cfi_def_cfa_offset 32
.Ltmp30:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB3_4
# %bb.3:
	callq	_ZdlPv
.LBB3_4:                                # %_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EED2Ev.exit
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end3:
	.size	_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_, .Lfunc_end3-_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_,"aG",@progbits,_ZNSt6vectorIPN2rt4NodeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_,comdat
	.p2align	2, 0x0
GCC_except_table3:
.Lexception2:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end2-.Lcst_begin2
.Lcst_begin2:
	.uleb128 .Ltmp28-.Lfunc_begin2          # >> Call Site 1 <<
	.uleb128 .Ltmp29-.Ltmp28                #   Call between .Ltmp28 and .Ltmp29
	.uleb128 .Ltmp30-.Lfunc_begin2          #     jumps to .Ltmp30
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp29-.Lfunc_begin2          # >> Call Site 2 <<
	.uleb128 .Lfunc_end3-.Ltmp29            #   Call between .Ltmp29 and .Lfunc_end3
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZN3ops2OpD2Ev,"axG",@progbits,_ZN3ops2OpD2Ev,comdat
	.weak	_ZN3ops2OpD2Ev                  # -- Begin function _ZN3ops2OpD2Ev
	.p2align	1, 0x90
	.type	_ZN3ops2OpD2Ev,@function
_ZN3ops2OpD2Ev:                         # @_ZN3ops2OpD2Ev
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rdi, %rbx
	movq	$_ZTVN3ops2OpE+16, (%rdi)
	movq	88(%rdi), %rdi
	testq	%rdi, %rdi
	je	.LBB4_2
# %bb.1:
	callq	_ZdlPv
.LBB4_2:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB4_4
# %bb.3:
	callq	_ZdlPv
.LBB4_4:                                # %_ZNSt6vectorIPN3ops2OpESaIS2_EED2Ev.exit2
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB4_6
# %bb.5:
	callq	_ZdlPv
.LBB4_6:                                # %_ZN3ops5ShapeD2Ev.exit
	movq	8(%rbx), %rdi
	addq	$24, %rbx
	cmpq	%rbx, %rdi
	je	.LBB4_7
# %bb.8:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB4_7:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_ZN3ops2OpD2Ev, .Lfunc_end4-_ZN3ops2OpD2Ev
	.cfi_endproc
                                        # -- End function
	.section	.text._ZN3ops3SeqD0Ev,"axG",@progbits,_ZN3ops3SeqD0Ev,comdat
	.weak	_ZN3ops3SeqD0Ev                 # -- Begin function _ZN3ops3SeqD0Ev
	.p2align	1, 0x90
	.type	_ZN3ops3SeqD0Ev,@function
_ZN3ops3SeqD0Ev:                        # @_ZN3ops3SeqD0Ev
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rdi, %rbx
	callq	_ZN3ops2OpD2Ev
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.Lfunc_end5:
	.size	_ZN3ops3SeqD0Ev, .Lfunc_end5-_ZN3ops3SeqD0Ev
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB6_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB6_3
.LBB6_1:                                # %._crit_edge
	movq	(%rbx), %rax
.LBB6_3:
	testq	%r14, %r14
	je	.LBB6_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB6_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB6_7
.LBB6_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB6_7:                                # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end6:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag, .Lfunc_end6-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv,@function
_ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv: # @_ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$60, %rax
	jne	.LBB7_1
# %bb.3:
	shlq	$3, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB7_1:
	.cfi_def_cfa_offset 16
	shrq	$61, %rsi
	je	.LBB7_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB7_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end7:
	.size	_ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv, .Lfunc_end7-_ZNSt15__new_allocatorIPN3ops2OpEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_,"axG",@progbits,_ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_,comdat
	.weak	_ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_ # -- Begin function _ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_,@function
_ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_: # @_ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.2, %edx
	callq	_ZNKSt6vectorIPN2rt4NodeESaIS2_EE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$3, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB8_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB8_3
.LBB8_1:
	xorl	%ebp, %ebp
.LBB8_3:                                # %_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, (%rbp,%r14,8)
	testq	%r12, %r12
	jle	.LBB8_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB8_5:                                # %_ZNSt6vectorIPN2rt4NodeESaIS2_EE11_S_relocateEPS2_S5_S5_RS3_.exit
	addq	%rbp, %r12
	addq	$8, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB8_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB8_7:                                # %_ZNSt6vectorIPN2rt4NodeESaIS2_EE11_S_relocateEPS2_S5_S5_RS3_.exit16
	testq	%r13, %r13
	je	.LBB8_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB8_9:                                # %_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EE13_M_deallocateEPS2_m.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,8), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	_ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_, .Lfunc_end8-_ZNSt6vectorIPN2rt4NodeESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIPN2rt4NodeESaIS2_EE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIPN2rt4NodeESaIS2_EE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIPN2rt4NodeESaIS2_EE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIPN2rt4NodeESaIS2_EE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIPN2rt4NodeESaIS2_EE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIPN2rt4NodeESaIS2_EE12_M_check_lenEmPKc: # @_ZNKSt6vectorIPN2rt4NodeESaIS2_EE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$1152921504606846975, %rcx      # imm = 0xFFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$3, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB9_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB9_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end9:
	.size	_ZNKSt6vectorIPN2rt4NodeESaIS2_EE12_M_check_lenEmPKc, .Lfunc_end9-_ZNKSt6vectorIPN2rt4NodeESaIS2_EE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv,@function
_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv: # @_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$60, %rax
	jne	.LBB10_1
# %bb.3:
	shlq	$3, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB10_1:
	.cfi_def_cfa_offset 16
	shrq	$61, %rsi
	je	.LBB10_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB10_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end10:
	.size	_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv, .Lfunc_end10-_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag,"axG",@progbits,_ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag,comdat
	.weak	_ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag # -- Begin function _ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag,@function
_ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag: # @_ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	subq	%rsi, %r14
	movq	%r14, %r13
	sarq	$3, %r13
	movq	%r13, %rax
	shrq	$60, %rax
	jne	.LBB11_9
# %bb.1:                                # %_ZNSt6vectorIPN2rt4NodeESaIS2_EE17_S_check_init_lenEmRKS3_.exit
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpq	%rsi, %rdx
	je	.LBB11_2
# %bb.3:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIPN2rt4NodeEE8allocateEmPKv
	movq	%rax, %r12
	jmp	.LBB11_4
.LBB11_2:
	xorl	%r12d, %r12d
.LBB11_4:                               # %_ZNSt12_Vector_baseIPN2rt4NodeESaIS2_EE11_M_allocateEm.exit
	movq	%r12, (%rbx)
	leaq	(%r12,%r13,8), %rax
	movq	%rax, 16(%rbx)
	cmpq	$9, %r14
	jl	.LBB11_6
# %bb.5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB11_8:                               # %_ZSt22__uninitialized_copy_aIPKPN2rt4NodeEPS2_S2_ET0_T_S7_S6_RSaIT1_E.exit
	addq	%r14, %r12
	movq	%r12, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB11_6:
	.cfi_def_cfa_offset 48
	cmpq	$8, %r14
	jne	.LBB11_8
# %bb.7:
	movq	(%r15), %rax
	movq	%rax, (%r12)
	jmp	.LBB11_8
.LBB11_9:
	movl	$.L.str.3, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end11:
	.size	_ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag, .Lfunc_end11-_ZNSt6vectorIPN2rt4NodeESaIS2_EE19_M_range_initializeIPKS2_EEvT_S8_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"seq"
	.size	.L.str, 4

	.type	_ZTVN3ops3SeqE,@object          # @_ZTVN3ops3SeqE
	.section	.rodata,"a",@progbits
	.globl	_ZTVN3ops3SeqE
	.p2align	3, 0x0
_ZTVN3ops3SeqE:
	.quad	0
	.quad	_ZTIN3ops3SeqE
	.quad	_ZN3ops2OpD2Ev
	.quad	_ZN3ops3SeqD0Ev
	.quad	_ZN3ops3Seq7compileEv
	.quad	_ZN3ops2Op10child_gradEmPS0_
	.size	_ZTVN3ops3SeqE, 48

	.type	_ZTSN3ops3SeqE,@object          # @_ZTSN3ops3SeqE
	.globl	_ZTSN3ops3SeqE
_ZTSN3ops3SeqE:
	.asciz	"N3ops3SeqE"
	.size	_ZTSN3ops3SeqE, 11

	.type	_ZTIN3ops3SeqE,@object          # @_ZTIN3ops3SeqE
	.globl	_ZTIN3ops3SeqE
	.p2align	3, 0x0
_ZTIN3ops3SeqE:
	.quad	_ZTVN10__cxxabiv120__si_class_type_infoE+16
	.quad	_ZTSN3ops3SeqE
	.quad	_ZTIN3ops2OpE
	.size	_ZTIN3ops3SeqE, 24

	.type	.L.str.2,@object                # @.str.2
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.2:
	.asciz	"vector::_M_realloc_insert"
	.size	.L.str.2, 26

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"cannot create std::vector larger than max_size()"
	.size	.L.str.3, 49

	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.globl	_ZN3ops3SeqC1ESt6vectorIPNS_2OpESaIS3_EE
	.type	_ZN3ops3SeqC1ESt6vectorIPNS_2OpESaIS3_EE,@function
.set _ZN3ops3SeqC1ESt6vectorIPNS_2OpESaIS3_EE, _ZN3ops3SeqC2ESt6vectorIPNS_2OpESaIS3_EE
	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _ZTVN10__cxxabiv120__si_class_type_infoE
	.addrsig_sym _ZTSN3ops3SeqE
	.addrsig_sym _ZTIN3ops2OpE
	.addrsig_sym _ZTIN3ops3SeqE
	.addrsig_sym __hip_cuid_

	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.amdgpu_metadata
---
amdhsa.kernels:  []
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
