bool RandomTransition::reversible_race(const Transition* other) const
{
- switch (type_) {
- case Type::RANDOM:
- return true; // Random is always enabled
- default:
- xbt_die("Unexpected transition type %s", to_c_str(type_));
- }
+ xbt_assert(type_ == Type::RANDOM, "Unexpected transition type %s", to_c_str(type_));
+
+ return true; // Random is always enabled
}
} // namespace simgrid::mc