You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

ssa.js

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssa.js - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+1
-1
package.json
{
"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
[![Build Status](https://secure.travis-ci.org/indutny/ssa.js.png)](http://travis-ci.org/js-js/ssa.js)
[![NPM version](https://badge.fury.io/js/ssa.js.svg)](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