如何在一个非常简单的 Fortran-77 程序中计算突变体的数量
下周我将在课堂上做一个关于突变测试的演讲。教授给我论文对足够突变体的实验测定运算符,由 A. Jefferson Offutt 等人编写。从论文中,我可以得出一个结论:程序生成的突变体数量大致与数据引用数量乘以数据对象数量的乘积成正比。这是一个简单的 Fortran-77 程序:
FUNCTION Min(I, J)
Min = I
IF (J .LT. I) Min = J
RETURN
作者,即 A. Jefferson Offutt,说上述程序总共有 44 个变体。我只是不知道如何获得44个突变体。有谁知道如何计算数据引用的数量和数据对象的数量并获得44个突变体?
任何想法将不胜感激。
现在,我相信44个突变体不仅仅是通过数据引用数量和数据对象数量的倍数获得的。其他突变算子也对上述 Fortran-77 程序的突变总数有所贡献。我编辑这个问题是为了防止其他人继续回答它。我不知道如何关闭问题或将其标记为已回答
Next week I will make a presentation about mutation test in my class. The professor give me the paper An Experimental Determination of Sufficient Mutant Operators, written by A. Jefferson Offutt et.al. From the paper, I can get a conclusion that the number of mutants generated for a program is roughly proportional to the product of the number of data references times the number of data objects. Here is a simple Fortran-77 program:
FUNCTION Min(I, J)
Min = I
IF (J .LT. I) Min = J
RETURN
The author, i.e. A. Jefferson Offutt, say there are total 44 mutants for the above program. I just don't how to get the 44 mutants. Does anyone know how to calculate the number of data references and the number of the data objects and get the 44 mutants?
Any ideas will be appreciated.
Now, I believe the 44 mutants is not gained just by multiple the number of data references and the number of data objects. Other mutant operators also contribute to the total number of mutants of the above Fortran-77 program. I edit this question in order to prevent other people to keeping answering it. I don't know how to close a question or mark it answered
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论