svf-tools 1.0.1031 → 1.0.1032

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-tools",
3
- "version": "1.0.1031",
3
+ "version": "1.0.1032",
4
4
  "description": "* <b>[TypeClone](https://github.com/SVF-tools/SVF/wiki/TypeClone) published in our [ECOOP paper](https://yuleisui.github.io/publications/ecoop20.pdf) is now available in SVF </b> * <b>SVF now uses a single script for its build. Just type [`source ./build.sh`](https://github.com/SVF-tools/SVF/blob/master/build.sh) in your terminal, that's it!</b> * <b>SVF now supports LLVM-10.0.0! </b> * <b>We thank [bsauce](https://github.com/bsauce) for writing a user manual of SVF ([link1](https://www.jianshu.com/p/068a08ec749c) and [link2](https://www.jianshu.com/p/777c30d4240e)) in Chinese </b> * <b>SVF now supports LLVM-9.0.0 (Thank [Byoungyoung Lee](https://github.com/SVF-tools/SVF/issues/142) for his help!). </b> * <b>SVF now supports a set of [field-sensitive pointer analyses](https://yuleisui.github.io/publications/sas2019a.pdf). </b> * <b>[Use SVF as an external lib](https://github.com/SVF-tools/SVF/wiki/Using-SVF-as-a-lib-in-your-own-tool) for your own project (Contributed by [Hongxu Chen](https://github.com/HongxuChen)). </b> * <b>SVF now supports LLVM-7.0.0. </b> * <b>SVF now supports Docker. [Try SVF in Docker](https://github.com/SVF-tools/SVF/wiki/Try-SVF-in-Docker)! </b> * <b>SVF now supports [LLVM-6.0.0](https://github.com/svf-tools/SVF/pull/38) (Contributed by [Jack Anthony](https://github.com/jackanth)). </b> * <b>SVF now supports [LLVM-4.0.0](https://github.com/svf-tools/SVF/pull/23) (Contributed by Jared Carlson. Thank [Jared](https://github.com/jcarlson23) and [Will](https://github.com/dtzWill) for their in-depth [discussions](https://github.com/svf-tools/SVF/pull/18) about updating SVF!) </b> * <b>SVF now supports analysis for C++ programs.</b> <br />",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -35,7 +35,6 @@
35
35
  #include "SVF-LLVM/LLVMUtil.h"
36
36
  #include "SVF-LLVM/SymbolTableBuilder.h"
37
37
  #include "SVFIR/PAGBuilderFromFile.h"
38
- #include "SVFIR/SVFFileSystem.h"
39
38
  #include "SVFIR/SVFModule.h"
40
39
  #include "SVFIR/SVFValue.h"
41
40
  #include "Util/CallGraphBuilder.h"
@@ -172,7 +171,7 @@ SVFIR* SVFIRBuilder::build()
172
171
  // dump SVFIR as JSON
173
172
  if (!Options::DumpJson().empty())
174
173
  {
175
- SVFIRWriter::writeJsonToPath(pag, Options::DumpJson());
174
+ assert(false && "please implement SVFIRWriter::writeJsonToPath");
176
175
  }
177
176
 
178
177
  double endTime = SVFStat::getClk(true);
@@ -30,7 +30,6 @@
30
30
  #include "SVF-LLVM/SVFIRBuilder.h"
31
31
  #include "Util/CommandLine.h"
32
32
  #include "Util/Options.h"
33
- #include "SVFIR/SVFFileSystem.h"
34
33
 
35
34
 
36
35
  using namespace std;
@@ -61,12 +60,10 @@ int main(int argc, char** argv)
61
60
  LLVMModuleSet::preProcessBCs(moduleNameVec);
62
61
  }
63
62
 
64
- SVFModule* svfModule = LLVMModuleSet::buildSVFModule(moduleNameVec);
65
63
  const std::string jsonPath = replaceExtension(moduleNameVec.front());
66
64
  // PAG is borrowed from a unique_ptr, so we don't need to delete it.
67
- const SVFIR* pag = SVFIRBuilder(svfModule).build();
68
65
 
69
- SVFIRWriter::writeJsonToPath(pag, jsonPath);
66
+ assert(false && "Please implement SVFIRWriter::writeJsonToPath");
70
67
  SVFUtil::outs() << "SVF IR is written to '" << jsonPath << "'\n";
71
68
  LLVMModuleSet::releaseLLVMModuleSet();
72
69
  return 0;
@@ -31,7 +31,6 @@
31
31
  #include "WPA/WPAPass.h"
32
32
  #include "Util/CommandLine.h"
33
33
  #include "Util/Options.h"
34
- #include "SVFIR/SVFFileSystem.h"
35
34
 
36
35
 
37
36
  using namespace llvm;
@@ -49,7 +48,7 @@ int main(int argc, char** argv)
49
48
 
50
49
  if (Options::ReadJson())
51
50
  {
52
- pag = SVFIRReader::read(moduleNameVec.front());
51
+ assert(false && "please implement SVFIRReader::read");
53
52
  }
54
53
  else
55
54
  {