GithubHelp home page GithubHelp logo

mmgit95 / verification-java-game Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oliviawyq/verification-java-game

0.0 0.0 0.0 22.81 MB

Formal Verification to the Java game using JPF, FindBugs and JBMC

Java 47.26% HTML 52.74%

verification-java-game's Introduction

Verification-Java-Game

How to run the program

Use Eclipse or IDEA to run the game.

Or Use Command Line to run:

$ cd ArcadeGameProject/src/
$ java Main

Compiler version: JDK 1.8 JRE 1.8

Install Findbugs

Simply install the plugins in IDEA:

https://plugins.jetbrains.com/plugin/3847-findbugs-idea

Install JBMC

1.Get the environment

https://github.com/diffblue/cbmc/blob/master/COMPILING

MACOS:

  1. You need a C/C++ compiler, Flex and Bison, and GNU make. To this end, first install the XCode from the App-store and then type

    $ xcode-select --install
    

    in a terminal window.

  2. Then get the CBMC source via

    $ git clone https://github.com/diffblue/cbmc cbmc-git
    
  3. Then type

    $ cd cbmc-git/src
    $ make minisat2-download
    $ make
    

2.Compile JBMC

https://github.com/diffblue/cbmc/tree/develop/jbmc

$ cd cbmc-git

Before compilation, run the commands:

$ make -C src DOWNLOADER=wget minisat2-download
$ make -C jbmc/src setup-submodules

Then compile using:

$ make -C jbmc/src

3.Test the program

http://www.cprover.org/jbmc/

jbmc is inside cbmc-git/jbmc/src/jbmc/

<some-directory>$ javac my/petty/examples/Simple.java

<some-directory>$ <path-to-jbmc>/jbmc my/petty/examples/Simple.class --unwind 5 --classpath <path-to-jbmc>/core-models.jar:.

Install Java Path Finder

https://github.com/javapathfinder/jpf-core/wiki/Build,-Test,-Run

1.Install Gradle

MACOS

$ brew install gradle

2.Build JPF by Gradle

First, use git to download jpf-core:

$ git clone [email protected]:<your_username>/jpf-core.git

Then, build JPF with command line:

$ cd jpf-core
$ ./gradlew buildJars
$ ./gradlew tasks --all

Make sure <jpf-core-dir>/bin/jpf and <jpf-core-dir>/build/RunJPF.jar exist after building.

3.Run JPF to test the program

<some-directory>$ <jpf-core-dir>/bin/jpf +classpath=. <application-main-class>

Notice: There is a space between +classpath=. and <application-main-class> !

verification-java-game's People

Contributors

oliviawyq avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.