GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SPY-Lab/mu-js: MuJS static analyzer

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
lib
lib
 
 
misc
misc
 
 
src
src
 
 
target/generated-sources/antlr4/it/univr/main
target/generated-sources/antlr4/it/univr/main
 
 
.classpath
.classpath
 
 
.gitignore
.gitignore
 
 
.project
.project
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
mujs.jar
mujs.jar
 
 

Repository files navigation

μJS static analyzer

μJS static analyzer is a static analyzer based on abstract interpretation for μJs, a sub-language of JavaScript. Its syntax is reported in figure above.

image

How to run the tool

git clone https://github.com/SPY-Lab/mu-js

Here you can find the JAR file mujs.jar and you can run the μJS static analyzer as

java -jar mujs.jar filename.js 

Some option are available:

  • -widening n: set the parametric widening to n;
  • -narr: enables narrowing operation. By default, narrowing is not applied;
  • -coalesced: choose the coalesced sum abstract domain for the analysis. By default, this domain is used during the analysis;
  • -lifted: choose the lifted union abstract domain for the analysis;
  • -invariants: prints the invariants for each statement program point. By default, it prints only the memory holding at the end of the abstract execution;
  • -help: print the menu.

Example

Consider the following μJS program.

str = "helloworld";
a = 0;

while (a < 100) {
	a = a + 1;
}

if (a == 5) {
	c = (str.charAt(0));
} else {
	c = (str.charAt(3));
}

The state resulting from `java -jar -coalesced mujs.jar file.js is

*******************
str -> helloworld
a -> [0, +Inf]
c -> (l + h)
*******************

Contributors

  • Vincenzo Arceri [email protected]
  • Isabella Mastroeni [email protected]

About

MuJS static analyzer

Topics

abstract-interpretationfinite-state-automatajavascriptstatic-analysis

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

2 stars

Watchers

4 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.