generates and executes critical example