File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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) {
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ Annotation::StatementInitNull::getStatementKind() const {
121121bool 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
You can’t perform that action at this time.
0 commit comments