Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.28 KB

File metadata and controls

28 lines (20 loc) · 1.28 KB

Automatic Test Case Generation With CMBC

This project was made for the subject of Hardware and Software Validation Systems in University of Lleida (UDL).

Subject directed by Dr.Ramón Béjar Torres.

Goal

Program for helping in the automation of the process of generating input test cases for the code coverage analysis of a set of functions. Tries to find test cases for all the assert( 0 ) points of the function funcnameinside ccode source code, and using k for the unwind parameter. Also, for each case, tries to find a set of input values for the parameters of the function with name funcname located inside source file ccode, and that the set of input values make the function to reach the “assert( 0 )” point of the function with cbmc identifier propname.

Input

python automatic_test_generation.py <code to test> <function to test> <unwind parameter>

Test

The program can be tested with the file min-function.c

python automatic_test_generation.py min-function.c minxyz 50

Built With

Python - Primary and unique Language.

Authors

  • Jordi Ricard Onrubia Palacios - Programming - JordiROP

License

This project is licensed under the MIT License - see the LICENSE.md file for details.