int32 FUNC_EXPONENT(qbs*_FUNC_EXPONENT_STRING_EXP,void*_FUNC_EXPONENT_UDT_STATE){
qbs *tqbs;
ptrszint tmp_long;
int32 tmp_fileno;
uint32 qbs_tmp_base=qbs_tmp_list_nexti;
uint8 *tmp_mem_static_pointer=mem_static_pointer;
uint32 tmp_cmem_sp=cmem_sp;
#include "data188.txt"
mem_lock *sf_mem_lock;
new_mem_lock();
sf_mem_lock=mem_lock_tmp;
sf_mem_lock->type=3;
if (is_error_pending()) goto exit_subfunc;
S_35415:;
if (( 0ll )||is_error_pending()){
if(qbevent){evnt(24222,633,"const_eval.bas");if(r)goto S_35415;}
do{
sub__echo(qbs_new_txt_len("Exponent",8));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24222,633,"const_eval.bas");}while(r);
}
S_35418:;
if ((qbs_cleanup(qbs_tmp_base,-(FUNC_NUMERIC(_FUNC_EXPONENT_STRING_EXP,(void*)( ((char*)(_FUNC_EXPONENT_UDT_STATE)) + (0) ))== 0 )))||is_error_pending()){
if(qbevent){evnt(24222,634,"const_eval.bas");if(r)goto S_35418;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(24222,634,"const_eval.bas");}while(r);
}
S_35421:;
if (( 0ll )||is_error_pending()){
if(qbevent){evnt(24222,635,"const_eval.bas");if(r)goto S_35421;}
do{
sub__echo(qbs_new_txt_len("Check exponent",14));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24222,635,"const_eval.bas");}while(r);
}
do{
if(!qbevent)break;evnt(24222,637,"const_eval.bas");}while(r);
do{
memcpy((((char*)_FUNC_EXPONENT_UDT_NUM)+(0)+ 0),(((char*)_FUNC_EXPONENT_UDT_STATE)+(8)+ 0), 32);
memcpy((((char*)_FUNC_EXPONENT_UDT_NUM)+(0)+ 32),(((char*)_FUNC_EXPONENT_UDT_STATE)+(8)+ 32), 8);
memcpy((((char*)_FUNC_EXPONENT_UDT_NUM)+(0)+ 40),(((char*)_FUNC_EXPONENT_UDT_STATE)+(8)+ 40), 8);
qbs_set(*(qbs**)(((char*)_FUNC_EXPONENT_UDT_NUM)+(0)+ 48), *(qbs**)(((char*)_FUNC_EXPONENT_UDT_STATE)+(8)+ 48));
memcpy((((char*)_FUNC_EXPONENT_UDT_NUM)+(0)+ 56),(((char*)_FUNC_EXPONENT_UDT_STATE)+(8)+ 56), 4);
if(!qbevent)break;evnt(24222,638,"const_eval.bas");}while(r);
S_35426:;
do{
if(qbevent){evnt(24222,640,"const_eval.bas");if(r)goto S_35426;}
do{
qbs_set(_FUNC_EXPONENT_STRING_ELE,FUNC_PEEKNEXTELEMENT(_FUNC_EXPONENT_STRING_EXP,(int32*)(void*)( ((char*)(_FUNC_EXPONENT_UDT_STATE)) + (0) ),(int32*)(void*)( ((char*)(_FUNC_EXPONENT_UDT_STATE)) + (4) )));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24222,641,"const_eval.bas");}while(r);
S_35428:;
if (( 0ll )||is_error_pending()){
if(qbevent){evnt(24222,642,"const_eval.bas");if(r)goto S_35428;}
do{
sub__echo(qbs_add(qbs_new_txt_len("Exponent ele! ",14),_FUNC_EXPONENT_STRING_ELE));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24222,642,"const_eval.bas");}while(r);
}
S_35431:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_FUNC_EXPONENT_STRING_ELE,qbs_new_txt_len("^",1))))||is_error_pending()){
if(qbevent){evnt(24222,643,"const_eval.bas");if(r)goto S_35431;}
do{
qbs_set(_FUNC_EXPONENT_STRING_ELE,FUNC_GETNEXTELEMENT(_FUNC_EXPONENT_STRING_EXP,(int32*)(void*)( ((char*)(_FUNC_EXPONENT_UDT_STATE)) + (0) ),(int32*)(void*)( ((char*)(_FUNC_EXPONENT_UDT_STATE)) + (4) )));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24222,644,"const_eval.bas");}while(r);
S_35433:;
if ((qbs_cleanup(qbs_tmp_base,-(FUNC_UNARY(_FUNC_EXPONENT_STRING_EXP,(void*)( ((char*)(_FUNC_EXPONENT_UDT_STATE)) + (0) ))== 0 )))||is_error_pending()){
if(qbevent){evnt(24222,650,"const_eval.bas");if(r)goto S_35433;}
do{
SUB_FIXUPERRORMESSAGE((void*)( ((char*)(_FUNC_EXPONENT_UDT_STATE)) + (0) ),qbs_new_txt_len("^",1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24222,650,"const_eval.bas");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(24222,650,"const_eval.bas");}while(r);
}
S_35437:;
if (((*(int32*)(((char*)_FUNC_EXPONENT_UDT_NUM)+(56))&*__LONG_ISFLOAT)|(*(int32*)(((char*)_FUNC_EXPONENT_UDT_STATE)+(64))&*__LONG_ISFLOAT))||is_error_pending()){
if(qbevent){evnt(24222,652,"const_eval.bas");if(r)goto S_35437;}
do{
SUB_PARSENUMSETF((void*)( ((char*)(_FUNC_EXPONENT_UDT_NUM)) + (0) ),&(pass4175=*__LONG_FLOATTYPE-*__LONG_ISPOINTER),&(pass4176=pow2(*(long double*)(((char*)_FUNC_EXPONENT_UDT_NUM)+(0)),*(long double*)(((char*)_FUNC_EXPONENT_UDT_STATE)+(8)))));
if(!qbevent)break;evnt(24222,653,"const_eval.bas");}while(r);
S_35439:;
}else{
if ((*(int32*)(((char*)_FUNC_EXPONENT_UDT_NUM)+(56))&*__LONG_ISUNSIGNED)|(*(int32*)(((char*)_FUNC_EXPONENT_UDT_STATE)+(64))&*__LONG_ISUNSIGNED)){
if(qbevent){evnt(24222,654,"const_eval.bas");if(r)goto S_35439;}
do{
SUB_PARSENUMSETUI((void*)( ((char*)(_FUNC_EXPONENT_UDT_NUM)) + (0) ),&(pass4177=*__LONG_UINTEGER64TYPE-*__LONG_ISPOINTER),&(pass4178=qbr(pow2(*(uint64*)(((char*)_FUNC_EXPONENT_UDT_NUM)+(40)),*(uint64*)(((char*)_FUNC_EXPONENT_UDT_STATE)+(48))))));
if(!qbevent)break;evnt(24222,655,"const_eval.bas");}while(r);
}else{
do{
SUB_PARSENUMSETI((void*)( ((char*)(_FUNC_EXPONENT_UDT_NUM)) + (0) ),&(pass4179=*__LONG_INTEGER64TYPE-*__LONG_ISPOINTER),&(pass4180=qbr(pow2(*(int64*)(((char*)_FUNC_EXPONENT_UDT_NUM)+(32)),*(int64*)(((char*)_FUNC_EXPONENT_UDT_STATE)+(40))))));
if(!qbevent)break;evnt(24222,657,"const_eval.bas");}while(r);
}
}
S_35444:;
}else{
if (qbs_cleanup(qbs_tmp_base,qbs_equal(_FUNC_EXPONENT_STRING_ELE,qbs_new_txt_len("ROOT",4)))){
if(qbevent){evnt(24222,659,"const_eval.bas");if(r)goto S_35444;}
do{
qbs_set(_FUNC_EXPONENT_STRING_ELE,FUNC_GETNEXTELEMENT(_FUNC_EXPONENT_STRING_EXP,(int32*)(void*)( ((char*)(_FUNC_EXPONENT_UDT_STATE)) + (0) ),(int32*)(void*)( ((char*)(_FUNC_EXPONENT_UDT_STATE)) + (4) )));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24222,660,"const_eval.bas");}while(r);
S_35446:;
if ((qbs_cleanup(qbs_tmp_base,-(FUNC_UNARY(_FUNC_EXPONENT_STRING_EXP,(void*)( ((char*)(_FUNC_EXPONENT_UDT_STATE)) + (0) ))== 0 )))||is_error_pending()){
if(qbevent){evnt(24222,666,"const_eval.bas");if(r)goto S_35446;}
do{
SUB_FIXUPERRORMESSAGE((void*)( ((char*)(_FUNC_EXPONENT_UDT_STATE)) + (0) ),qbs_new_txt_len("ROOT",4));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24222,666,"const_eval.bas");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(24222,666,"const_eval.bas");}while(r);
}
S_35450:;
if (((-(*(long double*)(((char*)_FUNC_EXPONENT_UDT_NUM)+(0))< 0 ))&(-(*(long double*)(((char*)_FUNC_EXPONENT_UDT_STATE)+(8))>= 1 )))||is_error_pending()){
if(qbevent){evnt(24222,668,"const_eval.bas");if(r)goto S_35450;}
do{
*_FUNC_EXPONENT_LONG_SIG= -1 ;
if(!qbevent)break;evnt(24222,668,"const_eval.bas");}while(r);
do{
*(long double*)(((char*)_FUNC_EXPONENT_UDT_NUM)+(0))=-(*(long double*)(((char*)_FUNC_EXPONENT_UDT_NUM)+(0)));
if(!qbevent)break;evnt(24222,668,"const_eval.bas");}while(r);
}else{
do{
*_FUNC_EXPONENT_LONG_SIG= 1 ;
if(!qbevent)break;evnt(24222,668,"const_eval.bas");}while(r);
}
do{
*_FUNC_EXPONENT_FLOAT_EXPON=( 1E+0L / *(long double*)(((char*)_FUNC_EXPONENT_UDT_STATE)+(8)));
if(!qbevent)break;evnt(24222,669,"const_eval.bas");}while(r);
S_35457:;
if (((-(*_FUNC_EXPONENT_FLOAT_EXPON!=std::floor(*_FUNC_EXPONENT_FLOAT_EXPON)))&(-(*(long double*)(((char*)_FUNC_EXPONENT_UDT_STATE)+(8))< 1 )))||is_error_pending()){
if(qbevent){evnt(24222,670,"const_eval.bas");if(r)goto S_35457;}
do{
*_FUNC_EXPONENT_LONG_SIG=func_sgn((long double)(*(long double*)(((char*)_FUNC_EXPONENT_UDT_NUM)+(0))));
if(!qbevent)break;evnt(24222,670,"const_eval.bas");}while(r);
do{
*(long double*)(((char*)_FUNC_EXPONENT_UDT_NUM)+(0))=func_abs((long double)(*(long double*)(((char*)_FUNC_EXPONENT_UDT_NUM)+(0))));
if(!qbevent)break;evnt(24222,670,"const_eval.bas");}while(r);
}
do{
SUB_PARSENUMSETF((void*)( ((char*)(_FUNC_EXPONENT_UDT_NUM)) + (0) ),&(pass4181=*__LONG_FLOATTYPE-*__LONG_ISPOINTER),&(pass4182=*_FUNC_EXPONENT_LONG_SIG*(pow2(*(long double*)(((char*)_FUNC_EXPONENT_UDT_NUM)+(0)),*_FUNC_EXPONENT_FLOAT_EXPON))));
if(!qbevent)break;evnt(24222,672,"const_eval.bas");}while(r);
}else{
S_35463:;
if (( 0ll )||is_error_pending()){
if(qbevent){evnt(24222,674,"const_eval.bas");if(r)goto S_35463;}
do{
sub__echo(qbs_new_txt_len("Exponent done!",14));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24222,674,"const_eval.bas");}while(r);
}
do{
memcpy((((char*)_FUNC_EXPONENT_UDT_STATE)+(8)+ 0),(((char*)_FUNC_EXPONENT_UDT_NUM)+(0)+ 0), 32);
memcpy((((char*)_FUNC_EXPONENT_UDT_STATE)+(8)+ 32),(((char*)_FUNC_EXPONENT_UDT_NUM)+(0)+ 32), 8);
memcpy((((char*)_FUNC_EXPONENT_UDT_STATE)+(8)+ 40),(((char*)_FUNC_EXPONENT_UDT_NUM)+(0)+ 40), 8);
qbs_set(*(qbs**)(((char*)_FUNC_EXPONENT_UDT_STATE)+(8)+ 48), *(qbs**)(((char*)_FUNC_EXPONENT_UDT_NUM)+(0)+ 48));
memcpy((((char*)_FUNC_EXPONENT_UDT_STATE)+(8)+ 56),(((char*)_FUNC_EXPONENT_UDT_NUM)+(0)+ 56), 4);
if(!qbevent)break;evnt(24222,675,"const_eval.bas");}while(r);
do{
*_FUNC_EXPONENT_LONG_EXPONENT= -1 ;
if(!qbevent)break;evnt(24222,676,"const_eval.bas");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(24222,677,"const_eval.bas");}while(r);
}
}
dl_continue_4174:;
}while(1);
dl_exit_4174:;
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free188.txt"
if ((tmp_mem_static_pointer>=mem_static)&&(tmp_mem_static_pointer<=mem_static_limit)) mem_static_pointer=tmp_mem_static_pointer; else mem_static_pointer=mem_static;
cmem_sp=tmp_cmem_sp;
return *_FUNC_EXPONENT_LONG_EXPONENT;
}
