Module ub_checks

Provides the assert_unsafe_precondition macro as well as some utility functions that cover common preconditions.