macaw/refinement/tests/samples
Tristan Ravitch e024646860
macaw-refinement (#114)
This commit updates macaw-refinement to work with the latest macaw/crucible and makes a few improvements along the way.

The major changes involved in this are:
* Block labels were removed from macaw, so we had to come up with an alternative approach to making synthetic blocks to represent dispatch resolved by macaw-refinement that is not really a jump table. We considered adding a new terminator that encoded "computed IP-based dispatch", but there was concern about the impact on client code. Instead, we added a field to the `DiscoveryFunInfo` that records "external" resolutions to indirect control flow (e.g., as by an SMT solver in macaw-refinement). The hook by which we feed SMT-based resolutions back into macaw was modified accordingly (`addDiscoveredFunctionBlockTargets`).
* Solver invocation changed to allow solver selection and parallel solver application.
* Logging is now done via the `lumberjack` library.
* macaw-symbolic now uses the "external" resolutions in `DiscoveryFunInfo` while building crucible CFGs.
* The path creation code in macaw-refinement was simplified significantly and the approach to path creation has been documented.
* The run-refinement tool is now more featureful.
* The test suite is a bit more structured and no longer depends on the printed output of the discovery process.
2020-03-12 17:15:08 -07:00
..
address-of-label1.c macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
address-of-label1.ppc.gcc.nopie.noopt.exe macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
address-of-label1.ppc.gcc.nopie.noopt.exe.expected macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
address-of-label1.ppc.gcc.nopie.opt.exe macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
address-of-label1.ppc.gcc.nopie.opt.exe.expected macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
address-of-label1.x86.clang.nopie.noopt.exe macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
address-of-label1.x86.clang.nopie.noopt.exe.expected macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
address-of-label1.x86.clang.nopie.opt.exe macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
address-of-label1.x86.clang.nopie.opt.exe.expected macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
address-of-label1.x86.gcc.nopie.noopt.exe macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
address-of-label1.x86.gcc.nopie.noopt.exe.expected macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
global-max-good.c [refinement] add some test sources to the test/samples. 2019-01-22 23:35:01 -08:00
global-max-good.ppc.expected [refinement] add PPC tests expected results. 2019-02-08 14:26:17 -08:00
global-max-good.x86.expected [refinement] add some test sources to the test/samples. 2019-01-22 23:35:01 -08:00
jumpfar.c [refinement] add some test sources to the test/samples. 2019-01-22 23:35:01 -08:00
jumpfar.ppc.expected [refinement] add PPC tests expected results. 2019-02-08 14:26:17 -08:00
jumpfar.x86.expected [refinement] add some test sources to the test/samples. 2019-01-22 23:35:01 -08:00
looping.c [refinement] add some test sources to the test/samples. 2019-01-22 23:35:01 -08:00
looping.ppc.expected [refinement] add PPC tests expected results. 2019-02-08 14:26:17 -08:00
looping.x86.expected [refinement] add some test sources to the test/samples. 2019-01-22 23:35:01 -08:00
Makefile macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
README.org macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
switch-loop.ppc.gcc.nopie.opt.exe macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
switch-loop.ppc.gcc.nopie.opt.exe.expected macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
switch-loop.x86.clang.nopie.opt.exe macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
switch-loop.x86.clang.nopie.opt.exe.expected macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
switch-loop.x86.gcc.nopie.opt.exe macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
switch-loop.x86.gcc.nopie.opt.exe.expected macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
switching_llvm.c [refinement] Add llvm compiled binary files. 2019-02-07 16:20:24 -08:00
switching_many_llvm.c [refinement] Add llvm compiled binary files. 2019-02-07 16:20:24 -08:00
switching_many.c [refinement] Added nested switch/case test source. 2019-02-07 16:14:12 -08:00
switching.c macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
switching.ppc.base-expected [refinement] add PPC tests expected results. 2019-02-08 14:26:17 -08:00
switching.x86.base-expected [refinement] Update expected refined test results for switching.x86. 2019-02-07 16:09:23 -08:00
switching.x86.gcc.nopie.noopt.exe macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
switching.x86.gcc.nopie.noopt.exe.expected macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
switching.x86.gcc.nopie.opt.exe macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
switching.x86.gcc.nopie.opt.exe.expected macaw-refinement (#114) 2020-03-12 17:15:08 -07:00
switching.x86.refined-expected [refinement] Added newline to end of expected output file. 2019-02-26 14:51:49 -08:00
tailrecurse.c [refinement] add some test sources to the test/samples. 2019-01-22 23:35:01 -08:00
tailrecurse.ppc.expected [refinement] add PPC tests expected results. 2019-02-08 14:26:17 -08:00
tailrecurse.x86.expected [refinement] add some test sources to the test/samples. 2019-01-22 23:35:01 -08:00

The contents of this directory provide several "golden" tests: a binary file along with a file containing the results of the base macaw discovery and also a file containing the results of the refined discovery are present for several architectural variants.

The test utility will perform both base discovery and discovery refinement and compare the results obtained to the expected results recorded in the files here to determine if both discovery and refinement are operating as expected.

Skipped Tests

  • address-of-label1.ppc.gcc.pie.*.exe These are not tested because this test cannot be made PIE on PowerPC. The address-of-label uses add relocations that aren't supported in static PIE mode.