Replaced asserts by BMC_CHECK macro

The BMC_CHECK has two args: the predicate and the number of the line in the original code

Signed-off-by: Herbert <herberthb12@gmail.com>