PSharp
PSharp copied to clipboard
Internal asserts in the runtime
It should be possible to assert things inside the P# runtime or inside a SchedulingStrategy. If these fail, this is not a bug in the program under test, but a bug in P#.
You could annotate such an Assert method with [Conditional("DEBUG")]
to make sure it is removed in Release mode. And you could even leave them in (by defining DEBUG) when releasing "experimental builds" of P#.
We now have this is in the scheduling strategies (I think) but we should have asserts in the runtime too.