共查询到17条相似文献,搜索用时 79 毫秒
1.
2.
把源程序转换成流程图是软件工程中逆向工程研究的内容之一。本文提出了一种把源程序转换成结构化的流程图PAD的实现方法。 相似文献
3.
4.
程序流程图在整个软件工程的生命周期中发挥着非常重要的作用。在软件设计中,设计人员通常需要先根据算法从结构上画出程序执行流程图,然后再依据流程图写出相应的源程序代码;在分析和维护软件时,如果能先将源程序代码逆向转换成流程图,则可以有效地帮助分析程序结构。显然,若能让计算机自动地实现流程图与源程序代码之间的相互转换,将大量节省软件开发的人力资源和时间耗费。讨论了如何利用基于边的图文法EGG来自动地实现这种转换,并用具体例子展示了应用EGG图文法的归约和推导操作分别实现流程图的语法分析和流程图的逆向生成,前者可以完成从流程图自动生成源程序代码,而后者则可以从源程序代码自动生成流程图。 相似文献
5.
6.
一种源程序到控制流图的自动生成方法 总被引:5,自引:0,他引:5
单永明 《小型微型计算机系统》1996,17(10):45-49
将源程序转换为控制流图是软件工程领域中逆向工程的研究内容之一。本文给出了一种由源程序生成其对应的控制流图的方法和实现技术。该方法和技术也可应用于程序分析及软件纵等方面。 相似文献
7.
8.
9.
软件测试是当前软件生成重要的研究课题。文中从源程序开始,引入基本块的方法将源程序转换为相应的控制流程图。并采用图形的方法将路径构造相应的自动机,通过对自动机中回边的处理,生成简化的并与之等价的自动机。经过若干变换后,可在自动机上直观地求出路径覆盖的条数和相应的信息。此方法实现路径覆盖的目标,简化路径覆盖生成过程,步骤直观,且减少路径生成数。 相似文献
10.
本文是“程序流程图的自动生成”一文的续篇;是在高级语言源程序已变换成流程图的前提下,讨论对框图进行结构优化并将优化过的框图变换成源程序的过程。 相似文献
11.
12.
13.
14.
本文首先介绍了行差列差投影变换及其反变换,然后与Hough变换和Radon变换作对比,分析了它们各自的优缺点,并得出了在直线特征识别中行差列差投影变换优于Hough变换和Radon变换的结论,最后给出了用行差投影变换算法识别直线特征的一般流程。 相似文献
15.
Jean H. Gallier 《Theoretical computer science》1981,13(2):193-223
In this paper, we study some aspects of the semantics of nondeterministic flowchart programs with recursive procedures. In the first part of this work we provide the operational semantics of programs using the concept of an execution tree. We propose a new definition of the semantics of a non-deterministic recursive program as a mapping from the input domain to the set of execution trees determined by the program. Using this new concept, we prove that every nondeterministic flowchart program with recursive procedures can be unfolded into a semantically equivalent infinite pure flowchart (without procedures). This result is applied in the second part of this work to prove the soundness of an inductive assertion method which is also complete with a finite number of assertions (contrary to De Bakker and Meertens's method [11]). 相似文献
16.
There are a number of reasons why one might wish to transform the source code of an operational program:
- 1 To make the program conform to a standard layout.
- 2 To make the program conform to syntax and semantics standards.
- 3 To improve the performance of the program.
- 1 The benefit to be realized from transformation.
- 2 The cost of transformation.
- 3 The time involved in transformation.
- 4 The risk associated with transformation.
17.
四辊液压轧机轧辊偏摆导致辊缝变化将严重影响轧制成品厚度的精度。介绍了一种利用四辊液压轧机位置闭环的快速响应系统。采用PLC实现在轧机辊缝零位调整时,对偏心进行记忆,而当投入轧制时则可实现偏心补偿的方法。分析了补偿原理及实践方法,给出了程序流程图。该系统对设计新型轧机或改造旧轧机都具有现实意义。 相似文献