/* infix to postfix expression conversion code
by Codingstreet.com */
#include<stdio.h>
#include<string.h>

int push(char *stack,char val,int *top,int *size);
int pop(char *stack,int *top);
int isstack_empty(int *top);
int isstack_full(int *top,int *size);

int isstack_empty(int *top){
    if((*top)==0) return 1;
    return 0;
}
int isstack_full(int *top,int *size){
    if((*top)==(*size)-1) return 1;
    return 0;
}
int push(char *stack,char val,int *top,int *size){
    if(isstack_full(top,size)){
        return 0;
    }
    stack[(*top)++]=val;
    return 1;
}
int pop(char *stack,int *top){
    if(isstack_empty(top)){
        return -1;
    }
    else return stack[--(*top)];
}
int get_precedence(char c){
	switch(c){
		case '+':
		case '-':
		return 1;
		case '*':
		case '/':
		case '%':
		return 2;
		case '^':
		return 0;
		case '(':
		return -1;
		default :
		return -2;
}
}
void infix_to_postfix(char *instring,char *outstring){
	int i=0,top,size,pred1,pred2,n=0;
	char c,c2;
	int len=strlen(instring);
	if(instring==NULL) return;
	char *stack=(char*)malloc(sizeof(char)*(len-1));
	top=0;size=len-1;
	while(instring[i]!='\0'){
		c=instring[i];
			if(c==' ') {i++;continue; }
			else if(c=='('){
				push(stack,c,&top,&size);
			}
		else if(c=='+' || c=='-' || c=='*' || c=='/' || c=='%'||c=='^'){
			if(isstack_empty(&top)) {
				push(stack,c,&top,&size);
			}
			else {
				pred1=get_precedence(stack[top-1]);
				pred2=get_precedence(c);
				while(pred2<=pred1 && !isstack_empty(&top)){
					c2=pop(stack,&top);
					outstring[n]=c2;
					n++;
					pred2=get_precedence(stack[top-1]);
					pred1=get_precedence(c);
				}
			push(stack,c,&top,&size);
			}
		}
		else if(c==')'){
			while(stack[top-1]!='('){
				c2=pop(stack,&top);
				outstring[n]=c2;
				n++;
			}
			pop(stack,&top);
		}
		else {
			outstring[n]=c;
			n++;
		}
	i++;
	}
	
	while(!isstack_empty(&top)){
		c=pop(stack,&top);
		outstring[n]=c;
		n++;
	}
	
	outstring[n]='\0';
	
}

/*int main(){
	char str[]="((a+t)*((b+(a+c))^(c+d)))";
	char out[100];
	infix_to_postfix(str,out);
	printf("\nInput string :%s \nOutput: %s ",str,out);
	

	return 0;
}*/
	.file	"tmpxft_003899cc_00000000-6_infix2postfix.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2035:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2035:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z13isstack_emptyPi
	.type	_Z13isstack_emptyPi, @function
_Z13isstack_emptyPi:
.LFB2027:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
	cmpl	$0, (%rdi)
	sete	%al
	ret
	.cfi_endproc
.LFE2027:
	.size	_Z13isstack_emptyPi, .-_Z13isstack_emptyPi
	.globl	_Z12isstack_fullPiS_
	.type	_Z12isstack_fullPiS_, @function
_Z12isstack_fullPiS_:
.LFB2028:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	decl	%eax
	cmpl	(%rdi), %eax
	sete	%al
	movzbl	%al, %eax
	ret
	.cfi_endproc
.LFE2028:
	.size	_Z12isstack_fullPiS_, .-_Z12isstack_fullPiS_
	.globl	_Z4pushPccPiS0_
	.type	_Z4pushPccPiS0_, @function
_Z4pushPccPiS0_:
.LFB2029:
	.cfi_startproc
	endbr64
	movl	(%rcx), %ecx
	movslq	(%rdx), %rax
	xorl	%r8d, %r8d
	decl	%ecx
	cmpl	%ecx, %eax
	je	.L4
	leal	1(%rax), %ecx
	movl	$1, %r8d
	movl	%ecx, (%rdx)
	movb	%sil, (%rdi,%rax)
.L4:
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE2029:
	.size	_Z4pushPccPiS0_, .-_Z4pushPccPiS0_
	.globl	_Z3popPcPi
	.type	_Z3popPcPi, @function
_Z3popPcPi:
.LFB2030:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	orl	$-1, %edx
	testl	%eax, %eax
	je	.L8
	decl	%eax
	movl	%eax, (%rsi)
	cltq
	movsbl	(%rdi,%rax), %edx
.L8:
	movl	%edx, %eax
	ret
	.cfi_endproc
.LFE2030:
	.size	_Z3popPcPi, .-_Z3popPcPi
	.globl	_Z14get_precedencec
	.type	_Z14get_precedencec, @function
_Z14get_precedencec:
.LFB2031:
	.cfi_startproc
	endbr64
	cmpb	$47, %dil
	jg	.L12
	movl	$-2, %eax
	cmpb	$36, %dil
	jle	.L11
	subl	$37, %edi
	cmpb	$10, %dil
	ja	.L14
	leaq	.L15(%rip), %rdx
	movzbl	%dil, %edi
	movslq	(%rdx,%rdi,4), %rax
	addq	%rdx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L15:
	.long	.L19-.L15
	.long	.L14-.L15
	.long	.L14-.L15
	.long	.L17-.L15
	.long	.L14-.L15
	.long	.L19-.L15
	.long	.L16-.L15
	.long	.L14-.L15
	.long	.L16-.L15
	.long	.L14-.L15
	.long	.L19-.L15
	.text
.L16:
	movl	$1, %eax
	ret
.L14:
	movl	$-2, %eax
	ret
.L12:
	xorl	%eax, %eax
	cmpb	$94, %dil
	sete	%al
	leal	-2(%rax,%rax), %eax
	ret
.L17:
	orl	$-1, %eax
	ret
.L19:
	movl	$2, %eax
.L11:
	ret
	.cfi_endproc
.LFE2031:
	.size	_Z14get_precedencec, .-_Z14get_precedencec
	.globl	_Z16infix_to_postfixPcS_
	.type	_Z16infix_to_postfixPcS_, @function
_Z16infix_to_postfixPcS_:
.LFB2032:
	.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
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rsi, %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	call	strlen@PLT
	leal	-1(%rax), %r12d
	movslq	%r12d, %rdi
	call	malloc@PLT
	xorl	%esi, %esi
	movl	%r12d, 4(%rsp)
	movq	%rbp, %r11
	movl	%esi, (%rsp)
	movq	%rax, %r10
	xorl	%r9d, %r9d
	movabsq	$144115188075857249, %rbp
.L22:
	movb	(%r11), %al
	testb	%al, %al
	je	.L45
	cmpb	$32, %al
	je	.L23
	leal	-37(%rax), %edx
	cmpb	$57, %dl
	ja	.L24
	btq	%rdx, %rbp
	jc	.L25
	cmpb	$4, %dl
	je	.L26
	cmpb	$3, %dl
	jne	.L24
	leaq	4(%rsp), %rcx
	movq	%rsp, %rdx
	movl	$40, %esi
	jmp	.L44
.L26:
	movslq	%r9d, %r9
	movq	%rsp, %rsi
	jmp	.L28
.L25:
	movslq	(%rsp), %rdx
	movq	%rsp, %rsi
	movsbl	%al, %r8d
	testl	%edx, %edx
	je	.L33
	movsbl	-1(%r10,%rdx), %edi
	movslq	%r9d, %r9
	call	_Z14get_precedencec
	movl	%r8d, %edi
	movl	%eax, %ecx
	call	_Z14get_precedencec
	movl	%eax, %r12d
.L31:
	cmpl	%eax, %ecx
	jl	.L33
	cmpl	$0, (%rsp)
	je	.L33
	movq	%r10, %rdi
	movl	%r12d, %ecx
	call	_Z3popPcPi
	movb	%al, (%rbx,%r9)
	movslq	(%rsp), %rax
	incq	%r9
	movsbl	-1(%r10,%rax), %edi
	call	_Z14get_precedencec
	jmp	.L31
.L33:
	movq	%rsi, %rdx
	leaq	4(%rsp), %rcx
	movl	%r8d, %esi
.L44:
	movq	%r10, %rdi
	call	_Z4pushPccPiS0_
	jmp	.L23
.L28:
	movslq	(%rsp), %rax
	movq	%r10, %rdi
	cmpb	$40, -1(%r10,%rax)
	je	.L46
	call	_Z3popPcPi
	movb	%al, (%rbx,%r9)
	incq	%r9
	jmp	.L28
.L46:
	call	_Z3popPcPi
	jmp	.L23
.L24:
	movslq	%r9d, %rdx
	incl	%r9d
	movb	%al, (%rbx,%rdx)
.L23:
	incq	%r11
	jmp	.L22
.L45:
	movslq	%r9d, %r9
	movq	%rsp, %rsi
	addq	%rbx, %r9
.L37:
	cmpl	$0, (%rsp)
	jne	.L36
	movb	$0, (%r9)
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L38
	call	__stack_chk_fail@PLT
.L36:
	movq	%r10, %rdi
	incq	%r9
	call	_Z3popPcPi
	movb	%al, -1(%r9)
	jmp	.L37
.L38:
	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
.LFE2032:
	.size	_Z16infix_to_postfixPcS_, .-_Z16infix_to_postfixPcS_
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2058:
	.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
.LFE2058:
	.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:

/* infix to postfix expression conversion code
by Codingstreet.com */

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

int push(char *stack,char val,int *top,int *size);
int pop(char *stack,int *top);
int isstack_empty(int *top);
int isstack_full(int *top,int *size);

int isstack_empty(int *top){
    if((*top)==0) return 1;
    return 0;
}
int isstack_full(int *top,int *size){
    if((*top)==(*size)-1) return 1;
    return 0;
}
int push(char *stack,char val,int *top,int *size){
    if(isstack_full(top,size)){
        return 0;
    }
    stack[(*top)++]=val;
    return 1;
}
int pop(char *stack,int *top){
    if(isstack_empty(top)){
        return -1;
    }
    else return stack[--(*top)];
}
int get_precedence(char c){
	switch(c){
		case '+':
		case '-':
		return 1;
		case '*':
		case '/':
		case '%':
		return 2;
		case '^':
		return 0;
		case '(':
		return -1;
		default :
		return -2;
}
}
void infix_to_postfix(char *instring,char *outstring){
	int i=0,top,size,pred1,pred2,n=0;
	char c,c2;
	int len=strlen(instring);
	if(instring==NULL) return;
	char *stack=(char*)malloc(sizeof(char)*(len-1));
	top=0;size=len-1;
	while(instring[i]!='\0'){
		c=instring[i];
			if(c==' ') {i++;continue; }
			else if(c=='('){
				push(stack,c,&top,&size);
			}
		else if(c=='+' || c=='-' || c=='*' || c=='/' || c=='%'||c=='^'){
			if(isstack_empty(&top)) {
				push(stack,c,&top,&size);
			}
			else {
				pred1=get_precedence(stack[top-1]);
				pred2=get_precedence(c);
				while(pred2<=pred1 && !isstack_empty(&top)){
					c2=pop(stack,&top);
					outstring[n]=c2;
					n++;
					pred2=get_precedence(stack[top-1]);
					pred1=get_precedence(c);
				}
			push(stack,c,&top,&size);
			}
		}
		else if(c==')'){
			while(stack[top-1]!='('){
				c2=pop(stack,&top);
				outstring[n]=c2;
				n++;
			}
			pop(stack,&top);
		}
		else {
			outstring[n]=c;
			n++;
		}
	i++;
	}
	
	while(!isstack_empty(&top)){
		c=pop(stack,&top);
		outstring[n]=c;
		n++;
	}
	
	outstring[n]='\0';
	
}

/*int main(){
	char str[]="((a+t)*((b+(a+c))^(c+d)))";
	char out[100];
	infix_to_postfix(str,out);
	printf("\nInput string :%s \nOutput: %s ",str,out);
	

	return 0;
}*/
	.text
	.file	"infix2postfix.hip"
	.globl	_Z13isstack_emptyPi             # -- Begin function _Z13isstack_emptyPi
	.type	_Z13isstack_emptyPi,@function
_Z13isstack_emptyPi:                    # @_Z13isstack_emptyPi
	.cfi_startproc
# %bb.0:
	xorl	%eax, %eax
	cmpl	$0, (%rdi)
	sete	%al
	retq
.Lfunc_end0:
	.size	_Z13isstack_emptyPi, .Lfunc_end0-_Z13isstack_emptyPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z12isstack_fullPiS_            # -- Begin function _Z12isstack_fullPiS_
	.type	_Z12isstack_fullPiS_,@function
_Z12isstack_fullPiS_:                   # @_Z12isstack_fullPiS_
	.cfi_startproc
# %bb.0:
	movl	(%rsi), %ecx
	decl	%ecx
	xorl	%eax, %eax
	cmpl	%ecx, (%rdi)
	sete	%al
	retq
.Lfunc_end1:
	.size	_Z12isstack_fullPiS_, .Lfunc_end1-_Z12isstack_fullPiS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z4pushPccPiS0_                 # -- Begin function _Z4pushPccPiS0_
	.type	_Z4pushPccPiS0_,@function
_Z4pushPccPiS0_:                        # @_Z4pushPccPiS0_
	.cfi_startproc
# %bb.0:
	movslq	(%rdx), %r8
	movl	(%rcx), %ecx
	decl	%ecx
	xorl	%eax, %eax
	cmpl	%ecx, %r8d
	je	.LBB2_2
# %bb.1:
	leal	1(%r8), %eax
	movl	%eax, (%rdx)
	movb	%sil, (%rdi,%r8)
	movl	$1, %eax
.LBB2_2:
	retq
.Lfunc_end2:
	.size	_Z4pushPccPiS0_, .Lfunc_end2-_Z4pushPccPiS0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z3popPcPi                      # -- Begin function _Z3popPcPi
	.type	_Z3popPcPi,@function
_Z3popPcPi:                             # @_Z3popPcPi
	.cfi_startproc
# %bb.0:
	movslq	(%rsi), %rax
	testq	%rax, %rax
	je	.LBB3_1
# %bb.2:
	leaq	-1(%rax), %rcx
	movl	%ecx, (%rsi)
	movsbl	-1(%rdi,%rax), %eax
	retq
.LBB3_1:
	movl	$-1, %eax
	retq
.Lfunc_end3:
	.size	_Z3popPcPi, .Lfunc_end3-_Z3popPcPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z14get_precedencec             # -- Begin function _Z14get_precedencec
	.type	_Z14get_precedencec,@function
_Z14get_precedencec:                    # @_Z14get_precedencec
	.cfi_startproc
# %bb.0:
	cmpl	$42, %edi
	jle	.LBB4_1
# %bb.4:
	cmpl	$46, %edi
	jg	.LBB4_8
# %bb.5:
	movl	$1, %eax
	cmpl	$43, %edi
	je	.LBB4_13
# %bb.6:
	cmpl	$45, %edi
	jne	.LBB4_7
.LBB4_13:
	retq
.LBB4_1:
	cmpl	$37, %edi
	je	.LBB4_10
# %bb.2:
	cmpl	$40, %edi
	je	.LBB4_12
# %bb.3:
	cmpl	$42, %edi
	je	.LBB4_10
.LBB4_7:
	movl	$-2, %eax
	retq
.LBB4_8:
	cmpl	$94, %edi
	je	.LBB4_11
# %bb.9:
	cmpl	$47, %edi
	jne	.LBB4_7
.LBB4_10:
	movl	$2, %eax
	retq
.LBB4_11:
	xorl	%eax, %eax
	retq
.LBB4_12:
	movl	$-1, %eax
	retq
.Lfunc_end4:
	.size	_Z14get_precedencec, .Lfunc_end4-_Z14get_precedencec
	.cfi_endproc
                                        # -- End function
	.globl	_Z16infix_to_postfixPcS_        # -- Begin function _Z16infix_to_postfixPcS_
	.type	_Z16infix_to_postfixPcS_,@function
_Z16infix_to_postfixPcS_:               # @_Z16infix_to_postfixPcS_
	.cfi_startproc
# %bb.0:
	testq	%rdi, %rdi
	je	.LBB5_11
# %bb.1:
	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	$72, %rsp
	.cfi_def_cfa_offset 128
	.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, %r12
	movq	%rdi, %r15
	callq	strlen
	movq	%rax, %r13
	decl	%eax
	movslq	%eax, %rdi
	callq	malloc
	movq	%rax, %rbx
	addl	$-2, %r13d
	decq	%rax
	movq	%rax, 32(%rsp)                  # 8-byte Spill
	movabsq	$144115188075857249, %rsi       # imm = 0x200000000000561
	xorl	%eax, %eax
	xorl	%edx, %edx
	xorl	%edi, %edi
	movq	%r12, 16(%rsp)                  # 8-byte Spill
	movq	%rbx, 48(%rsp)                  # 8-byte Spill
	movq	%r15, 40(%rsp)                  # 8-byte Spill
	movq	%r13, 56(%rsp)                  # 8-byte Spill
.LBB5_2:                                # %.outer
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB5_3 Depth 2
                                        #     Child Loop BB5_17 Depth 2
                                        #     Child Loop BB5_27 Depth 2
	movl	%eax, %r8d
	movslq	%edi, %rdi
.LBB5_3:                                #   Parent Loop BB5_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	incq	%rdi
	movzbl	-1(%r15,%rdi), %r14d
	cmpl	$32, %r14d
	je	.LBB5_3
# %bb.4:                                #   in Loop: Header=BB5_2 Depth=1
	leal	-37(%r14), %eax
	cmpl	$57, %eax
	ja	.LBB5_5
# %bb.12:                               #   in Loop: Header=BB5_2 Depth=1
	btq	%rax, %rsi
	jae	.LBB5_13
# %bb.21:                               #   in Loop: Header=BB5_2 Depth=1
	testl	%r8d, %r8d
	je	.LBB5_22
# %bb.24:                               #   in Loop: Header=BB5_2 Depth=1
	movq	%rdi, 64(%rsp)                  # 8-byte Spill
	movl	%edx, 12(%rsp)                  # 4-byte Spill
	movslq	%r8d, %r13
	movsbl	-1(%rbx,%r13), %edi
	movq	%r8, %r12
	callq	_Z14get_precedencec
	movl	%eax, 24(%rsp)                  # 4-byte Spill
	movsbl	%r14b, %edi
	callq	_Z14get_precedencec
	cmpl	24(%rsp), %eax                  # 4-byte Folded Reload
	jle	.LBB5_26
# %bb.25:                               #   in Loop: Header=BB5_2 Depth=1
	movl	12(%rsp), %edx                  # 4-byte Reload
	movq	%r12, %r8
	movq	16(%rsp), %r12                  # 8-byte Reload
	jmp	.LBB5_30
.LBB5_13:                               #   in Loop: Header=BB5_2 Depth=1
	cmpq	$3, %rax
	je	.LBB5_19
# %bb.14:                               #   in Loop: Header=BB5_2 Depth=1
	cmpq	$4, %rax
	jne	.LBB5_5
# %bb.15:                               # %.preheader118
                                        #   in Loop: Header=BB5_2 Depth=1
	movslq	%r8d, %rax
	cmpb	$40, -1(%rbx,%rax)
	je	.LBB5_34
# %bb.16:                               # %.lr.ph.preheader
                                        #   in Loop: Header=BB5_2 Depth=1
	movslq	%edx, %rax
	addq	%r12, %rax
.LBB5_17:                               # %.lr.ph
                                        #   Parent Loop BB5_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	testl	%r8d, %r8d
	je	.LBB5_18
# %bb.32:                               #   in Loop: Header=BB5_17 Depth=2
	movslq	%r8d, %r8
	movb	-1(%rbx,%r8), %cl
	decq	%r8
	jmp	.LBB5_33
.LBB5_18:                               #   in Loop: Header=BB5_17 Depth=2
	movb	$-1, %cl
	xorl	%r8d, %r8d
.LBB5_33:                               # %_Z3popPcPi.exit88
                                        #   in Loop: Header=BB5_17 Depth=2
	movb	%cl, (%rax)
	movslq	%r8d, %rcx
	incq	%rax
	incl	%edx
	cmpb	$40, -1(%rbx,%rcx)
	jne	.LBB5_17
.LBB5_34:                               # %._crit_edge
                                        #   in Loop: Header=BB5_2 Depth=1
	subl	$1, %r8d
	movl	$0, %eax
	cmovbl	%eax, %r8d
	movl	%r8d, %eax
	jmp	.LBB5_2
.LBB5_22:                               #   in Loop: Header=BB5_2 Depth=1
	movl	$0, %eax
	testl	%r13d, %r13d
	je	.LBB5_2
# %bb.23:                               #   in Loop: Header=BB5_2 Depth=1
	movb	%r14b, (%rbx)
	movl	$1, %eax
	jmp	.LBB5_2
.LBB5_5:                                #   in Loop: Header=BB5_2 Depth=1
	testl	%r14d, %r14d
	je	.LBB5_6
# %bb.35:                               #   in Loop: Header=BB5_2 Depth=1
	movslq	%edx, %rax
	movb	%r14b, (%r12,%rax)
	incl	%edx
	movl	%r8d, %eax
	jmp	.LBB5_2
.LBB5_26:                               # %_Z3popPcPi.exit.preheader
                                        #   in Loop: Header=BB5_2 Depth=1
	movl	%eax, %ebp
	movslq	12(%rsp), %rbx                  # 4-byte Folded Reload
	movq	%r12, 24(%rsp)                  # 8-byte Spill
	movl	%r12d, %r15d
	decq	%r15
	addq	32(%rsp), %r13                  # 8-byte Folded Reload
	addq	16(%rsp), %rbx                  # 8-byte Folded Reload
	xorl	%r12d, %r12d
.LBB5_27:                               # %_Z3popPcPi.exit
                                        #   Parent Loop BB5_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movb	(%r13), %al
	movb	%al, (%rbx,%r12)
	movsbl	-1(%r13), %edi
	callq	_Z14get_precedencec
	leaq	1(%r12), %rcx
	cmpl	%ebp, %eax
	jg	.LBB5_29
# %bb.28:                               # %_Z3popPcPi.exit
                                        #   in Loop: Header=BB5_27 Depth=2
	decq	%r13
	cmpl	%r12d, %r15d
	movq	%rcx, %r12
	jne	.LBB5_27
.LBB5_29:                               # %.critedge.loopexit
                                        #   in Loop: Header=BB5_2 Depth=1
	movl	12(%rsp), %edx                  # 4-byte Reload
	addl	%ecx, %edx
	movq	24(%rsp), %r8                   # 8-byte Reload
	subl	%ecx, %r8d
	movq	16(%rsp), %r12                  # 8-byte Reload
	movq	48(%rsp), %rbx                  # 8-byte Reload
	movq	40(%rsp), %r15                  # 8-byte Reload
.LBB5_30:                               # %.critedge
                                        #   in Loop: Header=BB5_2 Depth=1
	movq	56(%rsp), %r13                  # 8-byte Reload
	movl	%r13d, %eax
	cmpl	%r13d, %r8d
	movabsq	$144115188075857249, %rsi       # imm = 0x200000000000561
	movq	64(%rsp), %rdi                  # 8-byte Reload
	je	.LBB5_2
# %bb.31:                               #   in Loop: Header=BB5_2 Depth=1
	movslq	%r8d, %rax
	incl	%r8d
	movb	%r14b, (%rbx,%rax)
	movl	%r8d, %eax
	jmp	.LBB5_2
.LBB5_19:                               #   in Loop: Header=BB5_2 Depth=1
	movl	%r13d, %eax
	cmpl	%r13d, %r8d
	je	.LBB5_2
# %bb.20:                               #   in Loop: Header=BB5_2 Depth=1
	movslq	%r8d, %rax
	incl	%r8d
	movb	$40, (%rbx,%rax)
	movl	%r8d, %eax
	jmp	.LBB5_2
.LBB5_6:                                # %.preheader
	testl	%r8d, %r8d
	je	.LBB5_10
# %bb.7:                                # %_Z3popPcPi.exit95.preheader
	movslq	%edx, %rax
	movslq	%r8d, %rcx
	decq	%rcx
	addq	%r12, %rax
	addl	%edx, %r8d
	movq	%rcx, %rdx
.LBB5_8:                                # %_Z3popPcPi.exit95
                                        # =>This Inner Loop Header: Depth=1
	movb	(%rbx,%rcx), %sil
	movb	%sil, (%rax)
	decq	%rdx
	incq	%rax
	testl	%ecx, %ecx
	movq	%rdx, %rcx
	jne	.LBB5_8
# %bb.9:
	movl	%r8d, %edx
.LBB5_10:                               # %._crit_edge145
	movslq	%edx, %rax
	movb	$0, (%r12,%rax)
	addq	$72, %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
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
	.cfi_restore %rbp
.LBB5_11:
	retq
.Lfunc_end5:
	.size	_Z16infix_to_postfixPcS_, .Lfunc_end5-_Z16infix_to_postfixPcS_
	.cfi_endproc
                                        # -- End function
	.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 __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
