On-the-fly model checking