#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>

int main(){
    int i, j, k, n;
    printf("Enter the number of vertices : \n");
    scanf("%d", &n);

    cudaEvent_t start, stop;
    cudaEventCreate(&start);
    cudaEventCreate(&stop);
    
    long adj[n][n];
    for(i = 0;i < n; i++){
        for(j = 0;j < n; j++)
            adj[i][j] = __INT_MAX__;
    }
    while(1){
        printf("Click 1 to enter edge and 0 to finish.\n");
        scanf("%d", &k);
        if(!k)
            break;
        int s, d, w;
        printf("Enter start and end of edge in 1-ordering : \n");
        scanf("%d %d", &s, &d);
        if(s == d){
            printf("Invalid edge.\n");
            continue;
        }
        if(s > n || s < 1 || d > n || d < 1){
            printf("Invalid edge.\n");
            continue;
        }
        printf("Enter edge weight : \n");
        scanf("%d", &w);
        if(w < 0){
            printf("Invalid edge weight.\n");
            continue;
        }
        adj[s - 1][d - 1] = w;
    }
    for(i = 0; i < n; i++)
        adj[i][i] = 0;

    cudaDeviceSynchronize();    
    cudaEventRecord(start);

    for(k = 0; k < n; k++){
        for(i = 0; i < n; i++){
            for(j = 0;j < n; j++){
                long s = (long)adj[i][k] + (long)adj[k][j];
                if(s < adj[i][j])
                    adj[i][j] = s;
            }
        }
    }

    cudaEventRecord(stop);
    cudaEventSynchronize(stop);

    for(i = 0;i < n; i++){
        for(j = 0;j < n; j++)
            printf("%ld ", adj[i][j]);
        printf("\n");
    }
    float milliseconds = 0;
    cudaEventElapsedTime(&milliseconds, start, stop);
    printf("%f ms\n",milliseconds) ;

    return 0;
}
	.file	"tmpxft_0038b75c_00000000-6_Floydserial.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2030:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2030:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Enter the number of vertices : \n"
.LC1:
	.string	"%d"
.LC2:
	.string	"Click 1 to enter edge and 0 to finish.\n"
.LC3:
	.string	"Enter start and end of edge in 1-ordering : \n"
.LC4:
	.string	"%d %d"
.LC5:
	.string	"Invalid edge.\n"
.LC6:
	.string	"Enter edge weight : \n"
.LC7:
	.string	"Invalid edge weight.\n"
.LC8:
	.string	"%ld "
.LC9:
	.string	"\n"
.LC11:
	.string	"%f ms\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2027:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rsi
	movl	$2, %edi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	leaq	.LC1(%rip), %r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	-88(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc23_scanf@PLT
	leaq	-72(%rbp), %rdi
	call	cudaEventCreate@PLT
	leaq	-64(%rbp), %rdi
	call	cudaEventCreate@PLT
	movslq	-88(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rcx
	leaq	0(,%rax,8), %r13
	imulq	%rax, %rax
	leaq	15(,%rax,8), %rdx
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rsi
.L3:
	cmpq	%rsi, %rsp
	je	.L4
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L3
.L4:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L5
	orq	$0, -8(%rsp,%rax)
.L5:
	movq	%rsp, %rbx
	movq	%r13, %r12
	xorl	%edx, %edx
	movq	%rbx, -104(%rbp)
	shrq	$3, %r12
	movq	%rbx, %rsi
.L6:
	cmpl	%ecx, %edx
	jge	.L8
	xorl	%eax, %eax
.L7:
	movq	$2147483647, (%rsi,%rax,8)
	incq	%rax
	cmpl	%eax, %ecx
	jg	.L7
	incl	%edx
	addq	%r13, %rsi
	jmp	.L6
.L41:
	leaq	.LC3(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	-80(%rbp), %rdx
	leaq	-84(%rbp), %rsi
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rdi
	call	__isoc23_scanf@PLT
	movl	-84(%rbp), %ecx
	movl	-80(%rbp), %edx
	cmpl	%edx, %ecx
	jne	.L10
.L12:
	leaq	.LC5(%rip), %rsi
.L39:
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L8:
	leaq	.LC2(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	-92(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc23_scanf@PLT
	movl	-92(%rbp), %r15d
	testl	%r15d, %r15d
	jne	.L41
	jmp	.L9
.L10:
	movl	-88(%rbp), %esi
	testl	%ecx, %ecx
	setle	%al
	cmpl	%esi, %ecx
	setg	%cl
	orl	%ecx, %eax
	cmpl	%esi, %edx
	setg	%cl
	orb	%cl, %al
	jne	.L12
	testl	%edx, %edx
	jle	.L12
	leaq	.LC6(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	-76(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc23_scanf@PLT
	movslq	-76(%rbp), %rcx
	testl	%ecx, %ecx
	jns	.L13
	leaq	.LC7(%rip), %rsi
	jmp	.L39
.L13:
	movl	-84(%rbp), %edi
	movl	-80(%rbp), %eax
	leal	-1(%rdi), %edx
	decl	%eax
	movslq	%edx, %rdx
	cltq
	imulq	%r12, %rdx
	addq	%rdx, %rax
	movq	%rcx, (%rbx,%rax,8)
	jmp	.L8
.L9:
	movl	-88(%rbp), %ecx
	xorl	%eax, %eax
	leaq	1(%r12), %rsi
.L15:
	cmpl	%eax, %ecx
	jle	.L42
	movslq	%eax, %rdx
	xorl	%edi, %edi
	incl	%eax
	imulq	%rsi, %rdx
	movq	%rdi, (%rbx,%rdx,8)
	jmp	.L15
.L42:
	call	cudaDeviceSynchronize@PLT
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	movl	%eax, -92(%rbp)
	movl	-88(%rbp), %eax
	xorl	%edx, %edx
.L17:
	movl	%ecx, %r14d
	cmpl	%ecx, %eax
	jle	.L43
	movslq	%r14d, %rdx
	movq	%r8, %r10
	movq	%rbx, %r9
	xorl	%esi, %esi
	movq	%rdx, -112(%rbp)
.L20:
	cmpl	%esi, %eax
	jle	.L44
	movslq	%esi, %rdi
	movq	-112(%rbp), %r14
	movq	%r9, %rdx
	xorl	%r11d, %r11d
	imulq	%r12, %rdi
	addq	%r14, %rdi
	movq	%rdi, %r14
.L19:
	movq	(%rdx,%r10,8), %rdi
	addq	(%rbx,%r14,8), %rdi
	cmpq	%rdi, (%rdx)
	jle	.L18
	movq	%rdi, (%rdx)
.L18:
	incl	%r11d
	addq	$8, %rdx
	cmpl	%r11d, %eax
	jne	.L19
	incl	%esi
	addq	%r13, %r9
	subq	%r12, %r10
	jmp	.L20
.L44:
	incq	%rcx
	addq	%r12, %r8
	movb	$1, %dl
	jmp	.L17
.L43:
	testb	%dl, %dl
	je	.L21
	xorl	%edx, %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	movl	%eax, -92(%rbp)
.L21:
	movq	-64(%rbp), %rdi
	xorl	%esi, %esi
	leaq	.LC8(%rip), %r12
	call	cudaEventRecord@PLT
	movq	-64(%rbp), %rdi
	call	cudaEventSynchronize@PLT
.L22:
	cmpl	%r15d, -88(%rbp)
	jle	.L45
	xorl	%ebx, %ebx
.L24:
	cmpl	%ebx, -88(%rbp)
	jle	.L46
	movq	-104(%rbp), %rax
	movq	%r12, %rsi
	movl	$2, %edi
	movq	(%rax,%rbx,8), %rdx
	xorl	%eax, %eax
	incq	%rbx
	call	__printf_chk@PLT
	jmp	.L24
.L46:
	leaq	.LC9(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	incl	%r15d
	call	__printf_chk@PLT
	addq	%r13, -104(%rbp)
	jmp	.L22
.L45:
	movq	-72(%rbp), %rsi
	movq	-64(%rbp), %rdx
	leaq	-76(%rbp), %rdi
	movl	$0x00000000, -76(%rbp)
	call	cudaEventElapsedTime@PLT
	leaq	.LC11(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	-76(%rbp), %xmm0
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2027:
	.size	main, .-main
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2053:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	movq	%rax, %rdi
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE2053:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.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
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>

int main(){
    int i, j, k, n;
    printf("Enter the number of vertices : \n");
    scanf("%d", &n);

    hipEvent_t start, stop;
    hipEventCreate(&start);
    hipEventCreate(&stop);
    
    long adj[n][n];
    for(i = 0;i < n; i++){
        for(j = 0;j < n; j++)
            adj[i][j] = __INT_MAX__;
    }
    while(1){
        printf("Click 1 to enter edge and 0 to finish.\n");
        scanf("%d", &k);
        if(!k)
            break;
        int s, d, w;
        printf("Enter start and end of edge in 1-ordering : \n");
        scanf("%d %d", &s, &d);
        if(s == d){
            printf("Invalid edge.\n");
            continue;
        }
        if(s > n || s < 1 || d > n || d < 1){
            printf("Invalid edge.\n");
            continue;
        }
        printf("Enter edge weight : \n");
        scanf("%d", &w);
        if(w < 0){
            printf("Invalid edge weight.\n");
            continue;
        }
        adj[s - 1][d - 1] = w;
    }
    for(i = 0; i < n; i++)
        adj[i][i] = 0;

    hipDeviceSynchronize();    
    hipEventRecord(start);

    for(k = 0; k < n; k++){
        for(i = 0; i < n; i++){
            for(j = 0;j < n; j++){
                long s = (long)adj[i][k] + (long)adj[k][j];
                if(s < adj[i][j])
                    adj[i][j] = s;
            }
        }
    }

    hipEventRecord(stop);
    hipEventSynchronize(stop);

    for(i = 0;i < n; i++){
        for(j = 0;j < n; j++)
            printf("%ld ", adj[i][j]);
        printf("\n");
    }
    float milliseconds = 0;
    hipEventElapsedTime(&milliseconds, start, stop);
    printf("%f ms\n",milliseconds) ;

    return 0;
}
	.text
	.file	"Floydserial.hip"
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$.Lstr, %edi
	callq	puts@PLT
	leaq	-44(%rbp), %rbx
	movl	$.L.str.1, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	__isoc23_scanf
	leaq	-80(%rbp), %rdi
	callq	hipEventCreate
	leaq	-64(%rbp), %rdi
	callq	hipEventCreate
	movq	%rsp, -88(%rbp)                 # 8-byte Spill
	movl	(%rbx), %r13d
	movq	%r13, %rax
	imulq	%r13, %rax
	movq	%rsp, %r12
	leaq	15(,%rax,8), %rax
	andq	$-16, %rax
	subq	%rax, %r12
	movq	%r12, %rsp
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	.LBB0_5
# %bb.1:                                # %.preheader50.lr.ph
	leaq	(,%r13,8), %rcx
	xorl	%edx, %edx
	movq	%r12, %rsi
.LBB0_2:                                # %.lr.ph
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_3 Depth 2
	xorl	%edi, %edi
.LBB0_3:                                #   Parent Loop BB0_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	$2147483647, (%rsi,%rdi,8)      # imm = 0x7FFFFFFF
	incq	%rdi
	cmpq	%rdi, %rax
	jne	.LBB0_3
# %bb.4:                                # %._crit_edge
                                        #   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	addq	%rcx, %rsi
	cmpq	%rax, %rdx
	jne	.LBB0_2
.LBB0_5:                                # %.preheader49
	movl	$.Lstr.1, %edi
	callq	puts@PLT
	leaq	-52(%rbp), %rbx
	movl	$.L.str.1, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	__isoc23_scanf
	cmpl	$0, (%rbx)
	je	.LBB0_18
# %bb.6:
	leaq	-48(%rbp), %rbx
	leaq	-56(%rbp), %r14
	leaq	-52(%rbp), %r15
.LBB0_7:                                # %.lr.ph55
                                        # =>This Inner Loop Header: Depth=1
	movl	$.Lstr.2, %edi
	callq	puts@PLT
	movl	$.L.str.4, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	__isoc23_scanf
	movl	-48(%rbp), %ecx
	movl	-56(%rbp), %eax
	cmpl	%eax, %ecx
	jne	.LBB0_11
.LBB0_8:                                #   in Loop: Header=BB0_7 Depth=1
	movl	$.Lstr.6, %edi
.LBB0_9:                                #   in Loop: Header=BB0_7 Depth=1
	callq	puts@PLT
.LBB0_10:                               #   in Loop: Header=BB0_7 Depth=1
	movl	$.Lstr.1, %edi
	callq	puts@PLT
	movl	$.L.str.1, %edi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	__isoc23_scanf
	cmpl	$0, -52(%rbp)
	jne	.LBB0_7
	jmp	.LBB0_18
.LBB0_11:                               #   in Loop: Header=BB0_7 Depth=1
	testl	%ecx, %ecx
	jle	.LBB0_8
# %bb.12:                               #   in Loop: Header=BB0_7 Depth=1
	movl	-44(%rbp), %edx
	cmpl	%edx, %ecx
	jg	.LBB0_8
# %bb.13:                               #   in Loop: Header=BB0_7 Depth=1
	testl	%eax, %eax
	jle	.LBB0_8
# %bb.14:                               #   in Loop: Header=BB0_7 Depth=1
	cmpl	%edx, %eax
	jg	.LBB0_8
# %bb.15:                               #   in Loop: Header=BB0_7 Depth=1
	movl	$.Lstr.3, %edi
	callq	puts@PLT
	movl	$.L.str.1, %edi
	leaq	-68(%rbp), %rsi
	xorl	%eax, %eax
	callq	__isoc23_scanf
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	js	.LBB0_17
# %bb.16:                               #   in Loop: Header=BB0_7 Depth=1
	movslq	-48(%rbp), %rcx
	decq	%rcx
	imulq	%r13, %rcx
	leaq	(%r12,%rcx,8), %rcx
	movslq	-56(%rbp), %rdx
	movq	%rax, -8(%rcx,%rdx,8)
	jmp	.LBB0_10
.LBB0_17:                               #   in Loop: Header=BB0_7 Depth=1
	movl	$.Lstr.4, %edi
	jmp	.LBB0_9
.LBB0_18:                               # %.preheader48
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jle	.LBB0_21
# %bb.19:                               # %.lr.ph57.preheader
	leaq	8(,%r13,8), %rcx
	movq	%r12, %rdx
.LBB0_20:                               # %.lr.ph57
                                        # =>This Inner Loop Header: Depth=1
	movq	$0, (%rdx)
	addq	%rcx, %rdx
	decq	%rax
	jne	.LBB0_20
.LBB0_21:                               # %._crit_edge58
	callq	hipDeviceSynchronize
	movq	-80(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	hipEventRecord
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jle	.LBB0_29
# %bb.22:                               # %.preheader47.lr.ph
	leaq	(,%r13,8), %rcx
	xorl	%edx, %edx
	movq	%r12, %rsi
.LBB0_23:                               # %.preheader46.lr.ph
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_24 Depth 2
                                        #       Child Loop BB0_25 Depth 3
	movq	%r12, %rdi
	xorl	%r8d, %r8d
.LBB0_24:                               # %.preheader46
                                        #   Parent Loop BB0_23 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB0_25 Depth 3
	movq	%r8, %r9
	imulq	%r13, %r9
	leaq	(%r12,%r9,8), %r9
	xorl	%r10d, %r10d
.LBB0_25:                               #   Parent Loop BB0_23 Depth=1
                                        #     Parent Loop BB0_24 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movq	(%rsi,%r10,8), %r11
	addq	(%r9,%rdx,8), %r11
	movq	(%rdi,%r10,8), %rbx
	cmpq	%rbx, %r11
	cmovgeq	%rbx, %r11
	movq	%r11, (%rdi,%r10,8)
	incq	%r10
	cmpq	%r10, %rax
	jne	.LBB0_25
# %bb.26:                               # %._crit_edge61
                                        #   in Loop: Header=BB0_24 Depth=2
	incq	%r8
	addq	%rcx, %rdi
	cmpq	%rax, %r8
	jne	.LBB0_24
# %bb.27:                               # %._crit_edge63
                                        #   in Loop: Header=BB0_23 Depth=1
	incq	%rdx
	addq	%rcx, %rsi
	cmpq	%rax, %rdx
	jne	.LBB0_23
# %bb.28:
	movl	%eax, %ebx
.LBB0_29:                               # %._crit_edge65
	movl	%ebx, -52(%rbp)
	movq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	movq	-64(%rbp), %rdi
	callq	hipEventSynchronize
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jle	.LBB0_35
# %bb.30:                               # %.preheader.preheader
	shlq	$3, %r13
	xorl	%ebx, %ebx
.LBB0_31:                               # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_33 Depth 2
	testl	%eax, %eax
	jle	.LBB0_34
# %bb.32:                               # %.lr.ph67
                                        #   in Loop: Header=BB0_31 Depth=1
	xorl	%r14d, %r14d
.LBB0_33:                               #   Parent Loop BB0_31 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	(%r12,%r14,8), %rsi
	movl	$.L.str.8, %edi
	xorl	%eax, %eax
	callq	printf
	incq	%r14
	movslq	-44(%rbp), %rax
	cmpq	%rax, %r14
	jl	.LBB0_33
.LBB0_34:                               # %._crit_edge68
                                        #   in Loop: Header=BB0_31 Depth=1
	movl	$10, %edi
	callq	putchar@PLT
	incq	%rbx
	movslq	-44(%rbp), %rax
	addq	%r13, %r12
	cmpq	%rax, %rbx
	jl	.LBB0_31
.LBB0_35:                               # %._crit_edge70
	leaq	-48(%rbp), %rbx
	movl	$0, (%rbx)
	movq	-80(%rbp), %rsi
	movq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	callq	hipEventElapsedTime
	cvtss2sd	(%rbx), %xmm0
	movl	$.L.str.10, %edi
	movb	$1, %al
	callq	printf
	movq	-88(%rbp), %rsp                 # 8-byte Reload
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa %rsp, 8
	retq
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
                                        # -- End function
	.type	.L.str.1,@object                # @.str.1
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.1:
	.asciz	"%d"
	.size	.L.str.1, 3

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"%d %d"
	.size	.L.str.4, 6

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"%ld "
	.size	.L.str.8, 5

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"%f ms\n"
	.size	.L.str.10, 7

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

	.type	.Lstr,@object                   # @str
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr:
	.asciz	"Enter the number of vertices : "
	.size	.Lstr, 32

	.type	.Lstr.1,@object                 # @str.1
.Lstr.1:
	.asciz	"Click 1 to enter edge and 0 to finish."
	.size	.Lstr.1, 39

	.type	.Lstr.2,@object                 # @str.2
.Lstr.2:
	.asciz	"Enter start and end of edge in 1-ordering : "
	.size	.Lstr.2, 45

	.type	.Lstr.3,@object                 # @str.3
.Lstr.3:
	.asciz	"Enter edge weight : "
	.size	.Lstr.3, 21

	.type	.Lstr.4,@object                 # @str.4
.Lstr.4:
	.asciz	"Invalid edge weight."
	.size	.Lstr.4, 21

	.type	.Lstr.6,@object                 # @str.6
.Lstr.6:
	.asciz	"Invalid edge."
	.size	.Lstr.6, 14

	.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_

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

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

	.end_amdgpu_metadata
