发明名称 Control flow error localization
摘要 Localizing errors by: (i) running a testcase on a hardware processor and saving results; (ii) running the testcase on a software model of the processor and saving results; (iii) recording control flow information during the software run; (iv) determining a set of miscompare data storage locations by comparing the results from the hardware run with those from the software run; (v) based on the set of miscompare data storage locations and/or the control flow information, generating and running a modified version of the testcase that takes a different execution path when run on the software model than did the original testcase when run on the software model; and (vii) comparing the results from the hardware run and the results obtained from the modified software run to provide an indication of similarity between execution paths taken in these respective runs.
申请公布号 US9251045(B2) 申请公布日期 2016.02.02
申请号 US201414190620 申请日期 2014.02.26
申请人 International Business Machines Corporation 发明人 Friedler Ophir;Kadry Wisam;Nahir Amir;Sokhin Vitali
分类号 G06F11/36 主分类号 G06F11/36
代理机构 代理人 Darrow Stephen
主权项 1. A method for helping to localize an error produced when a first testcase is executed on a hardware set, causing the hardware set to write to a set of data storage locations, the method comprising: performing a first run of the first testcase on the hardware set along a first execution path to yield first testcase-run results in the form of a first set of values respectively stored in the set of data storage locations; performing a second run of the first testcase on a software model version of the hardware set along a second execution path to yield second testcase-run results in the form of a second set of values respectively stored in the set of data storage locations; determining a set of miscompare data storage location(s), including at least a first miscompare data storage location, by comparing the first set of values and the second set of values; generating a first modified version of the first testcase that, when executed on the software model version of the hardware set, will produce a third execution path different from the second execution path, the modified version of the first testcase based on: (i) the set of miscompare data storage location(s), and/or (ii) control flow information recorded during the second run of the first testcase; performing a first run of the first modified version of the first testcase on the software model version of the hardware set along the third execution path to yield third testcase-run results in the form of a third set of values respectively stored in the set of data storage locations; comparing the first set of values and the third set of values; and based on the similarity between the first set of values and the third set of values, providing an indication of similarity between the first execution path and the third execution path.
地址 Armonk NY US
您可能感兴趣的专利