Commit 0024a53
SourceCode-based IFDS/IDE UnitTests (#789)
* Add utility function to aid src-code based unittests
* half of xtaint test, stuck on 12
* Fixed all but 09 and 12
* fixed all enabled ext taint tests
* reworked test structure
* refractor + more tests. Weird errors
* debug commit
* Fix psr::getDILocation()
* std::variant for SrcCodeLocationEntry
* bug fixed + ext taint test works
* compile tests as dbg + ground truths
* Fix Gt for UninitTest_02_SHOULD_LEAK
* Add TestingSrcLocation
* GLCA nearly done, questions for meeting
* taint double free tests fail
* Fixed IFDSConstAnalysisTest
* fixed tainttest and segfaults + refactoring
* Fix AnalysisPrinterTest
* Convert AnalysisPrinterTest to src-code-based ground-truth
* Start converting InstInterationAnalysis tests
* Convert some more IIA test cases
* Add more IIA tests
* Convert FIIA-test + fix use-after-free in IIA test
* HandleTypeState_03 not working
* All but three fileio tests work
* UninitVarTest fixed all but one
* fixed all but 03 of TSAnalysisFile
* Fixed all but one test
* Fixed UninitTest_21
* Enable modeling of instruction-operands in TestingSrcLocation + fix 20th uninit test
* reworked test 06
* cleanup
* readded LIBCPP_GTEST_SKIP
* fixed use after scope in taint analysis test
* Make IDEExtendedTaintAnalysisTest more compact
* Convert IIAFlowFact tests +make GLCA test more compact
* Refactor rest of IfdsIde tests
* Move everything in SrcCodeLocationEntry to psr::unittest + some cleanup
* Some cleanup
---------
Co-authored-by: Fabian Schiebel <fabian.schiebel@iem.fraunhofer.de>
Co-authored-by: Fabian Schiebel <fabianbs@mail.upb.de>1 parent 501c7e3 commit 0024a53
File tree
33 files changed
+3143
-1699
lines changed- include/phasar
- DataFlow/IfdsIde/Solver
- Domain
- Utils
- lib/PhasarLLVM/Utils
- test/llvm_test_code
- general_linear_constant
- inst_interaction
- openssl
- key_derivation
- secure_heap
- secure_memory
- taint_analysis
- typestate_analysis_fileio
- xtaint
- unittests
- PhasarLLVM
- DataFlow/IfdsIde
- Problems
- Pointer
- TypeHierarchy
- TestUtils
- Utils
33 files changed
+3143
-1699
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1616 | 1616 | | |
1617 | 1617 | | |
1618 | 1618 | | |
1619 | | - | |
| 1619 | + | |
1620 | 1620 | | |
1621 | 1621 | | |
1622 | 1622 | | |
| |||
1634 | 1634 | | |
1635 | 1635 | | |
1636 | 1636 | | |
1637 | | - | |
| 1637 | + | |
1638 | 1638 | | |
1639 | 1639 | | |
1640 | 1640 | | |
| |||
1719 | 1719 | | |
1720 | 1720 | | |
1721 | 1721 | | |
1722 | | - | |
| 1722 | + | |
1723 | 1723 | | |
1724 | 1724 | | |
1725 | 1725 | | |
| |||
1738 | 1738 | | |
1739 | 1739 | | |
1740 | 1740 | | |
1741 | | - | |
| 1741 | + | |
1742 | 1742 | | |
1743 | 1743 | | |
1744 | 1744 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | | - | |
104 | | - | |
105 | | - | |
| 104 | + | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
| |||
114 | 113 | | |
115 | 114 | | |
116 | 115 | | |
117 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
296 | | - | |
297 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
395 | 400 | | |
396 | 401 | | |
397 | 402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | | - | |
109 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
| 116 | + | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
0 commit comments