The fire control system,as the center and the brain of various weapons,controls the operation of the weapon system. Its effectiveness is directly related to the success of the fire and even the comprehensive effectiveness of the weapon system. Data- calculation programs transform a variety of input conditions into the firing data after several iterations according to the trajectory model. Because of its complexity,current software testing technology can verify only on several key points,which is difficult to cover all branches and paths of the programs and is insufficient. To solve this problem,an automatic generation of testing use case based on symbolic execution is proposed. The constraints of the solution trajectory equations and the program control branches are used to obtain all possible execution paths within the framework of symbol execution. This method is sure of the adequate testing.%火控系统作为各种武器装备的中枢和大脑,控制着武器系统的运转,其有效性直接关系着射击的成败甚至武器系统的综合效能.诸元解算程序是将各种输入条件依据弹道模型经过多次迭代转换为射击诸元,由于其复杂性,当前软件测试用例只是在几个关键点上进行校验,很难覆盖程序所有分支和路径,存在着测试不充分.针对这个问题,提出了一种基于符号执行的用例自动生成技术,结合解弹道方程组约束条件和程序分支控制变量使用符号执行框架内能够得到覆盖所有可能的执行路径,从而保证测试的充分性.
展开▼