The assert
macro in C/C++ is not supported in Vitis HLS.
Usage of assertions can have unintended consequences that are not obvious to the user, causing bad logic to be created. They can also prevent compiler optimizations depending on the complexity of the code.