/* Good Example of handling main-stack overflow */

#include <iostream>
#include <cmath>
#include <cuda.h>
#include <string>
#include <chrono>


#define PI 3.1415927


static void HandleError(cudaError_t err, const char *file, int line )
{
    if (err != cudaSuccess) {
    printf( "%s in %s at line %d\n", cudaGetErrorString( err ),
    file, line );
    exit( EXIT_FAILURE );
    }
}

#define HANDLE_ERROR( err ) (HandleError( err, __FILE__, __LINE__ ))


__global__ void addVector(int vec_size, float* v1, float* v2, float* vec_out) {
    unsigned tid = blockIdx.x * blockDim.x + threadIdx.x;

    while(tid < vec_size) {
        vec_out[tid] = v1[tid] + v2[tid];
        tid += blockDim.x * gridDim.x;
    }
}


int main(int argc, char* argv[]) {

    size_t vec_len = 1 << std::stoi(argv[1]);
    size_t size    = vec_len * sizeof(float);

    float *v1    = (float *)malloc(size);
    float *v2    = (float *)malloc(size);
    float *v_out = (float *)malloc(size);
    float *dev_v1, *dev_v2, *dev_v_out;

    // CUDA Morphology
    int nthreads = std::stoi(argv[2]);
    int nblocks  = std::stoi(argv[3]);
    // int nblocks  = (vec_len+nthreads-1) / nthreads;
    std::cout << "Number of threads per block:  " << std::to_string(nthreads) << '\n'
              << "Number of blocks in the grid: " << std::to_string(nblocks)  << '\n'
              << "Total threads: " << std::to_string(nthreads*nblocks) << "\n"
              << "Vector length: "  << std::to_string(vec_len) << std::endl;
    dim3 nBlocks(nblocks, 1, 1);
    dim3 nThreads(nthreads, 1, 1);
    
    // Initiate values
    for(size_t i=0; i<vec_len; ++i) {
        v1[i] = std::sin(i*PI*1E-2);
        v2[i] = std::cos(i*PI*1E-2);
    }
    
    auto t1 = std::chrono::system_clock::now();

    HANDLE_ERROR( cudaMalloc((void**) &dev_v1, size) );
    HANDLE_ERROR( cudaMalloc((void**) &dev_v2, size) );
    HANDLE_ERROR( cudaMalloc((void**) &dev_v_out, size) );

    HANDLE_ERROR( cudaMemcpy(dev_v1, v1, size, cudaMemcpyHostToDevice) );
    HANDLE_ERROR( cudaMemcpy(dev_v2, v2, size, cudaMemcpyHostToDevice) );

    addVector<<< nBlocks, nThreads >>>(vec_len, dev_v1, dev_v2, dev_v_out);
    cudaDeviceSynchronize();
    
    HANDLE_ERROR( cudaMemcpy(v_out, dev_v_out, size, cudaMemcpyDeviceToHost) );

    auto t2 = std::chrono::system_clock::now();

    // Check results
    for(size_t i=0; i<vec_len; ++i) {
        if(v1[i] + v2[i] != v_out[i]){
            std::string err_message = "value dismatch at index " + std::to_string(i) + ".\n";
            printf("v1[%i] = %.18f \nv2[%i] = %.18f\nv_out[%i] = %.18f.\n", 
                   i, v1[i], i, v2[i], i, v_out[i]);
            throw std::runtime_error(err_message);
        }
    }

    printf("Work done, time consummed: %.5fms.\n",
            std::chrono::duration <double, std::milli> (t2 - t1).count());
    
    cudaFree(dev_v1);
    cudaFree(dev_v2);
    cudaFree(dev_v_out);
    free(v1);
    free(v2);
    free(v_out);

    return 0;
}


	.file	"tmpxft_003825db_00000000-6_add_vec.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3741:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3741:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/home/ubuntu/Datasets/stackv2/train-structured/NikoZHAI/CUDASamples/master/src/add_vec.cu"
.LC1:
	.string	"%s in %s at line %d\n"
	.text
	.type	_ZL11HandleError9cudaErrorPKci.constprop.0, @function
_ZL11HandleError9cudaErrorPKci.constprop.0:
.LFB4466:
	.cfi_startproc
	testl	%edi, %edi
	je	.L2
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	%esi, 12(%rsp)
	call	cudaGetErrorString@PLT
	movl	12(%rsp), %r8d
	movl	$2, %edi
	leaq	.LC0(%rip), %rcx
	movq	%rax, %rdx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %edi
	call	exit@PLT
.L2:
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4466:
	.size	_ZL11HandleError9cudaErrorPKci.constprop.0, .-_ZL11HandleError9cudaErrorPKci.constprop.0
	.section	.rodata._ZNSt7__cxx119to_stringEi.str1.1,"aMS",@progbits,1
.LC2:
	.string	"00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899"
	.section	.text._ZNSt7__cxx119to_stringEi,"axG",@progbits,_ZNSt7__cxx119to_stringEi,comdat
	.weak	_ZNSt7__cxx119to_stringEi
	.type	_ZNSt7__cxx119to_stringEi, @function
_ZNSt7__cxx119to_stringEi:
.LFB2826:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA2826
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	%esi, %r13d
	movl	$10000, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	shrl	$31, %r13d
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movl	$1, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movl	%esi, %ebx
	subq	$232, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	negl	%ebx
	cmovs	%esi, %ebx
	movl	%ebx, %eax
.L14:
	cmpl	$9, %eax
	jbe	.L10
	cmpl	$99, %eax
	ja	.L11
	incl	%ebp
	jmp	.L10
.L11:
	cmpl	$999, %eax
	ja	.L12
	addl	$2, %ebp
	jmp	.L10
.L12:
	cmpl	$9999, %eax
	ja	.L13
	addl	$3, %ebp
	jmp	.L10
.L13:
	movl	%eax, %eax
	xorl	%edx, %edx
	addl	$4, %ebp
	divq	%rcx
	jmp	.L14
.L10:
	leaq	16(%r12), %rax
	leal	0(%r13,%rbp), %esi
	movq	%r12, %rdi
	decl	%ebp
	movq	%rax, (%r12)
	movl	$45, %edx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc@PLT
	movzbl	%r13b, %r8d
	leaq	15(%rsp), %rdi
	leaq	.LC2(%rip), %rsi
	movl	$201, %ecx
	addq	(%r12), %r8
	rep movsb
	movl	$100, %ecx
.L15:
	cmpl	$99, %ebx
	jbe	.L21
	movl	%ebx, %eax
	xorl	%edx, %edx
	movl	%ebp, %esi
	divl	%ecx
	addl	%edx, %edx
	movl	%eax, %ebx
	leal	1(%rdx), %eax
	movb	15(%rsp,%rdx), %dl
	movb	15(%rsp,%rax), %al
	movb	%al, (%r8,%rsi)
	leal	-1(%rbp), %eax
	subl	$2, %ebp
	movb	%dl, (%r8,%rax)
	jmp	.L15
.L21:
	leal	48(%rbx), %eax
	cmpl	$9, %ebx
	jbe	.L18
	addl	%ebx, %ebx
	leal	1(%rbx), %eax
	movb	15(%rsp,%rax), %al
	movb	%al, 1(%r8)
	movb	15(%rsp,%rbx), %al
.L18:
	movb	%al, (%r8)
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	addq	$232, %rsp
	.cfi_def_cfa_offset 40
	movq	%r12, %rax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2826:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table._ZNSt7__cxx119to_stringEi,"aG",@progbits,_ZNSt7__cxx119to_stringEi,comdat
.LLSDA2826:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE2826-.LLSDACSB2826
.LLSDACSB2826:
.LLSDACSE2826:
	.section	.text._ZNSt7__cxx119to_stringEi,"axG",@progbits,_ZNSt7__cxx119to_stringEi,comdat
	.size	_ZNSt7__cxx119to_stringEi, .-_ZNSt7__cxx119to_stringEi
	.section	.text._ZNSt7__cxx119to_stringEm,"axG",@progbits,_ZNSt7__cxx119to_stringEm,comdat
	.weak	_ZNSt7__cxx119to_stringEm
	.type	_ZNSt7__cxx119to_stringEm, @function
_ZNSt7__cxx119to_stringEm:
.LFB2829:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$10000, %ecx
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rsi, %rbx
	subq	$232, %rsp
	.cfi_def_cfa_offset 256
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	movq	%rsi, %rax
	movl	$1, %esi
.L27:
	cmpq	$9, %rax
	jbe	.L23
	cmpq	$99, %rax
	ja	.L24
	incl	%esi
	jmp	.L23
.L24:
	cmpq	$999, %rax
	ja	.L25
	addl	$2, %esi
	jmp	.L23
.L25:
	cmpq	$9999, %rax
	ja	.L26
	addl	$3, %esi
	jmp	.L23
.L26:
	xorl	%edx, %edx
	addl	$4, %esi
	divq	%rcx
	jmp	.L27
.L23:
	leaq	16(%rbp), %rax
	movq	%rbp, %rdi
	xorl	%edx, %edx
	movq	%rax, 0(%rbp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc@PLT
	movl	8(%rbp), %eax
	movq	0(%rbp), %r8
	leaq	15(%rsp), %rdi
	leaq	.LC2(%rip), %rsi
	movl	$201, %ecx
	rep movsb
	leal	-1(%rax), %ecx
	movl	$100, %esi
.L28:
	cmpq	$99, %rbx
	jbe	.L34
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rsi
	addq	%rdx, %rdx
	movq	%rax, %rbx
	movl	%ecx, %eax
	movb	16(%rsp,%rdx), %dil
	movb	15(%rsp,%rdx), %dl
	movb	%dil, (%r8,%rax)
	leal	-1(%rcx), %eax
	subl	$2, %ecx
	movb	%dl, (%r8,%rax)
	jmp	.L28
.L34:
	leal	48(%rbx), %eax
	cmpq	$9, %rbx
	jbe	.L31
	addq	%rbx, %rbx
	movb	16(%rsp,%rbx), %al
	movb	%al, 1(%r8)
	movb	15(%rsp,%rbx), %al
.L31:
	movb	%al, (%r8)
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	addq	$232, %rsp
	.cfi_def_cfa_offset 24
	movq	%rbp, %rax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2829:
	.size	_ZNSt7__cxx119to_stringEm, .-_ZNSt7__cxx119to_stringEm
	.text
	.globl	_Z33__device_stub__Z9addVectoriPfS_S_iPfS_S_
	.type	_Z33__device_stub__Z9addVectoriPfS_S_iPfS_S_, @function
_Z33__device_stub__Z9addVectoriPfS_S_iPfS_S_:
.LFB3763:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movl	%edi, 28(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rcx, (%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%rsp, %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L35
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z9addVectoriPfS_S_(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L35:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3763:
	.size	_Z33__device_stub__Z9addVectoriPfS_S_iPfS_S_, .-_Z33__device_stub__Z9addVectoriPfS_S_iPfS_S_
	.globl	_Z9addVectoriPfS_S_
	.type	_Z9addVectoriPfS_S_, @function
_Z9addVectoriPfS_S_:
.LFB3764:
	.cfi_startproc
	endbr64
	jmp	_Z33__device_stub__Z9addVectoriPfS_S_iPfS_S_
	.cfi_endproc
.LFE3764:
	.size	_Z9addVectoriPfS_S_, .-_Z9addVectoriPfS_S_
	.section	.rodata.str1.1
.LC3:
	.string	"_Z9addVectoriPfS_S_"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3766:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC3(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z9addVectoriPfS_S_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE3766:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev,"axG",@progbits,_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD5Ev,comdat
	.align 2
	.weak	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.type	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev, @function
_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev:
.LFB3845:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	call	__errno_location@PLT
	cmpl	$0, (%rax)
	jne	.L42
	movl	(%rbx), %edx
	movl	%edx, (%rax)
.L42:
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3845:
	.size	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev, .-_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.weak	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	.set	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev,_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.section	.rodata.str1.1
.LC4:
	.string	"stoi"
	.text
	.type	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0, @function
_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0:
.LFB4470:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4470
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	movl	%edx, 12(%rsp)
	leaq	28(%rsp), %r13
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	call	__errno_location@PLT
	movl	12(%rsp), %edx
	leaq	32(%rsp), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rbp
	movl	(%rax), %eax
	movl	%eax, 28(%rsp)
	xorl	%eax, %eax
	movl	%eax, 0(%rbp)
	call	__isoc23_strtol@PLT
	movq	32(%rsp), %rdx
	cmpq	%rdx, %rbx
	jne	.L46
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	leaq	.LC4(%rip), %rdi
.LEHB0:
	call	_ZSt24__throw_invalid_argumentPKc@PLT
.L46:
	cmpl	$34, 0(%rbp)
	je	.L48
	movl	$2147483648, %ecx
	movl	$4294967295, %esi
	addq	%rax, %rcx
	cmpq	%rcx, %rsi
	jnb	.L49
.L48:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	leaq	.LC4(%rip), %rdi
	call	_ZSt20__throw_out_of_rangePKc@PLT
.LEHE0:
.L49:
	testq	%r12, %r12
	je	.L51
	subq	%rbx, %rdx
	movq	%rdx, (%r12)
.L51:
	movq	%r13, %rdi
	movl	%eax, 12(%rsp)
	call	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movl	12(%rsp), %eax
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	je	.L54
	jmp	.L59
.L55:
	endbr64
	movq	%rax, %rbx
.L52:
	movq	%r13, %rdi
	call	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	movq	%rbx, %rdi
.LEHB1:
	call	_Unwind_Resume@PLT
.LEHE1:
.L59:
	call	__stack_chk_fail@PLT
.L54:
	addq	$56, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4470:
	.section	.gcc_except_table,"a",@progbits
.LLSDA4470:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4470-.LLSDACSB4470
.LLSDACSB4470:
	.uleb128 .LEHB0-.LFB4470
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L55-.LFB4470
	.uleb128 0
	.uleb128 .LEHB1-.LFB4470
	.uleb128 .LEHE1-.LEHB1
	.uleb128 0
	.uleb128 0
.LLSDACSE4470:
	.text
	.size	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0, .-_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
	.section	.rodata._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.str1.1,"aMS",@progbits,1
.LC5:
	.string	"basic_string: construction from null is not valid"
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC5IS3_EEPKcRKS3_,comdat
	.align 2
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_:
.LFB4094:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	16(%rdi), %rax
	movq	%rax, (%rdi)
	testq	%rsi, %rsi
	jne	.L63
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L68
	leaq	.LC5(%rip), %rdi
	call	_ZSt19__throw_logic_errorPKc@PLT
.L63:
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rsi, %rbp
	call	strlen@PLT
	movq	%rax, (%rsp)
	leaq	0(%rbp,%rax), %r12
	cmpq	$15, %rax
	jbe	.L65
	movq	%rsp, %rsi
	xorl	%edx, %edx
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm@PLT
	movq	%rax, (%rbx)
	movq	(%rsp), %rax
	movq	%rax, 16(%rbx)
.L65:
	movq	(%rbx), %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	(%rsp), %rax
	movq	(%rbx), %rdx
	movq	%rax, 8(%rbx)
	movb	$0, (%rdx,%rax)
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L66
.L68:
	call	__stack_chk_fail@PLT
.L66:
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4094:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
	.set	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.section	.rodata.str1.1
.LC6:
	.string	"Number of threads per block:  "
.LC7:
	.string	"Number of blocks in the grid: "
.LC8:
	.string	"Total threads: "
.LC9:
	.string	"\n"
.LC10:
	.string	"Vector length: "
.LC13:
	.string	"value dismatch at index "
.LC14:
	.string	".\n"
.LC15:
	.string	"v1[%i] = %.18f \nv2[%i] = %.18f\nv_out[%i] = %.18f.\n"
.LC17:
	.string	"Work done, time consummed: %.5fms.\n"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB3735:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3735
	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
	movq	%rsi, %r13
	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
	subq	$280, %rsp
	.cfi_def_cfa_offset 336
	movq	8(%rsi), %rsi
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
	leaq	124(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	232(%rsp), %rax
	movq	16(%rsp), %rdx
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
.LEHB2:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE2:
	movq	232(%rsp), %rdi
	movl	$10, %edx
	xorl	%esi, %esi
.LEHB3:
	call	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
.LEHE3:
	movl	%eax, %ecx
	movl	$1, %edx
	movq	8(%rsp), %rdi
	sall	%cl, %edx
	movslq	%edx, %r15
	movl	%edx, 52(%rsp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	0(,%r15,4), %rax
	movq	%rax, %rdi
	movq	%rax, 24(%rsp)
	call	malloc@PLT
	leaq	0(,%r15,4), %rdi
	movq	%rax, %r12
	call	malloc@PLT
	leaq	0(,%r15,4), %rdi
	movq	%rax, %rbp
	call	malloc@PLT
	movq	16(%r13), %rsi
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rdi
	movq	%rax, %r14
.LEHB4:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE4:
	movq	232(%rsp), %rdi
	movl	$10, %edx
	xorl	%esi, %esi
.LEHB5:
	call	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
.LEHE5:
	movq	8(%rsp), %rdi
	movl	%eax, %ebx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	24(%r13), %rsi
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rdi
.LEHB6:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE6:
	movq	232(%rsp), %rdi
	movl	$10, %edx
	xorl	%esi, %esi
.LEHB7:
	call	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
.LEHE7:
	movq	8(%rsp), %rdi
	movl	%eax, %r13d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	.LC6(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
.LEHB8:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.LEHE8:
	movl	%ebx, %esi
	movq	%rax, 16(%rsp)
	leaq	136(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 32(%rsp)
	call	_ZNSt7__cxx119to_stringEi
	movq	32(%rsp), %rsi
	movq	16(%rsp), %rdi
.LEHB9:
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	%rax, %rdi
	movl	$10, %esi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c@PLT
	movq	%rax, %rdi
	leaq	.LC7(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.LEHE9:
	movq	%rax, 40(%rsp)
	leaq	168(%rsp), %rax
	movl	%r13d, %esi
	movq	%rax, %rdi
	movq	%rax, 16(%rsp)
	call	_ZNSt7__cxx119to_stringEi
	movq	16(%rsp), %rsi
	movq	40(%rsp), %rdi
.LEHB10:
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	%rax, %rdi
	movl	$10, %esi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c@PLT
	movq	%rax, %rdi
	leaq	.LC8(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.LEHE10:
	movl	%ebx, %esi
	movq	%rax, 56(%rsp)
	leaq	200(%rsp), %rax
	imull	%r13d, %esi
	movq	%rax, %rdi
	movq	%rax, 40(%rsp)
	call	_ZNSt7__cxx119to_stringEi
	movq	40(%rsp), %rsi
	movq	56(%rsp), %rdi
.LEHB11:
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	%rax, %rdi
	leaq	.LC9(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC10(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	8(%rsp), %rdi
	movq	%r15, %rsi
	movq	%rax, 56(%rsp)
	call	_ZNSt7__cxx119to_stringEm
.LEHE11:
	movq	8(%rsp), %rsi
	movq	56(%rsp), %rdi
.LEHB12:
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
.LEHE12:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	40(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	16(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	32(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movl	%r13d, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 116(%rsp)
	movq	%rax, 128(%rsp)
	movl	%ebx, 124(%rsp)
	xorl	%ebx, %ebx
.L70:
	cmpq	%r15, %rbx
	jnb	.L113
	cvtsi2sdq	%rbx, %xmm0
	mulsd	.LC11(%rip), %xmm0
	leaq	72(%rsp), %rdi
	mulsd	.LC12(%rip), %xmm0
	leaq	64(%rsp), %rsi
	call	sincos@PLT
	cvtsd2ss	72(%rsp), %xmm0
	movss	%xmm0, (%r12,%rbx,4)
	cvtsd2ss	64(%rsp), %xmm0
	movss	%xmm0, 0(%rbp,%rbx,4)
	incq	%rbx
	jmp	.L70
.L113:
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movq	24(%rsp), %rsi
	leaq	88(%rsp), %rdi
	movq	%rax, 32(%rsp)
.LEHB13:
	call	cudaMalloc@PLT
	movl	$64, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	24(%rsp), %rsi
	leaq	96(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	$65, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	24(%rsp), %rsi
	leaq	104(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	$66, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	24(%rsp), %rdx
	movq	88(%rsp), %rdi
	movq	%r12, %rsi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	movl	$68, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	24(%rsp), %rdx
	movq	96(%rsp), %rdi
	movq	%rbp, %rsi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	movl	$69, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	124(%rsp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	132(%rsp), %ecx
	movq	112(%rsp), %rdi
	movl	120(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L72
	movq	104(%rsp), %rcx
	movq	96(%rsp), %rdx
	movq	88(%rsp), %rsi
	movl	52(%rsp), %edi
	call	_Z33__device_stub__Z9addVectoriPfS_S_iPfS_S_
.L72:
	call	cudaDeviceSynchronize@PLT
	movq	24(%rsp), %rdx
	movq	%r14, %rdi
	xorl	%ebx, %ebx
	movq	104(%rsp), %rsi
	movl	$2, %ecx
	xorl	%r13d, %r13d
	call	cudaMemcpy@PLT
	movl	$74, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
.L73:
	cmpq	%r15, %r13
	jnb	.L114
	movss	(%r12,%rbx), %xmm0
	addss	0(%rbp,%rbx), %xmm0
	leaq	4(%rbx), %rdx
	ucomiss	(%r14,%rbx), %xmm0
	jp	.L107
	je	.L74
.L107:
	leaq	200(%rsp), %r15
	movq	%r13, %rsi
	movq	%r15, %rdi
	call	_ZNSt7__cxx119to_stringEm
.LEHE13:
	leaq	.LC13(%rip), %rdx
	xorl	%esi, %esi
	movq	%r15, %rdi
.LEHB14:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6insertEmPKc@PLT
.LEHE14:
	movq	8(%rsp), %rdi
	movq	%rax, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4_@PLT
	movq	8(%rsp), %rdi
	leaq	.LC14(%rip), %rsi
.LEHB15:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc@PLT
.LEHE15:
	movq	16(%rsp), %rdi
	movq	%rax, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4_@PLT
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r15, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r13, %r8
	movq	%r13, %rcx
	movq	%r13, %rdx
	leaq	.LC15(%rip), %rsi
	movl	$2, %edi
	movb	$3, %al
	cvtss2sd	(%r12,%rbx), %xmm0
	cvtss2sd	(%r14,%rbx), %xmm2
	cvtss2sd	0(%rbp,%rbx), %xmm1
.LEHB16:
	call	__printf_chk@PLT
.LEHE16:
	movl	$16, %edi
	call	__cxa_allocate_exception@PLT
	movq	16(%rsp), %rsi
	movq	%rax, %rdi
	movq	%rax, %rbp
.LEHB17:
	call	_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE@PLT
.LEHE17:
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L108
	movq	_ZNSt13runtime_errorD1Ev@GOTPCREL(%rip), %rdx
	leaq	_ZTISt13runtime_error(%rip), %rsi
	movq	%rbp, %rdi
.LEHB18:
	call	__cxa_throw@PLT
.LEHE18:
.L74:
	incq	%r13
	movq	%rdx, %rbx
	jmp	.L73
.L114:
	movq	32(%rsp), %rcx
	leaq	.LC17(%rip), %rsi
	movl	$2, %edi
	subq	%rcx, %rax
	cvtsi2sdq	%rax, %xmm0
	movb	$1, %al
	divsd	.LC16(%rip), %xmm0
.LEHB19:
	call	__printf_chk@PLT
	movq	88(%rsp), %rdi
	call	cudaFree@PLT
	movq	96(%rsp), %rdi
	call	cudaFree@PLT
	movq	104(%rsp), %rdi
	call	cudaFree@PLT
	movq	%r12, %rdi
	call	free@PLT
	movq	%rbp, %rdi
	call	free@PLT
	movq	%r14, %rdi
	call	free@PLT
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	je	.L95
	jmp	.L108
.L96:
	endbr64
	jmp	.L112
.L97:
	endbr64
	jmp	.L112
.L98:
	endbr64
.L112:
	movq	%rax, %rbx
.L82:
	movq	8(%rsp), %rdi
	jmp	.L111
.L102:
	endbr64
	movq	%rax, %rbx
.L84:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L85
.L101:
	endbr64
	movq	%rax, %rbx
.L85:
	movq	40(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L86
.L100:
	endbr64
	movq	%rax, %rbx
.L86:
	movq	16(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L87
.L99:
	endbr64
	movq	%rax, %rbx
.L87:
	movq	32(%rsp), %rdi
	jmp	.L111
.L104:
	endbr64
	movq	%rax, %rbx
.L89:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L90
.L103:
	endbr64
	movq	%rax, %rbx
.L90:
	movq	%r15, %rdi
	jmp	.L111
.L106:
	endbr64
	movq	%rax, %rbx
.L92:
	movq	%rbp, %rdi
	call	__cxa_free_exception@PLT
	jmp	.L93
.L105:
	endbr64
	movq	%rax, %rbx
.L93:
	movq	16(%rsp), %rdi
.L111:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L108
	movq	%rbx, %rdi
	call	_Unwind_Resume@PLT
.LEHE19:
.L108:
	call	__stack_chk_fail@PLT
.L95:
	addq	$280, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	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
.LFE3735:
	.section	.gcc_except_table
.LLSDA3735:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3735-.LLSDACSB3735
.LLSDACSB3735:
	.uleb128 .LEHB2-.LFB3735
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB3-.LFB3735
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L96-.LFB3735
	.uleb128 0
	.uleb128 .LEHB4-.LFB3735
	.uleb128 .LEHE4-.LEHB4
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB5-.LFB3735
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L97-.LFB3735
	.uleb128 0
	.uleb128 .LEHB6-.LFB3735
	.uleb128 .LEHE6-.LEHB6
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB7-.LFB3735
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L98-.LFB3735
	.uleb128 0
	.uleb128 .LEHB8-.LFB3735
	.uleb128 .LEHE8-.LEHB8
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB9-.LFB3735
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L99-.LFB3735
	.uleb128 0
	.uleb128 .LEHB10-.LFB3735
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L100-.LFB3735
	.uleb128 0
	.uleb128 .LEHB11-.LFB3735
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L101-.LFB3735
	.uleb128 0
	.uleb128 .LEHB12-.LFB3735
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L102-.LFB3735
	.uleb128 0
	.uleb128 .LEHB13-.LFB3735
	.uleb128 .LEHE13-.LEHB13
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB14-.LFB3735
	.uleb128 .LEHE14-.LEHB14
	.uleb128 .L103-.LFB3735
	.uleb128 0
	.uleb128 .LEHB15-.LFB3735
	.uleb128 .LEHE15-.LEHB15
	.uleb128 .L104-.LFB3735
	.uleb128 0
	.uleb128 .LEHB16-.LFB3735
	.uleb128 .LEHE16-.LEHB16
	.uleb128 .L105-.LFB3735
	.uleb128 0
	.uleb128 .LEHB17-.LFB3735
	.uleb128 .LEHE17-.LEHB17
	.uleb128 .L106-.LFB3735
	.uleb128 0
	.uleb128 .LEHB18-.LFB3735
	.uleb128 .LEHE18-.LEHB18
	.uleb128 .L105-.LFB3735
	.uleb128 0
	.uleb128 .LEHB19-.LFB3735
	.uleb128 .LEHE19-.LEHB19
	.uleb128 0
	.uleb128 0
.LLSDACSE3735:
	.section	.text.startup
	.size	main, .-main
	.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
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC11:
	.long	1518260631
	.long	1074340347
	.align 8
.LC12:
	.long	1202590843
	.long	1065646817
	.align 8
.LC16:
	.long	0
	.long	1093567616
	.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:

/* Good Example of handling main-stack overflow */

#include <iostream>
#include <cmath>
#include <hip/hip_runtime.h>
#include <string>
#include <chrono>


#define PI 3.1415927


static void HandleError(hipError_t err, const char *file, int line )
{
    if (err != hipSuccess) {
    printf( "%s in %s at line %d\n", hipGetErrorString( err ),
    file, line );
    exit( EXIT_FAILURE );
    }
}

#define HANDLE_ERROR( err ) (HandleError( err, __FILE__, __LINE__ ))


__global__ void addVector(int vec_size, float* v1, float* v2, float* vec_out) {
    unsigned tid = blockIdx.x * blockDim.x + threadIdx.x;

    while(tid < vec_size) {
        vec_out[tid] = v1[tid] + v2[tid];
        tid += blockDim.x * gridDim.x;
    }
}


int main(int argc, char* argv[]) {

    size_t vec_len = 1 << std::stoi(argv[1]);
    size_t size    = vec_len * sizeof(float);

    float *v1    = (float *)malloc(size);
    float *v2    = (float *)malloc(size);
    float *v_out = (float *)malloc(size);
    float *dev_v1, *dev_v2, *dev_v_out;

    // CUDA Morphology
    int nthreads = std::stoi(argv[2]);
    int nblocks  = std::stoi(argv[3]);
    // int nblocks  = (vec_len+nthreads-1) / nthreads;
    std::cout << "Number of threads per block:  " << std::to_string(nthreads) << '\n'
              << "Number of blocks in the grid: " << std::to_string(nblocks)  << '\n'
              << "Total threads: " << std::to_string(nthreads*nblocks) << "\n"
              << "Vector length: "  << std::to_string(vec_len) << std::endl;
    dim3 nBlocks(nblocks, 1, 1);
    dim3 nThreads(nthreads, 1, 1);
    
    // Initiate values
    for(size_t i=0; i<vec_len; ++i) {
        v1[i] = std::sin(i*PI*1E-2);
        v2[i] = std::cos(i*PI*1E-2);
    }
    
    auto t1 = std::chrono::system_clock::now();

    HANDLE_ERROR( hipMalloc((void**) &dev_v1, size) );
    HANDLE_ERROR( hipMalloc((void**) &dev_v2, size) );
    HANDLE_ERROR( hipMalloc((void**) &dev_v_out, size) );

    HANDLE_ERROR( hipMemcpy(dev_v1, v1, size, hipMemcpyHostToDevice) );
    HANDLE_ERROR( hipMemcpy(dev_v2, v2, size, hipMemcpyHostToDevice) );

    addVector<<< nBlocks, nThreads >>>(vec_len, dev_v1, dev_v2, dev_v_out);
    hipDeviceSynchronize();
    
    HANDLE_ERROR( hipMemcpy(v_out, dev_v_out, size, hipMemcpyDeviceToHost) );

    auto t2 = std::chrono::system_clock::now();

    // Check results
    for(size_t i=0; i<vec_len; ++i) {
        if(v1[i] + v2[i] != v_out[i]){
            std::string err_message = "value dismatch at index " + std::to_string(i) + ".\n";
            printf("v1[%i] = %.18f \nv2[%i] = %.18f\nv_out[%i] = %.18f.\n", 
                   i, v1[i], i, v2[i], i, v_out[i]);
            throw std::runtime_error(err_message);
        }
    }

    printf("Work done, time consummed: %.5fms.\n",
            std::chrono::duration <double, std::milli> (t2 - t1).count());
    
    hipFree(dev_v1);
    hipFree(dev_v2);
    hipFree(dev_v_out);
    free(v1);
    free(v2);
    free(v_out);

    return 0;
}


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

                                        # End of file scope inline assembly
	.globl	_Z24__device_stub__addVectoriPfS_S_ # -- Begin function _Z24__device_stub__addVectoriPfS_S_
	.type	_Z24__device_stub__addVectoriPfS_S_,@function
_Z24__device_stub__addVectoriPfS_S_:    # @_Z24__device_stub__addVectoriPfS_S_
	.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
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	4(%rsp), %rax
	movl	%edi, (%rax)
	leaq	40(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	32(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	24(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z9addVectoriPfS_S_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	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
.Lfunc_end0:
	.size	_Z24__device_stub__addVectoriPfS_S_, .Lfunc_end0-_Z24__device_stub__addVectoriPfS_S_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function main
.LCPI1_0:
	.long	1127219200                      # 0x43300000
	.long	1160773632                      # 0x45300000
	.long	0                               # 0x0
	.long	0                               # 0x0
.LCPI1_1:
	.quad	0x4330000000000000              # double 4503599627370496
	.quad	0x4530000000000000              # double 1.9342813113834067E+25
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0
.LCPI1_2:
	.quad	0x400921fb5a7ed197              # double 3.1415926999999999
.LCPI1_3:
	.quad	0x3f847ae147ae147b              # double 0.01
.LCPI1_4:
	.quad	0x412e848000000000              # double 1.0E+6
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %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	$216, %rsp
	.cfi_def_cfa_offset 272
	.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	%rsi, %r13
	movq	8(%rsi), %rsi
.Ltmp0:
	leaq	8(%rsp), %rdi
	leaq	96(%rsp), %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp1:
# %bb.1:
	movq	8(%rsp), %rbx
	callq	__errno_location
	movq	%rax, %rbp
	movl	(%rax), %r15d
	movl	$0, (%rax)
	leaq	64(%rsp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%rbx, (%r14)
	je	.LBB1_108
# %bb.2:
	movq	%rax, %rcx
	movslq	%ecx, %rax
	cmpq	%rcx, %rax
	jne	.LBB1_110
# %bb.3:
	movl	(%rbp), %eax
	cmpl	$34, %eax
	je	.LBB1_110
# %bb.4:
	testl	%eax, %eax
	jne	.LBB1_6
# %bb.5:
	movl	%r15d, (%rbp)
.LBB1_6:
	movl	$1, %eax
	movq	%rcx, 176(%rsp)                 # 8-byte Spill
                                        # kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	movl	%eax, 148(%rsp)                 # 4-byte Spill
	movslq	%eax, %r12
	leaq	24(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB1_8
# %bb.7:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB1_8:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	leaq	(,%r12,4), %r15
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, %r14
	movq	%r15, 168(%rsp)                 # 8-byte Spill
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, 152(%rsp)                 # 8-byte Spill
	movq	%r13, (%rsp)                    # 8-byte Spill
	movq	16(%r13), %rsi
.Ltmp3:
	leaq	8(%rsp), %rdi
	leaq	96(%rsp), %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp4:
# %bb.9:
	movq	8(%rsp), %r15
	movl	(%rbp), %eax
	movl	%eax, 48(%rsp)                  # 4-byte Spill
	movl	$0, (%rbp)
	leaq	64(%rsp), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r15, (%r13)
	je	.LBB1_112
# %bb.10:
	movabsq	$-4294967296, %rdx              # imm = 0xFFFFFFFF00000000
	leaq	-2147483648(%rax), %rcx
	cmpq	%rdx, %rcx
	jb	.LBB1_114
# %bb.11:
	movq	%rax, %r15
	movl	(%rbp), %eax
	cmpl	$34, %eax
	je	.LBB1_114
# %bb.12:
	testl	%eax, %eax
	movq	(%rsp), %r13                    # 8-byte Reload
	jne	.LBB1_14
# %bb.13:
	movl	48(%rsp), %eax                  # 4-byte Reload
	movl	%eax, (%rbp)
.LBB1_14:
	movq	8(%rsp), %rdi
	leaq	24(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_16
# %bb.15:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i102
	callq	_ZdlPv
.LBB1_16:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit104
	movq	%r15, 48(%rsp)                  # 8-byte Spill
	movq	24(%r13), %rsi
.Ltmp6:
	leaq	8(%rsp), %rdi
	leaq	96(%rsp), %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp7:
# %bb.17:
	movq	8(%rsp), %r15
	movl	(%rbp), %eax
	movl	%eax, 40(%rsp)                  # 4-byte Spill
	movl	$0, (%rbp)
	leaq	64(%rsp), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r15, (%r13)
	je	.LBB1_116
# %bb.18:
	movq	%rax, (%rsp)                    # 8-byte Spill
	addq	$-2147483648, %rax              # imm = 0x80000000
	movabsq	$-4294967296, %rcx              # imm = 0xFFFFFFFF00000000
	cmpq	%rcx, %rax
	movq	48(%rsp), %r13                  # 8-byte Reload
	jb	.LBB1_118
# %bb.19:
	movl	(%rbp), %eax
	cmpl	$34, %eax
	je	.LBB1_118
# %bb.20:
	testl	%eax, %eax
	jne	.LBB1_22
# %bb.21:
	movl	40(%rsp), %eax                  # 4-byte Reload
	movl	%eax, (%rbp)
.LBB1_22:
	movq	8(%rsp), %rdi
	leaq	24(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_24
# %bb.23:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i111
	callq	_ZdlPv
.LBB1_24:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit113
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$30, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	%r13d, %ebp
	negl	%ebp
	cmovsl	%r13d, %ebp
	movl	$1, %r15d
	cmpl	$10, %ebp
	jb	.LBB1_33
# %bb.25:                               # %.lr.ph.i.i.preheader
	movl	$4, %r15d
	movl	$3518437209, %eax               # imm = 0xD1B71759
	movl	%ebp, %ecx
.LBB1_26:                               # %.lr.ph.i.i
                                        # =>This Inner Loop Header: Depth=1
	cmpl	$99, %ecx
	jbe	.LBB1_31
# %bb.27:                               #   in Loop: Header=BB1_26 Depth=1
	cmpl	$999, %ecx                      # imm = 0x3E7
	jbe	.LBB1_32
# %bb.28:                               #   in Loop: Header=BB1_26 Depth=1
	cmpl	$10000, %ecx                    # imm = 0x2710
	jb	.LBB1_33
# %bb.29:                               #   in Loop: Header=BB1_26 Depth=1
	movl	%ecx, %edx
	imulq	%rax, %rdx
	shrq	$45, %rdx
	addl	$4, %r15d
	cmpl	$99999, %ecx                    # imm = 0x1869F
	movl	%edx, %ecx
	ja	.LBB1_26
# %bb.30:                               # %_ZNSt8__detail14__to_chars_lenIjEEjT_i.exit.i.loopexit
	addl	$-3, %r15d
	jmp	.LBB1_33
.LBB1_31:
	addl	$-2, %r15d
	jmp	.LBB1_33
.LBB1_32:
	decl	%r15d
.LBB1_33:                               # %_ZNSt8__detail14__to_chars_lenIjEEjT_i.exit.i
                                        # kill: def $r13d killed $r13d killed $r13 def $r13
	shrl	$31, %r13d
	leal	(%r15,%r13), %esi
	leaq	8(%rsp), %rdi
	leaq	24(%rsp), %rax
	movq	%rax, (%rdi)
.Ltmp9:
	movl	$45, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc
.Ltmp10:
# %bb.34:                               # %_ZNSt7__cxx119to_stringEi.exit
	movl	%r13d, %edi
	addq	8(%rsp), %rdi
	movl	%r15d, %esi
	movl	%ebp, %edx
	callq	_ZNSt8__detail18__to_chars_10_implIjEEvPcjT_
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdx
.Ltmp12:
	movl	$_ZSt4cout, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp13:
	movq	(%rsp), %rbp                    # 8-byte Reload
# %bb.35:                               # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
	movq	%rax, %r15
	movb	$10, 64(%rsp)
	movq	(%rax), %rax
	movq	-24(%rax), %rax
	cmpq	$0, 16(%r15,%rax)
	je	.LBB1_38
# %bb.36:
.Ltmp14:
	leaq	64(%rsp), %rsi
	movl	$1, %edx
	movq	%r15, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp15:
# %bb.37:
	movq	%rax, %r15
	jmp	.LBB1_39
.LBB1_38:
.Ltmp16:
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_ZNSo3putEc
.Ltmp17:
.LBB1_39:
.Ltmp18:
	movl	$.L.str.1, %esi
	movl	$30, %edx
	movq	%r15, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp19:
# %bb.40:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	movq	%r15, 40(%rsp)                  # 8-byte Spill
	movl	%ebp, %r13d
	negl	%r13d
	cmovsl	%ebp, %r13d
	movl	$1, %r15d
	cmpl	$10, %r13d
	jb	.LBB1_49
# %bb.41:                               # %.lr.ph.i.i116.preheader
	movl	$4, %r15d
	movl	$3518437209, %eax               # imm = 0xD1B71759
	movl	%r13d, %ecx
.LBB1_42:                               # %.lr.ph.i.i116
                                        # =>This Inner Loop Header: Depth=1
	cmpl	$99, %ecx
	jbe	.LBB1_47
# %bb.43:                               #   in Loop: Header=BB1_42 Depth=1
	cmpl	$999, %ecx                      # imm = 0x3E7
	jbe	.LBB1_48
# %bb.44:                               #   in Loop: Header=BB1_42 Depth=1
	cmpl	$10000, %ecx                    # imm = 0x2710
	jb	.LBB1_49
# %bb.45:                               #   in Loop: Header=BB1_42 Depth=1
	movl	%ecx, %edx
	imulq	%rax, %rdx
	shrq	$45, %rdx
	addl	$4, %r15d
	cmpl	$99999, %ecx                    # imm = 0x1869F
	movl	%edx, %ecx
	ja	.LBB1_42
# %bb.46:                               # %_ZNSt8__detail14__to_chars_lenIjEEjT_i.exit.i119.loopexit
	addl	$-3, %r15d
	jmp	.LBB1_49
.LBB1_47:
	addl	$-2, %r15d
	jmp	.LBB1_49
.LBB1_48:
	decl	%r15d
.LBB1_49:                               # %_ZNSt8__detail14__to_chars_lenIjEEjT_i.exit.i119
                                        # kill: def $ebp killed $ebp killed $rbp def $rbp
	shrl	$31, %ebp
	leal	(%r15,%rbp), %esi
	leaq	80(%rsp), %rax
	movq	%rax, -16(%rax)
.Ltmp21:
	leaq	64(%rsp), %rdi
	movl	$45, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc
.Ltmp22:
# %bb.50:                               # %_ZNSt7__cxx119to_stringEi.exit122
	movl	%ebp, %edi
	addq	64(%rsp), %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_ZNSt8__detail18__to_chars_10_implIjEEvPcjT_
	movq	64(%rsp), %rsi
	movq	72(%rsp), %rdx
.Ltmp24:
	movq	40(%rsp), %rdi                  # 8-byte Reload
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp25:
	movq	48(%rsp), %r15                  # 8-byte Reload
	movq	(%rsp), %rbp                    # 8-byte Reload
# %bb.51:                               # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit124
	movq	%rax, %r13
	movb	$10, 96(%rsp)
	movq	(%rax), %rax
	movq	-24(%rax), %rax
	cmpq	$0, 16(%r13,%rax)
	je	.LBB1_54
# %bb.52:
.Ltmp26:
	leaq	96(%rsp), %rsi
	movl	$1, %edx
	movq	%r13, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp27:
# %bb.53:
	movq	%rax, %r13
	jmp	.LBB1_55
.LBB1_54:
.Ltmp28:
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNSo3putEc
.Ltmp29:
.LBB1_55:
.Ltmp30:
	movl	$.L.str.2, %esi
	movl	$15, %edx
	movq	%r13, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp31:
# %bb.56:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit131
	movq	%r13, 40(%rsp)                  # 8-byte Spill
                                        # kill: def $ebp killed $ebp killed $rbp def $rbp
	imull	%r15d, %ebp
	movl	%ebp, %r13d
	negl	%r13d
	cmovsl	%ebp, %r13d
	movl	$1, %r15d
	cmpl	$10, %r13d
	jb	.LBB1_65
# %bb.57:                               # %.lr.ph.i.i132.preheader
	movl	$4, %r15d
	movl	$3518437209, %eax               # imm = 0xD1B71759
	movl	%r13d, %ecx
.LBB1_58:                               # %.lr.ph.i.i132
                                        # =>This Inner Loop Header: Depth=1
	cmpl	$99, %ecx
	jbe	.LBB1_63
# %bb.59:                               #   in Loop: Header=BB1_58 Depth=1
	cmpl	$999, %ecx                      # imm = 0x3E7
	jbe	.LBB1_64
# %bb.60:                               #   in Loop: Header=BB1_58 Depth=1
	cmpl	$10000, %ecx                    # imm = 0x2710
	jb	.LBB1_65
# %bb.61:                               #   in Loop: Header=BB1_58 Depth=1
	movl	%ecx, %edx
	imulq	%rax, %rdx
	shrq	$45, %rdx
	addl	$4, %r15d
	cmpl	$99999, %ecx                    # imm = 0x1869F
	movl	%edx, %ecx
	ja	.LBB1_58
# %bb.62:                               # %_ZNSt8__detail14__to_chars_lenIjEEjT_i.exit.i135.loopexit
	addl	$-3, %r15d
	jmp	.LBB1_65
.LBB1_63:
	addl	$-2, %r15d
	jmp	.LBB1_65
.LBB1_64:
	decl	%r15d
.LBB1_65:                               # %_ZNSt8__detail14__to_chars_lenIjEEjT_i.exit.i135
	shrl	$31, %ebp
	leal	(%r15,%rbp), %esi
	leaq	112(%rsp), %rax
	movq	%rax, -16(%rax)
.Ltmp33:
	leaq	96(%rsp), %rdi
	movl	$45, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc
.Ltmp34:
# %bb.66:                               # %_ZNSt7__cxx119to_stringEi.exit138
	movl	%ebp, %edi
	addq	96(%rsp), %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_ZNSt8__detail18__to_chars_10_implIjEEvPcjT_
	movq	96(%rsp), %rsi
	movq	104(%rsp), %rdx
.Ltmp36:
	movq	40(%rsp), %rdi                  # 8-byte Reload
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp37:
# %bb.67:                               # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit140
.Ltmp38:
	movq	%rax, %r13
	movl	$.L.str.3, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp39:
# %bb.68:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit142
.Ltmp40:
	movl	$.L.str.4, %esi
	movl	$15, %edx
	movq	%r13, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp41:
# %bb.69:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit144
	movl	$1, %esi
	cmpl	$4, 176(%rsp)                   # 4-byte Folded Reload
	jb	.LBB1_78
# %bb.70:                               # %.lr.ph.i.i145.preheader
	movl	$4, %esi
	movabsq	$3777893186295716171, %rdi      # imm = 0x346DC5D63886594B
	movq	%r12, %rcx
.LBB1_71:                               # %.lr.ph.i.i145
                                        # =>This Inner Loop Header: Depth=1
	cmpq	$99, %rcx
	jbe	.LBB1_76
# %bb.72:                               #   in Loop: Header=BB1_71 Depth=1
	cmpq	$999, %rcx                      # imm = 0x3E7
	jbe	.LBB1_77
# %bb.73:                               #   in Loop: Header=BB1_71 Depth=1
	cmpq	$10000, %rcx                    # imm = 0x2710
	jb	.LBB1_78
# %bb.74:                               #   in Loop: Header=BB1_71 Depth=1
	movq	%rcx, %rax
	mulq	%rdi
	shrq	$11, %rdx
	addl	$4, %esi
	cmpq	$99999, %rcx                    # imm = 0x1869F
	movq	%rdx, %rcx
	ja	.LBB1_71
# %bb.75:                               # %_ZNSt8__detail14__to_chars_lenImEEjT_i.exit.i.loopexit
	addl	$-3, %esi
	jmp	.LBB1_78
.LBB1_76:
	addl	$-2, %esi
	jmp	.LBB1_78
.LBB1_77:
	decl	%esi
.LBB1_78:                               # %_ZNSt8__detail14__to_chars_lenImEEjT_i.exit.i
	movl	%esi, %esi
	leaq	200(%rsp), %rbp
	movq	%rbp, -16(%rbp)
.Ltmp43:
	leaq	184(%rsp), %rdi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc
.Ltmp44:
# %bb.79:
	movq	184(%rsp), %rdi
	movl	192(%rsp), %esi
	movq	%r12, %rdx
	callq	_ZNSt8__detail18__to_chars_10_implImEEvPcjT_
	movq	184(%rsp), %rsi
	movq	192(%rsp), %rdx
.Ltmp46:
	movq	%r13, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp47:
# %bb.80:                               # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit149
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
.Ltmp48:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp49:
# %bb.81:                               # %.noexc199
.Ltmp50:
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
.Ltmp51:
# %bb.82:                               # %.noexc200
.Ltmp52:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp53:
# %bb.83:                               # %_ZNSolsEPFRSoS_E.exit
	movq	184(%rsp), %rdi
	cmpq	%rbp, %rdi
	movq	48(%rsp), %r15                  # 8-byte Reload
	je	.LBB1_85
# %bb.84:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i151
	callq	_ZdlPv
.LBB1_85:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit153
	movq	96(%rsp), %rdi
	leaq	112(%rsp), %rax
	cmpq	%rax, %rdi
	movq	(%rsp), %r13                    # 8-byte Reload
	je	.LBB1_87
# %bb.86:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i154
	callq	_ZdlPv
.LBB1_87:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit156
	movq	64(%rsp), %rdi
	leaq	80(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_89
# %bb.88:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i157
	callq	_ZdlPv
.LBB1_89:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit159
	movq	8(%rsp), %rdi
	leaq	24(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_91
# %bb.90:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i160
	callq	_ZdlPv
.LBB1_91:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit162
	movl	%r13d, %ebp
	movl	%r15d, %r13d
	xorl	%r15d, %r15d
.LBB1_92:                               # =>This Inner Loop Header: Depth=1
	movq	%r15, %xmm1
	punpckldq	.LCPI1_0(%rip), %xmm1   # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
	subpd	.LCPI1_1(%rip), %xmm1
	movapd	%xmm1, %xmm0
	unpckhpd	%xmm1, %xmm0                    # xmm0 = xmm0[1],xmm1[1]
	addsd	%xmm1, %xmm0
	mulsd	.LCPI1_2(%rip), %xmm0
	mulsd	.LCPI1_3(%rip), %xmm0
	movapd	%xmm0, 48(%rsp)                 # 16-byte Spill
	callq	sin
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, (%rbx,%r15,4)
	movaps	48(%rsp), %xmm0                 # 16-byte Reload
	callq	cos
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, (%r14,%r15,4)
	incq	%r15
	cmpq	%r15, %r12
	jne	.LBB1_92
# %bb.93:
	btsq	$32, %rbp
	movq	%rbp, 48(%rsp)                  # 8-byte Spill
	btsq	$32, %r13
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, (%rsp)                    # 8-byte Spill
	leaq	160(%rsp), %r15
	movq	%r15, %rdi
	movq	168(%rsp), %rbp                 # 8-byte Reload
	movq	%rbp, %rsi
	callq	hipMalloc
	movl	%eax, %edi
	movl	$64, %esi
	callq	_ZL11HandleError10hipError_tPKci
	leaq	136(%rsp), %rdi
	movq	%rbp, %rsi
	callq	hipMalloc
	movl	%eax, %edi
	movl	$65, %esi
	callq	_ZL11HandleError10hipError_tPKci
	leaq	128(%rsp), %rdi
	movq	%rbp, %rsi
	callq	hipMalloc
	movl	%eax, %edi
	movl	$66, %esi
	callq	_ZL11HandleError10hipError_tPKci
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	movq	%rbp, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	movl	$68, %esi
	callq	_ZL11HandleError10hipError_tPKci
	leaq	136(%rsp), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	movq	%rbp, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	movl	$69, %esi
	callq	_ZL11HandleError10hipError_tPKci
	movq	48(%rsp), %rdi                  # 8-byte Reload
	movl	$1, %esi
	movq	%r13, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB1_95
# %bb.94:
	movq	160(%rsp), %rsi
	movq	136(%rsp), %rdx
	movq	128(%rsp), %rcx
	movl	148(%rsp), %edi                 # 4-byte Reload
	callq	_Z24__device_stub__addVectoriPfS_S_
.LBB1_95:
	callq	hipDeviceSynchronize
	movq	128(%rsp), %rsi
	movq	152(%rsp), %r15                 # 8-byte Reload
	movq	%r15, %rdi
	movq	%rbp, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	movl	$74, %esi
	callq	_ZL11HandleError10hipError_tPKci
	xorl	%r13d, %r13d
	callq	_ZNSt6chrono3_V212system_clock3nowEv
.LBB1_96:                               # =>This Inner Loop Header: Depth=1
	movss	(%rbx,%r13,4), %xmm0            # xmm0 = mem[0],zero,zero,zero
	addss	(%r14,%r13,4), %xmm0
	ucomiss	(%r15,%r13,4), %xmm0
	jne	.LBB1_99
	jp	.LBB1_99
# %bb.97:                               #   in Loop: Header=BB1_96 Depth=1
	incq	%r13
	cmpq	%r13, %r12
	jne	.LBB1_96
# %bb.98:
	subq	(%rsp), %rax                    # 8-byte Folded Reload
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	divsd	.LCPI1_4(%rip), %xmm0
	movl	$.L.str.9, %edi
	movb	$1, %al
	callq	printf
	movq	160(%rsp), %rdi
	callq	hipFree
	movq	136(%rsp), %rdi
	callq	hipFree
	movq	128(%rsp), %rdi
	callq	hipFree
	movq	%rbx, %rdi
	callq	free
	movq	%r14, %rdi
	callq	free
	movq	%r15, %rdi
	callq	free
	xorl	%eax, %eax
	addq	$216, %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
.LBB1_99:
	.cfi_def_cfa_offset 272
	leaq	96(%rsp), %r15
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_ZNSt7__cxx119to_stringEm
.Ltmp55:
	leaq	64(%rsp), %rdi
	movl	$.L.str.6, %esi
	movq	%r15, %rdx
	callq	_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_
.Ltmp56:
# %bb.100:
.Ltmp58:
	leaq	8(%rsp), %rdi
	leaq	64(%rsp), %rsi
	movl	$.L.str.7, %edx
	callq	_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_
.Ltmp59:
# %bb.101:
	movq	64(%rsp), %rdi
	leaq	80(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_103
# %bb.102:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i184
	callq	_ZdlPv
.LBB1_103:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit186
	movq	96(%rsp), %rdi
	leaq	112(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_105
# %bb.104:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i187
	callq	_ZdlPv
.LBB1_105:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit189
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rbx,%r13,4), %xmm0
	cvtss2sd	(%r14,%r13,4), %xmm1
	movq	152(%rsp), %rax                 # 8-byte Reload
	cvtss2sd	(%rax,%r13,4), %xmm2
	movl	$.L.str.8, %edi
	movq	%r13, %rsi
	movq	%r13, %rdx
	movq	%r13, %rcx
	movb	$3, %al
	callq	printf
	movl	$16, %edi
	callq	__cxa_allocate_exception
	movq	%rax, %r14
.Ltmp61:
	leaq	8(%rsp), %rsi
	movq	%rax, %rdi
	callq	_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.Ltmp62:
# %bb.106:
.Ltmp64:
	movl	$_ZTISt13runtime_error, %esi
	movl	$_ZNSt13runtime_errorD1Ev, %edx
	movq	%r14, %rdi
	callq	__cxa_throw
.Ltmp65:
# %bb.107:
.LBB1_108:
.Ltmp79:
	movl	$.L.str.10, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp80:
# %bb.109:
.LBB1_110:                              # %.critedge.i.i
.Ltmp77:
	movl	$.L.str.10, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp78:
# %bb.111:
.LBB1_112:
.Ltmp74:
	movl	$.L.str.10, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp75:
# %bb.113:
.LBB1_114:                              # %.critedge.i.i97
.Ltmp72:
	movl	$.L.str.10, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp73:
# %bb.115:
.LBB1_116:
.Ltmp69:
	movl	$.L.str.10, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp70:
# %bb.117:
.LBB1_118:                              # %.critedge.i.i106
.Ltmp67:
	movl	$.L.str.10, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp68:
# %bb.119:
.LBB1_120:
.Ltmp45:
	jmp	.LBB1_138
.LBB1_121:
.Ltmp35:
	jmp	.LBB1_124
.LBB1_122:
.Ltmp23:
	jmp	.LBB1_124
.LBB1_123:
.Ltmp11:
.LBB1_124:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.LBB1_125:
.Ltmp8:
	jmp	.LBB1_128
.LBB1_126:
.Ltmp5:
	jmp	.LBB1_128
.LBB1_127:
.Ltmp2:
.LBB1_128:
	movq	%rax, %rbx
	jmp	.LBB1_157
.LBB1_129:
.Ltmp71:
	movq	%rax, %rbx
	cmpl	$0, (%rbp)
	jne	.LBB1_150
# %bb.130:
	movl	40(%rsp), %eax                  # 4-byte Reload
	jmp	.LBB1_133
.LBB1_131:
.Ltmp76:
	movq	%rax, %rbx
	cmpl	$0, (%rbp)
	jne	.LBB1_150
# %bb.132:
	movl	48(%rsp), %eax                  # 4-byte Reload
.LBB1_133:                              # %_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev.exit.i.i98
	movl	%eax, (%rbp)
	jmp	.LBB1_150
.LBB1_134:
.Ltmp81:
	movq	%rax, %rbx
	cmpl	$0, (%rbp)
	jne	.LBB1_136
# %bb.135:
	movl	%r15d, (%rbp)
.LBB1_136:                              # %_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev.exit.i.i
	leaq	24(%rsp), %rax
	movq	-16(%rax), %rdi
	jmp	.LBB1_155
.LBB1_137:
.Ltmp42:
.LBB1_138:
	movq	%rax, %rbx
	jmp	.LBB1_146
.LBB1_139:
.Ltmp32:
	movq	%rax, %rbx
	jmp	.LBB1_148
.LBB1_140:
.Ltmp20:
	jmp	.LBB1_141
.LBB1_142:
.Ltmp66:
.LBB1_141:                              # %_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev.exit.i.i98
	movq	%rax, %rbx
	jmp	.LBB1_150
.LBB1_143:
.Ltmp63:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	__cxa_free_exception
	jmp	.LBB1_150
.LBB1_144:
.Ltmp54:
	movq	%rax, %rbx
	movq	184(%rsp), %rdi
	cmpq	%rbp, %rdi
	je	.LBB1_146
# %bb.145:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i172
	callq	_ZdlPv
.LBB1_146:
	movq	96(%rsp), %rdi
	leaq	112(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_148
# %bb.147:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i175
	callq	_ZdlPv
.LBB1_148:
	movq	64(%rsp), %rdi
	leaq	80(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_150
# %bb.149:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i178
	callq	_ZdlPv
.LBB1_150:                              # %_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev.exit.i.i98
	movq	8(%rsp), %rdi
	leaq	24(%rsp), %rax
	jmp	.LBB1_155
.LBB1_151:
.Ltmp60:
	movq	%rax, %rbx
	movq	64(%rsp), %rdi
	leaq	80(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_154
# %bb.152:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i190
	callq	_ZdlPv
	jmp	.LBB1_154
.LBB1_153:
.Ltmp57:
	movq	%rax, %rbx
.LBB1_154:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit192
	movq	96(%rsp), %rdi
	leaq	112(%rsp), %rax
.LBB1_155:                              # %_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev.exit.i.i
	cmpq	%rax, %rdi
	je	.LBB1_157
# %bb.156:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i163
	callq	_ZdlPv
.LBB1_157:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end1:
	.size	main, .Lfunc_end1-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table1:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase0-.Lttbaseref0
.Lttbaseref0:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 1 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp7-.Ltmp6                  #   Call between .Ltmp6 and .Ltmp7
	.uleb128 .Ltmp8-.Lfunc_begin0           #     jumps to .Ltmp8
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp7-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp9-.Ltmp7                  #   Call between .Ltmp7 and .Ltmp9
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp9-.Lfunc_begin0           # >> Call Site 5 <<
	.uleb128 .Ltmp10-.Ltmp9                 #   Call between .Ltmp9 and .Ltmp10
	.uleb128 .Ltmp11-.Lfunc_begin0          #     jumps to .Ltmp11
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp12-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp19-.Ltmp12                #   Call between .Ltmp12 and .Ltmp19
	.uleb128 .Ltmp20-.Lfunc_begin0          #     jumps to .Ltmp20
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp21-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp22-.Ltmp21                #   Call between .Ltmp21 and .Ltmp22
	.uleb128 .Ltmp23-.Lfunc_begin0          #     jumps to .Ltmp23
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp24-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp31-.Ltmp24                #   Call between .Ltmp24 and .Ltmp31
	.uleb128 .Ltmp32-.Lfunc_begin0          #     jumps to .Ltmp32
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp33-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp34-.Ltmp33                #   Call between .Ltmp33 and .Ltmp34
	.uleb128 .Ltmp35-.Lfunc_begin0          #     jumps to .Ltmp35
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp36-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp41-.Ltmp36                #   Call between .Ltmp36 and .Ltmp41
	.uleb128 .Ltmp42-.Lfunc_begin0          #     jumps to .Ltmp42
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp43-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp44-.Ltmp43                #   Call between .Ltmp43 and .Ltmp44
	.uleb128 .Ltmp45-.Lfunc_begin0          #     jumps to .Ltmp45
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp46-.Lfunc_begin0          # >> Call Site 12 <<
	.uleb128 .Ltmp53-.Ltmp46                #   Call between .Ltmp46 and .Ltmp53
	.uleb128 .Ltmp54-.Lfunc_begin0          #     jumps to .Ltmp54
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp53-.Lfunc_begin0          # >> Call Site 13 <<
	.uleb128 .Ltmp55-.Ltmp53                #   Call between .Ltmp53 and .Ltmp55
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp55-.Lfunc_begin0          # >> Call Site 14 <<
	.uleb128 .Ltmp56-.Ltmp55                #   Call between .Ltmp55 and .Ltmp56
	.uleb128 .Ltmp57-.Lfunc_begin0          #     jumps to .Ltmp57
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp58-.Lfunc_begin0          # >> Call Site 15 <<
	.uleb128 .Ltmp59-.Ltmp58                #   Call between .Ltmp58 and .Ltmp59
	.uleb128 .Ltmp60-.Lfunc_begin0          #     jumps to .Ltmp60
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp59-.Lfunc_begin0          # >> Call Site 16 <<
	.uleb128 .Ltmp61-.Ltmp59                #   Call between .Ltmp59 and .Ltmp61
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp61-.Lfunc_begin0          # >> Call Site 17 <<
	.uleb128 .Ltmp62-.Ltmp61                #   Call between .Ltmp61 and .Ltmp62
	.uleb128 .Ltmp63-.Lfunc_begin0          #     jumps to .Ltmp63
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp64-.Lfunc_begin0          # >> Call Site 18 <<
	.uleb128 .Ltmp65-.Ltmp64                #   Call between .Ltmp64 and .Ltmp65
	.uleb128 .Ltmp66-.Lfunc_begin0          #     jumps to .Ltmp66
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp79-.Lfunc_begin0          # >> Call Site 19 <<
	.uleb128 .Ltmp78-.Ltmp79                #   Call between .Ltmp79 and .Ltmp78
	.uleb128 .Ltmp81-.Lfunc_begin0          #     jumps to .Ltmp81
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp74-.Lfunc_begin0          # >> Call Site 20 <<
	.uleb128 .Ltmp73-.Ltmp74                #   Call between .Ltmp74 and .Ltmp73
	.uleb128 .Ltmp76-.Lfunc_begin0          #     jumps to .Ltmp76
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp69-.Lfunc_begin0          # >> Call Site 21 <<
	.uleb128 .Ltmp68-.Ltmp69                #   Call between .Ltmp69 and .Ltmp68
	.uleb128 .Ltmp71-.Lfunc_begin0          #     jumps to .Ltmp71
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp68-.Lfunc_begin0          # >> Call Site 22 <<
	.uleb128 .Lfunc_end1-.Ltmp68            #   Call between .Ltmp68 and .Lfunc_end1
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_ # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.cfi_startproc
# %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
	leaq	16(%rdi), %rax
	movq	%rax, (%rdi)
	testq	%rsi, %rsi
	je	.LBB2_1
# %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	strlen
	leaq	(%rax,%rbx), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # TAILCALL
.LBB2_1:
	.cfi_def_cfa_offset 32
	movl	$.L.str.14, %edi
	callq	_ZSt19__throw_logic_errorPKc
.Lfunc_end2:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .Lfunc_end2-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt7__cxx119to_stringEm,"axG",@progbits,_ZNSt7__cxx119to_stringEm,comdat
	.weak	_ZNSt7__cxx119to_stringEm       # -- Begin function _ZNSt7__cxx119to_stringEm
	.type	_ZNSt7__cxx119to_stringEm,@function
_ZNSt7__cxx119to_stringEm:              # @_ZNSt7__cxx119to_stringEm
	.cfi_startproc
# %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	%rsi, %r14
	movq	%rdi, %rbx
	movl	$1, %esi
	cmpq	$10, %r14
	jb	.LBB3_9
# %bb.1:                                # %.lr.ph.i.preheader
	movl	$4, %esi
	movabsq	$3777893186295716171, %rdi      # imm = 0x346DC5D63886594B
	movq	%r14, %rcx
.LBB3_2:                                # %.lr.ph.i
                                        # =>This Inner Loop Header: Depth=1
	cmpq	$99, %rcx
	jbe	.LBB3_3
# %bb.4:                                #   in Loop: Header=BB3_2 Depth=1
	cmpq	$999, %rcx                      # imm = 0x3E7
	jbe	.LBB3_5
# %bb.6:                                #   in Loop: Header=BB3_2 Depth=1
	cmpq	$10000, %rcx                    # imm = 0x2710
	jb	.LBB3_9
# %bb.7:                                #   in Loop: Header=BB3_2 Depth=1
	movq	%rcx, %rax
	mulq	%rdi
	shrq	$11, %rdx
	addl	$4, %esi
	cmpq	$99999, %rcx                    # imm = 0x1869F
	movq	%rdx, %rcx
	ja	.LBB3_2
# %bb.8:                                # %_ZNSt8__detail14__to_chars_lenImEEjT_i.exit.loopexit
	addl	$-3, %esi
	jmp	.LBB3_9
.LBB3_3:
	addl	$-2, %esi
	jmp	.LBB3_9
.LBB3_5:
	decl	%esi
.LBB3_9:                                # %_ZNSt8__detail14__to_chars_lenImEEjT_i.exit
	movl	%esi, %esi
	leaq	16(%rbx), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc
	movq	(%rbx), %rdi
	movl	8(%rbx), %esi
	movq	%r14, %rdx
	callq	_ZNSt8__detail18__to_chars_10_implImEEvPcjT_
	movq	%rbx, %rax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_ZNSt7__cxx119to_stringEm, .Lfunc_end3-_ZNSt7__cxx119to_stringEm
	.cfi_endproc
                                        # -- End function
	.text
	.type	_ZL11HandleError10hipError_tPKci,@function # -- Begin function _ZL11HandleError10hipError_tPKci
_ZL11HandleError10hipError_tPKci:       # @_ZL11HandleError10hipError_tPKci
	.cfi_startproc
# %bb.0:
	testl	%edi, %edi
	jne	.LBB4_2
# %bb.1:
	retq
.LBB4_2:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movl	%esi, %ebx
	callq	hipGetErrorString
	movl	$.L.str.11, %edi
	movl	$.L.str.5, %edx
	movq	%rax, %rsi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	printf
	movl	$1, %edi
	callq	exit
.Lfunc_end4:
	.size	_ZL11HandleError10hipError_tPKci, .Lfunc_end4-_ZL11HandleError10hipError_tPKci
	.cfi_endproc
                                        # -- End function
	.section	.text._ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_,"axG",@progbits,_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_,comdat
	.weak	_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_ # -- Begin function _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_
	.type	_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_,@function
_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_: # @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_
	.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	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc
	movq	%rax, %r14
	leaq	16(%rbx), %rdi
	movq	%rdi, (%rbx)
	movq	(%rax), %rsi
	movq	%rax, %r15
	addq	$16, %r15
	cmpq	%r15, %rsi
	je	.LBB5_1
# %bb.2:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i
	movq	%rsi, (%rbx)
	movq	16(%r14), %rax
	movq	%rax, 16(%rbx)
	movq	8(%r14), %r12
	jmp	.LBB5_3
.LBB5_1:
	movq	8(%r14), %r12
	leaq	1(%r12), %rdx
	callq	memcpy@PLT
.LBB5_3:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_.exit
	movq	%r12, 8(%rbx)
	movq	%r15, (%r14)
	movq	$0, 8(%r14)
	movb	$0, 16(%r14)
	movq	%rbx, %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_end5:
	.size	_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_, .Lfunc_end5-_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_,"axG",@progbits,_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_,comdat
	.weak	_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_ # -- Begin function _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_
	.type	_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_,@function
_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_: # @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_
	.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
	movq	%rsi, %rdi
	callq	strlen
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %rcx
	movq	%rax, %r8
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm
	movq	%rax, %r14
	leaq	16(%rbx), %rdi
	movq	%rdi, (%rbx)
	movq	(%rax), %rsi
	movq	%rax, %r15
	addq	$16, %r15
	cmpq	%r15, %rsi
	je	.LBB6_1
# %bb.2:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i
	movq	%rsi, (%rbx)
	movq	16(%r14), %rax
	movq	%rax, 16(%rbx)
	movq	8(%r14), %r12
	jmp	.LBB6_3
.LBB6_1:
	movq	8(%r14), %r12
	leaq	1(%r12), %rdx
	callq	memcpy@PLT
.LBB6_3:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_.exit
	movq	%r12, 8(%rbx)
	movq	%r15, (%r14)
	movq	$0, 8(%r14)
	movb	$0, 16(%r14)
	movq	%rbx, %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	_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_, .Lfunc_end6-_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_
	.cfi_endproc
                                        # -- End function
	.section	.text.__clang_call_terminate,"axG",@progbits,__clang_call_terminate,comdat
	.hidden	__clang_call_terminate          # -- Begin function __clang_call_terminate
	.weak	__clang_call_terminate
	.type	__clang_call_terminate,@function
__clang_call_terminate:                 # @__clang_call_terminate
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__cxa_begin_catch
	callq	_ZSt9terminatev
.Lfunc_end7:
	.size	__clang_call_terminate, .Lfunc_end7-__clang_call_terminate
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8__detail18__to_chars_10_implIjEEvPcjT_,"axG",@progbits,_ZNSt8__detail18__to_chars_10_implIjEEvPcjT_,comdat
	.weak	_ZNSt8__detail18__to_chars_10_implIjEEvPcjT_ # -- Begin function _ZNSt8__detail18__to_chars_10_implIjEEvPcjT_
	.type	_ZNSt8__detail18__to_chars_10_implIjEEvPcjT_,@function
_ZNSt8__detail18__to_chars_10_implIjEEvPcjT_: # @_ZNSt8__detail18__to_chars_10_implIjEEvPcjT_
	.cfi_startproc
# %bb.0:
                                        # kill: def $esi killed $esi def $rsi
	cmpl	$100, %edx
	jb	.LBB8_1
# %bb.2:                                # %.lr.ph.preheader
	decl	%esi
.LBB8_3:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	%edx, %eax
	imulq	$1374389535, %rax, %rax         # imm = 0x51EB851F
	shrq	$37, %rax
	imull	$100, %eax, %ecx
	movl	%edx, %r8d
	subl	%ecx, %r8d
	movb	.L__const._ZNSt8__detail18__to_chars_10_implImEEvPcjT_.__digits+1(%r8,%r8), %cl
	movl	%esi, %r9d
	movb	%cl, (%rdi,%r9)
	movb	.L__const._ZNSt8__detail18__to_chars_10_implImEEvPcjT_.__digits(%r8,%r8), %cl
	leal	-1(%rsi), %r8d
	movb	%cl, (%rdi,%r8)
	addl	$-2, %esi
	cmpl	$9999, %edx                     # imm = 0x270F
	movl	%eax, %edx
	ja	.LBB8_3
	jmp	.LBB8_4
.LBB8_1:
	movl	%edx, %eax
.LBB8_4:                                # %._crit_edge
	cmpl	$10, %eax
	jb	.LBB8_6
# %bb.5:
	movl	%eax, %eax
	leaq	(%rax,%rax), %rcx
	movl	%ecx, %ecx
	movb	.L__const._ZNSt8__detail18__to_chars_10_implImEEvPcjT_.__digits+1(%rcx), %cl
	movb	%cl, 1(%rdi)
	movb	.L__const._ZNSt8__detail18__to_chars_10_implImEEvPcjT_.__digits(%rax,%rax), %al
	jmp	.LBB8_7
.LBB8_6:
	orb	$48, %al
.LBB8_7:
	movb	%al, (%rdi)
	retq
.Lfunc_end8:
	.size	_ZNSt8__detail18__to_chars_10_implIjEEvPcjT_, .Lfunc_end8-_ZNSt8__detail18__to_chars_10_implIjEEvPcjT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8__detail18__to_chars_10_implImEEvPcjT_,"axG",@progbits,_ZNSt8__detail18__to_chars_10_implImEEvPcjT_,comdat
	.weak	_ZNSt8__detail18__to_chars_10_implImEEvPcjT_ # -- Begin function _ZNSt8__detail18__to_chars_10_implImEEvPcjT_
	.type	_ZNSt8__detail18__to_chars_10_implImEEvPcjT_,@function
_ZNSt8__detail18__to_chars_10_implImEEvPcjT_: # @_ZNSt8__detail18__to_chars_10_implImEEvPcjT_
	.cfi_startproc
# %bb.0:
	movq	%rdx, %rcx
                                        # kill: def $esi killed $esi def $rsi
	cmpq	$100, %rdx
	jb	.LBB9_1
# %bb.2:                                # %.lr.ph.preheader
	decl	%esi
	movabsq	$2951479051793528259, %r8       # imm = 0x28F5C28F5C28F5C3
.LBB9_3:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	shrq	$2, %rax
	mulq	%r8
	shrq	$2, %rdx
	imull	$100, %edx, %eax
	movl	%ecx, %r9d
	subl	%eax, %r9d
	movb	.L__const._ZNSt8__detail18__to_chars_10_implImEEvPcjT_.__digits+1(%r9,%r9), %al
	movl	%esi, %r10d
	movb	%al, (%rdi,%r10)
	movb	.L__const._ZNSt8__detail18__to_chars_10_implImEEvPcjT_.__digits(%r9,%r9), %al
	leal	-1(%rsi), %r9d
	movb	%al, (%rdi,%r9)
	addl	$-2, %esi
	cmpq	$9999, %rcx                     # imm = 0x270F
	movq	%rdx, %rcx
	ja	.LBB9_3
	jmp	.LBB9_4
.LBB9_1:
	movq	%rcx, %rdx
.LBB9_4:                                # %._crit_edge
	cmpq	$10, %rdx
	jb	.LBB9_6
# %bb.5:
	movb	.L__const._ZNSt8__detail18__to_chars_10_implImEEvPcjT_.__digits+1(%rdx,%rdx), %al
	movb	%al, 1(%rdi)
	movb	.L__const._ZNSt8__detail18__to_chars_10_implImEEvPcjT_.__digits(%rdx,%rdx), %dl
	jmp	.LBB9_7
.LBB9_6:
	orb	$48, %dl
.LBB9_7:
	movb	%dl, (%rdi)
	retq
.Lfunc_end9:
	.size	_ZNSt8__detail18__to_chars_10_implImEEvPcjT_, .Lfunc_end9-_ZNSt8__detail18__to_chars_10_implImEEvPcjT_
	.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	.LBB10_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	.LBB10_3
.LBB10_1:                               # %._crit_edge
	movq	(%rbx), %rax
.LBB10_3:
	testq	%r14, %r14
	je	.LBB10_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB10_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB10_7
.LBB10_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB10_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_end10:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag, .Lfunc_end10-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.text
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	jne	.LBB11_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB11_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z9addVectoriPfS_S_, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end11:
	.size	__hip_module_ctor, .Lfunc_end11-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB12_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB12_2:
	retq
.Lfunc_end12:
	.size	__hip_module_dtor, .Lfunc_end12-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z9addVectoriPfS_S_,@object     # @_Z9addVectoriPfS_S_
	.section	.rodata,"a",@progbits
	.globl	_Z9addVectoriPfS_S_
	.p2align	3, 0x0
_Z9addVectoriPfS_S_:
	.quad	_Z24__device_stub__addVectoriPfS_S_
	.size	_Z9addVectoriPfS_S_, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Number of threads per block:  "
	.size	.L.str, 31

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"Number of blocks in the grid: "
	.size	.L.str.1, 31

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"Total threads: "
	.size	.L.str.2, 16

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"\n"
	.size	.L.str.3, 2

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Vector length: "
	.size	.L.str.4, 16

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"/home/ubuntu/Datasets/stackv2/train-structured-repos-hip-sm89/NikoZHAI/CUDASamples/master/src/add_vec.hip"
	.size	.L.str.5, 106

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"value dismatch at index "
	.size	.L.str.6, 25

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	".\n"
	.size	.L.str.7, 3

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"v1[%i] = %.18f \nv2[%i] = %.18f\nv_out[%i] = %.18f.\n"
	.size	.L.str.8, 51

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"Work done, time consummed: %.5fms.\n"
	.size	.L.str.9, 36

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"stoi"
	.size	.L.str.10, 5

	.type	.L__const._ZNSt8__detail18__to_chars_10_implImEEvPcjT_.__digits,@object # @__const._ZNSt8__detail18__to_chars_10_implImEEvPcjT_.__digits
	.section	.rodata.str1.16,"aMS",@progbits,1
	.p2align	4, 0x0
.L__const._ZNSt8__detail18__to_chars_10_implImEEvPcjT_.__digits:
	.asciz	"00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899"
	.size	.L__const._ZNSt8__detail18__to_chars_10_implImEEvPcjT_.__digits, 201

	.type	.L.str.11,@object               # @.str.11
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.11:
	.asciz	"%s in %s at line %d\n"
	.size	.L.str.11, 21

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"basic_string: construction from null is not valid"
	.size	.L.str.14, 50

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z9addVectoriPfS_S_"
	.size	.L__unnamed_1, 20

	.type	__hip_fatbin_wrapper,@object    # @__hip_fatbin_wrapper
	.section	.hipFatBinSegment,"a",@progbits
	.p2align	3, 0x0
__hip_fatbin_wrapper:
	.long	1212764230                      # 0x48495046
	.long	1                               # 0x1
	.quad	__hip_fatbin
	.quad	0
	.size	__hip_fatbin_wrapper, 24

	.type	__hip_gpubin_handle,@object     # @__hip_gpubin_handle
	.local	__hip_gpubin_handle
	.comm	__hip_gpubin_handle,8,8
	.section	.init_array,"aw",@init_array
	.p2align	3, 0x0
	.quad	__hip_module_ctor
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.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 _Z24__device_stub__addVectoriPfS_S_
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z9addVectoriPfS_S_
	.addrsig_sym _ZSt4cout
	.addrsig_sym _ZTISt13runtime_error
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z9addVectoriPfS_S_     ; -- Begin function _Z9addVectoriPfS_S_
	.globl	_Z9addVectoriPfS_S_
	.p2align	8
	.type	_Z9addVectoriPfS_S_,@function
_Z9addVectoriPfS_S_:                    ; @_Z9addVectoriPfS_S_
; %bb.0:
	s_clause 0x1
	s_load_b32 s4, s[0:1], 0x2c
	s_load_b32 s8, s[0:1], 0x0
	s_add_u32 s2, s0, 32
	s_addc_u32 s3, s1, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s9, s4, 0xffff
	s_mov_b32 s4, exec_lo
	v_mad_u64_u32 v[1:2], null, s15, s9, v[0:1]
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_u32_e64 s8, v1
	s_cbranch_execz .LBB0_3
; %bb.1:                                ; %.lr.ph
	s_load_b32 s10, s[2:3], 0x0
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x8
	s_load_b64 s[2:3], s[0:1], 0x18
	v_mov_b32_e32 v2, 0
	s_waitcnt lgkmcnt(0)
	s_mul_i32 s1, s10, s9
	s_mov_b32 s9, 0
.LBB0_2:                                ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[3:4], 2, v[1:2]
	v_add_nc_u32_e32 v1, s1, v1
	v_add_co_u32 v5, vcc_lo, s4, v3
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v6, vcc_lo, s5, v4, vcc_lo
	v_add_co_u32 v7, vcc_lo, s6, v3
	v_add_co_ci_u32_e32 v8, vcc_lo, s7, v4, vcc_lo
	v_cmp_le_u32_e32 vcc_lo, s8, v1
	global_load_b32 v0, v[5:6], off
	global_load_b32 v5, v[7:8], off
	v_add_co_u32 v3, s0, s2, v3
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v4, s0, s3, v4, s0
	s_or_b32 s9, vcc_lo, s9
	s_waitcnt vmcnt(0)
	v_add_f32_e32 v0, v0, v5
	global_store_b32 v[3:4], v0, off
	s_and_not1_b32 exec_lo, exec_lo, s9
	s_cbranch_execnz .LBB0_2
.LBB0_3:                                ; %._crit_edge
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z9addVectoriPfS_S_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 9
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z9addVectoriPfS_S_, .Lfunc_end0-_Z9addVectoriPfS_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 236
; NumSgprs: 18
; NumVgprs: 9
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 9
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.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_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z9addVectoriPfS_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z9addVectoriPfS_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     9
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
