|
24 | 24 |
|
25 | 25 | #include "nlohmann/json.hpp" |
26 | 26 |
|
27 | | -#include "phasar/Config/Configuration.h" |
28 | 27 | #include "phasar/Utils/PAMM.h" |
29 | 28 |
|
30 | 29 | using namespace psr; |
@@ -274,7 +273,8 @@ void PAMM::printMeasuredData(llvm::raw_ostream &Os) { |
274 | 273 | Os << "\n----- END OF EVALUATION DATA -----\n\n"; |
275 | 274 | } |
276 | 275 |
|
277 | | -void PAMM::exportMeasuredData(std::string OutputPath) { |
| 276 | +void PAMM::exportMeasuredData(std::string OutputPath, |
| 277 | + boost::program_options::variables_map &Config) { |
278 | 278 | // json file for holding all data |
279 | 279 | json JsonData; |
280 | 280 |
|
@@ -313,18 +313,15 @@ void PAMM::exportMeasuredData(std::string OutputPath) { |
313 | 313 |
|
314 | 314 | // add analysis/project/source file information if available |
315 | 315 | json JInfo; |
316 | | - if (PhasarConfig::VariablesMap().count("project-id")) { |
317 | | - JInfo["Project-ID"] = |
318 | | - PhasarConfig::VariablesMap()["project-id"].as<std::string>(); |
| 316 | + if (Config.count("project-id")) { |
| 317 | + JInfo["Project-ID"] = Config["project-id"].as<std::string>(); |
319 | 318 | } |
320 | | - if (PhasarConfig::VariablesMap().count("module")) { |
321 | | - JInfo["Module(s)"] = |
322 | | - PhasarConfig::VariablesMap()["module"].as<std::vector<std::string>>(); |
| 319 | + if (Config.count("module")) { |
| 320 | + JInfo["Module(s)"] = Config["module"].as<std::vector<std::string>>(); |
323 | 321 | } |
324 | | - if (PhasarConfig::VariablesMap().count("data-flow-analysis")) { |
| 322 | + if (Config.count("data-flow-analysis")) { |
325 | 323 | JInfo["Data-flow analysis"] = |
326 | | - PhasarConfig::VariablesMap()["data-flow-analysis"] |
327 | | - .as<std::vector<std::string>>(); |
| 324 | + Config["data-flow-analysis"].as<std::vector<std::string>>(); |
328 | 325 | } |
329 | 326 | if (!JInfo.is_null()) { |
330 | 327 | JsonData["Info"] = JInfo; |
|
0 commit comments