At autotest_tb.cpp:218, this function with return type unsigned does not have a return value. This is undefined behavior of C++. When using g++ 10.2 and -O1, it will be optimized to an infinite loop and trigger an assertion later.
Add "return r;" to the end of the function can solve the problem.
At autotest_tb.cpp:218, this function with return type unsigned does not have a return value. This is undefined behavior of C++. When using g++ 10.2 and -O1, it will be optimized to an infinite loop and trigger an assertion later.
Add "return r;" to the end of the function can solve the problem.