Giter Club home page Giter Club logo

abs-haskell-formal's Introduction

Formal translation of ABS-subset to Haskell

Build Status License (3-Clause BSD) online API docs

A library to write (embed) ABS-subset programs in Haskell, and execute them at runtime by an included Haskell interpreter.

Prerequisites

You need a fairly-recent GHC compiler or Haskell Platform

Installing this library

Run inside the repository directory:

cabal install

Running the bechmarks

The ABS-subset benchmarks are under benchmarks/ directory, embedded as Haskell. After installing this library, you can compile them with:

ghc --make benchmarks/<FOLDER>/progs/ExampleName.hs

Execute an example with:

./benchmarks/<FOLDER>/progs/ExampleName

which will output the number of steps executed, the final heap, and the heap counter, e.g.:

Real steps:	6
Total steps:	6
Object Heap with array-size:10{
(0,([(0,-123),(1,8),(2,1),(3,9),(4,1)],fromList []))
}
Future Heap with array-size:10{
(1,Right (-123))
}
Counter: 2

Building the API docs

Run inside the repository directory:

cabal configure
cabal haddock

The documentation will appear under dist/doc/html

abs-haskell-formal's People

Contributors

bezirg avatar emartinm avatar

Stargazers

Behrooz Nobakht avatar

Watchers

Rudolf Schlatte avatar Amund Tveit avatar  avatar James Cloos avatar Behrooz Nobakht avatar Martin Steffen avatar  avatar Volker Stolz avatar Lars Tveito avatar Björn Petersen avatar Radu avatar Einar Broch Johnsen avatar  avatar  avatar Jesús J. Doménech avatar Miky avatar  avatar  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.