Did you know ... Search Documentation:
Predicate side_effect/1
 side_effect(?PI) is nondet[private]
True if the built-in predicate PI has side effects. A recursive call that follows such a goal is not a pure loop: input goals make progress by consuming input and tabling a predicate that performs output or modifies the database changes its meaning. Goals that only inspect a stream, such as peek_char/2, are not included.