On 5/12/11 4:01 AM, haihao shen wrote:
It's an example and might not reflect the current configuration in Csmith.
However, in the latest generated sample configure file by csmith, statement_assign_prob=100, statement_block_prob=0. Does it mean only -100% chance to get statement_block_prob?
No. The probabilities are not sorted in the output (Maybe we should do that). For example, Here is a sample output:
It means that we have (15-0)% = 15% change to generate if-else statements, (35-15)% = 20% chance to generate return statements, etc.
No. They are different. The latter means that the individual probabilities are evenly distributed. For example,
means that we have 25% chance to generate "+", 25% chance to generate "-", etc.