[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [csmith-dev] Randomly generated program goes in an infinite loop
sameeran joshi <gsocsameeran@gmail.com> writes:
> I just created a random program using randprog and compiled it at various
> levels ( GCC version 7.2.0 ) the program goes in an infinite loop.And this
> happens with many test cases,why does this happen?
The programs created by randprog (and Csmith) are not guaranteed to terminate.
When you use these programs to test a compiler, you need to put a timeout on
their execution.
Happy hacking ---
Eric.
--
-------------------------------------------------------------------------------
Eric Eide <eeide@cs.utah.edu> . University of Utah School of Computing
http://www.cs.utah.edu/~eeide/ . +1 (801) 585-5512 voice, +1 (801) 581-5843 FAX