Automated String Constraints Solving for Programs Containing String Manipulation Functions

来源 :计算机科学技术学报(英文版) | 被引量 : 0次 | 上传用户:tyxtry88
下载到本地 , 更方便阅读
声明 : 本文档内容版权归属内容提供方 , 如果您对本文有版权争议 , 可与客服联系进行内容授权或下架
论文部分内容阅读
The ability to solve various constraints is a principal factor of automatic constraint solvers. Most object-oriented languages treat a character string as a primitive data type which is manipulated by string library functions. Most constraint solvers have limitations on their input constraints, such as strong restrictions on the expressiveness of constraints or lack of the ability to solve hybrid constraints. These limitations hinder applying automated constraint solvers on program analysis techniques for programs containing strings and string manipulation functions. We propose an approach to automatically solve program constraints involving strings and string manipulation functions. Based on the character array model, we design a constraint language which contains primitive operations to precisely describe the constraints of commonly used string manipulation functions. The translated string constraints together with numeric constraints are then solved by a two-phase test generation procedure: firstly, a partial solution is obtained to satisfy the arithmetic constraints of the position variables, and the solution is utilized to simplify the string constraints into pure character array constraints; secondly, the pure array constraints are solved by an off-the-shelf array-specific theory based constraint solver. We integrate the approach into an automated testing tool to support the generation of string test cases, and then perform experiments. The results of the experiments prove that the integration of the proposed approach promotes the testing coverage of the existing testing tool, and the integrated tool has an advantage of handling specific string manipulation functions compared with an existing string solver.
其他文献
年初以来,为了能够让政府机关、事业单位的工作人员更好地了解办理公务员贷款所需的相关手续和条件,切实满足不同客户群体的资金消费需求,永吉联社营业部通过营业窗口、条幅和分发宣传单等宣传方式,加大宣传力度,同时还为有贷款资金需求的公务员们提供热情、周到的上门预约服务工作,由于该贷款手续简单、便捷、时间短、发放快,所以赢得了不少急需资金的公务员们的“青睐”。截至2011年4月26日,永吉联社营业部共发放贷
目的 探讨鼻窦曲霉菌病的MRI表现特征。方法 回顾分析 2 5例手术和病理证实的鼻窦曲霉菌病的MRI表现。结果  (1)经手术和病理证实的鼻窦曲霉菌病 2 5例 ,其中上颌窦 2 0例
重症急性胰腺炎(severe acute pancreatitis,SAP)是一种严重的全身反应性疾病,起病急,病情凶险,死亡率高达22.7%,属临床难治性疾病[1],以急性上腹疼痛、腹胀,伴恶心、呕吐,血
18岁以下的牙齿外伤患者约有1/4发生前牙冠折.我院采用牙釉质-牙本质粘接剂和复合树脂对自体冠折断片复位再接,显示出较多的优点.随访3年,取得满意效果.现报告如下.
经鼻或口鼻面罩无创正压通气(NIPPV)治疗是近年来治疗呼吸系统疾病的重要进展[1]。我院应用双水平无创呼吸机经面罩无创正压通气救治慢性阻塞性肺病(COPD)合并呼吸衰竭患者共
作为一款最新专利产品,来自河北的富民家用快速磨刀器,以它科技创新、功能独特、设计新颖、产品种奇实用,一经展出就成为整个创博会的新亮点,格外引人注目,不但受到与会投资者的青睐,而且被当地电视台从上千个项目中精选而出进行了报道。富民家用快速磨刀器是唯一荣获此项殊荣的新奇特小产品。   富民家用快速磨刀器为何成为众多媒体和广大投资者公认的小本投资的首选。还把产品出口到了香港、俄罗斯等地,总经理刘福民又有
期刊