Git Product home page Git Product logo

psharp's Introduction

P#

A toolkit for building, analyzing and systematically testing asynchronous software, such as web-services and distributed systems.

Features

The P# framework provides:

  • Language extensions to C# for building event-driven asynchronous applications, writing test harnesses, and specifying safety and liveness properties.
  • A systematic testing engine that can capture and control all the specified nondeterminism in the system, and systematically explore the actual executable code to discover bugs.

Although P# primarily targets .NET, it has also experimental support for systematically testing native C++ code.

Build instructions

  1. Get Visual Studio 2015 (required for Microsoft Roslyn).
  2. Clone this project and compile using VS2015.

Optional: Get the Visual Studio 2015 SDK to be able to compile the P# visual studio extension (syntax highlighting). Only for the high-level P# language.

How to use

A good way to start is by reading the manual (which is quite outdated right now, a new version will get released soon, but in the meantime please feel free to contact the P# dev team with specific questions).

Compilation

The P# compiler can be used to parse a P# program, rewrite it to C# and finally compile it to an executable. To invoke the compiler use the following command:

.\PSharpCompiler.exe /s:${SOLUTION_PATH}\${SOLUTION_NAME}.sln

Where ${SOLUTION_PATH} is the path to your P# solution and ${SOLUTION_NAME} is the name of your P# solution.

To specify an output path destination use the option /o:${OUTPUT\_PATH}.

To compile only a specific project in the solution use the option /p:${PROJECT_NAME}.

To only compile for testing use the option /t:testing.

Systematic testing

The P# tester can be used to systematically test a P# program to find safety property and liveness property violations. It can be invoked on a P# program (dll) that was previously compiled using the P# compiler (or some other custom build system). To invoke the tester use the following command:

.\PSharpTester.exe /test:${DLL_PATH}\${DLL_NAME}.dll

Where ${DLL_PATH} is the path to your P# program and ${DLL_NAME} is the name of your P# program.

You can optionally give the number of testing iterations to perform using /i:value.

To enable liveness checking use the option /liveness.

Options

To see various available command line options for the P# tools use the option /?.

Contact us

If you would like to use P# in your project, or have any specific questions, please feel free to contact one of the following members of the P# team:

Publications

psharp's People

Contributors

andronat avatar paulthomson avatar pdeligia avatar

Watchers

 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.