+1
-1
| { | ||
| "name": "ssa.js", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "SSA Phi Insertion helper", | ||
@@ -5,0 +5,0 @@ "main": "lib/ssa.js", |
+14
-19
| # SSA.js | ||
| [](http://travis-ci.org/js-js/ssa.js) | ||
| [](http://badge.fury.io/js/ssa.js) | ||
@@ -8,22 +10,15 @@ Construction of minimal SSA form | ||
| ```javascript | ||
| var phi = require('phi.js'); | ||
| var pipeline = require('json-pipeline').create('dominance'); | ||
| phi.run([ | ||
| { | ||
| id: 'B1', | ||
| instructions: [{ | ||
| type: 'literal', | ||
| assign: true, | ||
| id: 'variable-name', | ||
| inputs: [ { type: 'js', value: 123 } ] | ||
| }, { | ||
| type: 'use', | ||
| inputs: [ { type: 'variable', id: 'variable-name' } ] | ||
| }, ... ] | ||
| }, | ||
| ... | ||
| ]); | ||
| // init pipeline somehow | ||
| var ssa = require('ssa.js').create(pipeline); | ||
| ssa.compute(); | ||
| // Print outputs | ||
| console.log(pipeline.render({ cfg: true }, 'printable')); | ||
| ``` | ||
| See [CFG-IR][0] for details on representation format. | ||
| See [json-pipeline][0] for details on representation format. | ||
@@ -34,3 +29,3 @@ #### LICENSE | ||
| Copyright Fedor Indutny, 2014. | ||
| Copyright Fedor Indutny, 2015. | ||
@@ -56,2 +51,2 @@ Permission is hereby granted, free of charge, to any person obtaining a | ||
| [0]: https://github.com/indutny/cfg-ir | ||
| [0]: https://github.com/indutny/json-pipeline/blob/master/design.md |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
19494
0.72%0
-100%50
-9.09%