44
55#include < fstream>
66#include < llvm/Support/raw_ostream.h>
7+ #include < utility>
78
89#ifdef ENABLE_XML_ANNOTATION
910#include " pugixml.hpp"
@@ -20,7 +21,7 @@ static inline std::string toLower(const std::string &str) {
2021
2122namespace Statement {
2223
23- Unknown::Unknown (const std::string & str) : str(str) { initOffset (); }
24+ Unknown::Unknown (std::string str) : str(std::move( str) ) { initOffset (); }
2425
2526Unknown::~Unknown () = default ;
2627
@@ -75,11 +76,11 @@ void Unknown::initOffset() {
7576 }
7677}
7778
78- Deref::Deref (const std::string & str) : Unknown(str) {}
79+ Deref::Deref (std::string str) : Unknown(std::move( str) ) {}
7980
8081Kind Deref::getKind () const { return Kind::Deref; }
8182
82- InitNull::InitNull (const std::string & str) : Unknown(str) {}
83+ InitNull::InitNull (std::string str) : Unknown(std::move( str) ) {}
8384
8485Kind InitNull::getKind () const { return Kind::InitNull; }
8586
@@ -221,6 +222,10 @@ AnnotationsMap parseAnnotationsXml(const pugi::xml_document &annotationsXml,
221222 for (pugi::xml_node keyword : customRule.child (" Keywords" )) {
222223 std::string name = keyword.attribute (" name" ).value ();
223224 std::string isRegex = keyword.attribute (" isRegex" ).value ();
225+ if (toLower (isRegex) == " true" ) {
226+ klee_warning (" Annotation: regexp currently not implemented" );
227+ continue ;
228+ }
224229 std::string value = keyword.attribute (" value" ).value ();
225230 std::string type = keyword.attribute (" type" ).value ();
226231 std::string pairedTo = keyword.attribute (" pairedTo" ).value ();
0 commit comments