Skip to content

Commit dc27b24

Browse files
committed
temp
1 parent 00b9b74 commit dc27b24

4 files changed

Lines changed: 9 additions & 10 deletions

File tree

include/klee/Core/MockBuilder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ class MockBuilder {
3030
llvm::Value *source, llvm::Type *type,
3131
const std::string &symbolicName);
3232

33-
void buildAnnotationForExternalFunctionParams(
33+
void buildAnnotationForExternalFunctionArgs(
3434
llvm::Function *func,
35-
const std::vector<std::vector<Annotation::StatementPtr>> &statements);
35+
const std::vector<std::vector<Annotation::StatementPtr>> &statementsNotAllign);
3636
void buildAnnotationForExternalFunctionReturn(
3737
llvm::Function *func, const std::vector<Annotation::StatementPtr> &statements);
3838
void buildAnnotationForExternalFunctionProperties(

include/klee/Module/Annotation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ struct Annotation {
6363

6464
std::string functionName;
6565
std::vector<StatementPtr> returnStatements;
66-
std::vector<std::vector<StatementPtr>> argumentsStatements;
66+
std::vector<std::vector<StatementPtr>> argsStatements;
6767
std::set<PropertyKind> properties;
6868
};
6969

lib/Core/MockBuilder.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
#include "klee/Support/ErrorHandling.h"
55
#include "llvm/IR/IRBuilder.h"
66
#include "llvm/IR/Module.h"
7-
8-
#include <list>
97
#include <llvm/Support/raw_ostream.h>
8+
109
#include <memory>
1110
#include <utility>
1211

@@ -125,8 +124,8 @@ void MockBuilder::buildExternalFunctionsDefinitions() {
125124
if (nameToAnnotations != annotations.end()) {
126125
const auto &annotation = nameToAnnotations->second;
127126

128-
buildAnnotationForExternalFunctionParams(func,
129-
annotation.argumentsStatements);
127+
buildAnnotationForExternalFunctionArgs(func,
128+
annotation.argsStatements);
130129
buildAnnotationForExternalFunctionReturn(func,
131130
annotation.returnStatements);
132131
buildAnnotationForExternalFunctionProperties(func, annotation.properties);
@@ -253,7 +252,7 @@ bool tryAllign(
253252
return false;
254253
}
255254

256-
void MockBuilder::buildAnnotationForExternalFunctionParams(
255+
void MockBuilder::buildAnnotationForExternalFunctionArgs(
257256
llvm::Function *func,
258257
const std::vector<std::vector<Annotation::StatementPtr>>
259258
&statementsNotAllign) {

lib/Module/Annotation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Annotation::StatementInitNull::getStatementKind() const {
121121
bool Annotation::operator==(const Annotation &other) const {
122122
return (functionName == other.functionName) &&
123123
(returnStatements == other.returnStatements) &&
124-
(argumentsStatements == other.argumentsStatements) &&
124+
(argsStatements == other.argsStatements) &&
125125
(properties == other.properties);
126126
}
127127

@@ -161,7 +161,7 @@ AnnotationsMap parseAnnotationsJson(const json &annotationsJson) {
161161
std::vector<std::vector<Annotation::StatementPtr>> tmp =
162162
j.at("annotation").get<std::vector<std::vector<Annotation::StatementPtr>>>();
163163
annotation.returnStatements = tmp[0];
164-
annotation.argumentsStatements =
164+
annotation.argsStatements =
165165
std::vector<std::vector<Annotation::StatementPtr>>(tmp.begin() + 1, tmp.end());
166166
}
167167

0 commit comments

Comments
 (0)