# SATHomework **Repository Path**: Foxssss/SATHomework ## Basic Information - **Project Name**: SATHomework - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-12-29 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SATHomework #### 介绍 软件分析测试课程 工具使用文档 #### 使用说明 工具地址:[https://gitee.com/Foxssss/SATHomework](https://gitee.com/Foxssss/SATHomework) 使用方式: 1. 配置z3求解器,在[https://github.com/Z3Prover/z3](https://github.com/Z3Prover/z3)上下载并构建和配置好z3的运行环境。 2. 将需要分析的代码放到src/examples文件夹下,运行工具,在控制台输入要分析的Java方法所在的类名和方法名,即可进行分析。 3. 分析结束后控制台将输出覆盖度为0的基本块,与控制流图对照即可得知冗余代码的位置。 4. Png格式控制流图生成方法:在out/examples/类名目录下运行命令dot –Kdot –Tpng 方法名.out -o result.png即可。