Add an automatic -print if no side-effect-producing primitives are used.