摘要: 1. 首先利用ls命令,找到Ubuntu安装在哪个磁盘分区; 比如输入ls后我的机器列出的磁盘分区信息如下: (hd0),(hd1),(hd1,gpt3),(hd1,gpt2),(hd1,gpt1) 查找包含grub.cfg文件的分区 2. 找到Linux的/boot分区,以及/根分区所在的磁盘位置 阅读全文
posted @ 2019-01-18 18:01 zztian 阅读(49487) 评论(0) 推荐(1) 编辑
摘要: 最近在使用CBMC来分析一系列的C文件,在使用过程中碰到很多微妙的问题,参数选取的好坏直接影响了最终分析结果的完整性和准确性。下面讲解一下个人的使用经验,仅供参考。我们先考虑单文件的情况下面做的所有实验是针对我自己编写的一个简单的充满Bug的C程序来进行的。该文件内容如下:#include<string.h>intsingleFunc(int j){inti;inta[5]={1,2,3,4,5};for(i=0;i<j;i++){a[i]=0; //Upper Bound overflow}}voidtwoSeparate(int j,int k){shorti=-3276 阅读全文
posted @ 2012-03-15 09:29 zztian 阅读(1844) 评论(0) 推荐(0) 编辑
摘要: http://www.cppblog.com/tx7do/archive/2006/07/20/10268.html没c++版帐号,转载不了,贴上链接吧 阅读全文
posted @ 2012-03-13 20:34 zztian 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Sireum/Kiasan是一个类似于JPF的软件检测工具,可以进行基于合同的自动检测和测试用例的生成。Sireum/Kiasan for Java is aJMLcontract-based automatic verification and test case generation tool-set for Java program units. In contrast to regular unit testing methods, Kiasan does not need input parameters for checking units. Without assertions 阅读全文
posted @ 2012-02-17 15:53 zztian 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 本章导读上一章介绍的Ant,主要用来构建、包装和发布Java程序,而Java程序的测试则由另外一个工具来完成,那就是JUnit。本章首先对JUnit进行介绍,阐述为什么要使用JUnit,然后介绍JUnit的下载和安装及使用方法,最后介绍JUnit的新特性。8.1 JUnit介绍JUnit是一个开源的Java单元测试框架,由 Erich Gamma 和 Kent Beck 开发完成。8.1.1 JUnit简介JUnit主要用来帮助开发人员进行Java的单元测试,其设计非常小巧,但功能却非常强大。下面是JUnit一些特性的总结:— 提供的API可以让开发人员写出测试结果明确的可重用单元测试用例。— 阅读全文
posted @ 2012-02-16 20:20 zztian 阅读(883) 评论(0) 推荐(0) 编辑
摘要: These artifacts (Array-Partition, Binary-Search-Tree, Doubly-Linked-List, Sorting, Vector, Binary-Heap, Disjoint-Set, Red-Black-Tree, and Stack) are Java examples targeted to evaluation of Java symbolic execution and test case generation tools such as Kiasan, JPF, and Jcute. Each example is typicall 阅读全文
posted @ 2012-02-14 11:33 zztian 阅读(264) 评论(0) 推荐(0) 编辑
摘要: XML-security is a component library implementing XML signature and encryption standards, supplied by the XML subproject of the open source Apache project. It is available athttp://xml.apache.org/security. It currently provides a mature implementation of Digital Signatures for XML, with implementatio 阅读全文
posted @ 2012-02-13 22:11 zztian 阅读(142) 评论(0) 推荐(0) 编辑
摘要: The Java clusters (Cruise Control, Elevator and OrdSet) presented here have been used in an empirical study addressing the impact of using state machines for testing class clusters that exhibit a state-dependent behavior in testing cost effectiveness when compared with structural testing.(就是这些数据集被用来 阅读全文
posted @ 2012-02-13 21:55 zztian 阅读(137) 评论(0) 推荐(0) 编辑
摘要: The concurrency testing subjects are a collection of Java programs that exhibit the characteristics of multithreaded activities requiring arbitration. The subjects are useful in studying both the behavior of concurrent program designs and also for model checking analysis. These subjects were collect 阅读全文
posted @ 2012-02-13 21:23 zztian 阅读(194) 评论(0) 推荐(0) 编辑
摘要: JPF是什么首先并不存在单一的完整的JPF,它由多个可配置的不同组件组成,是一个可扩展的框架。Jpf-core是所有其他组件所共同依赖的。JPF的特征l Explict State model checking是JPF的基本运行模式。也就是说JPF会跟踪局部变量、堆栈对象和线程状态的具体值。l Symbolic Execution意味着JPF可以使用符号值来执行程序,当然它也能混合具体及符号执行。l State Matching是避免不必要工作的关键机制。它会检查每一个新产生的状态之前是否碰到过,如果是就没必要继续沿着当前的路径执行了。同时它能回溯到最近的未被搜索的不确定性选择。l Backt 阅读全文
posted @ 2011-12-23 17:29 zztian 阅读(891) 评论(0) 推荐(0) 编辑