Skip to content

Commit da58fac

Browse files
authored
Fixed ASan and MSan
2 parents 19d533d + 92db9ad commit da58fac

10 files changed

Lines changed: 65 additions & 195 deletions

File tree

.github/workflows/build.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ jobs:
4343
"LLVM 7",
4444
"LLVM 6",
4545
"LLVM 5",
46-
#"ASan",
46+
"ASan",
4747
"UBSan",
48-
#"MSan",
48+
"MSan",
4949
"Z3 only",
5050
"metaSMT STP",
5151
"metaSMT Boolector",
5252
"STP master",
5353
"Latest klee-uclibc",
5454
"Asserts enabled",
5555
"No TCMalloc, optimised runtime",
56-
]
56+
]
5757
include:
5858
- name: "LLVM 11"
5959
env:
@@ -77,22 +77,22 @@ jobs:
7777
env:
7878
LLVM_VERSION: 5
7979
# Sanitizer builds. Do unoptimized build otherwise the optimizer might remove problematic code
80-
# - name: "ASan"
81-
# env:
82-
# SANITIZER_BUILD: address
83-
# ENABLE_OPTIMIZED: 0
84-
# USE_TCMALLOC: 0
80+
- name: "ASan"
81+
env:
82+
SANITIZER_BUILD: address
83+
ENABLE_OPTIMIZED: 0
84+
USE_TCMALLOC: 0
8585
- name: "UBSan"
8686
env:
8787
SANITIZER_BUILD: undefined
8888
ENABLE_OPTIMIZED: 0
8989
USE_TCMALLOC: 0
90-
# - name: "MSan"
91-
# env:
92-
# SANITIZER_BUILD: memory
93-
# ENABLE_OPTIMIZED: 0
94-
# USE_TCMALLOC: 0
95-
# SOLVERS: STP
90+
- name: "MSan"
91+
env:
92+
SANITIZER_BUILD: memory
93+
ENABLE_OPTIMIZED: 0
94+
USE_TCMALLOC: 0
95+
SOLVERS: STP
9696
# Test just using Z3 only
9797
- name: "Z3 only"
9898
env:

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,4 @@ autoconf/aclocal.m4
3333
autoconf/autom4te.cache/
3434
autom4te.cache/
3535

36-
test/
37-
examples/
3836
.vscode

include/klee/Module/KModule.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ namespace klee {
7575
KBlock(const KBlock &) = delete;
7676
KBlock &operator=(const KBlock &) = delete;
7777

78-
~KBlock();
79-
8078
unsigned getArgRegister(unsigned index) const { return index; }
8179
void handleKInstruction(std::map<llvm::Instruction*, unsigned> &registerMap,
8280
llvm::Instruction *inst, KModule *km, KInstruction *ki);
@@ -105,11 +103,11 @@ namespace klee {
105103
unsigned numBlocks;
106104
KInstruction **instructions;
107105

108-
std::map<llvm::Instruction*, KInstruction*> instructionMap;
106+
std::map<llvm::Instruction *, KInstruction *> instructionMap;
109107
std::vector<std::unique_ptr<KBlock>> blocks;
110108
std::map<llvm::BasicBlock*, KBlock*> blockMap;
111109
KBlock *entryKBlock;
112-
std::vector<KBlock*> finalKBlocks;
110+
std::vector<KBlock *> finalKBlocks;
113111
std::vector<KCallBlock*> kCallBlocks;
114112

115113
/// Whether instructions in this function should count as

0 commit comments

Comments
 (0)