Check if given iteration is one of intervals

Use case: You run infinite loop and want to check if you should react for given iteration.

This feature is valid only in deterministic mode.