Skip to content

Latest commit

 

History

History
70 lines (59 loc) · 974 Bytes

README.md

File metadata and controls

70 lines (59 loc) · 974 Bytes

BPLivenessExecution

Code appendix for the paper "Adding Liveness to Executable Specifications"

Note: the project was implemented and tested on Python 3.7.4

Installation

  1. Clone the project :
    git clone https://github.com/bThink-BGU/BPLivenessExecution.git
  2. Create a virtual environment and activate it:
    cd BPLivenessExecution
    python -m venv env 
    source env/bin/activate
  3. Update pip and install all dependencies:
    pip install --upgrade pip
    pip install -r requirements.txt

Usage

running trained b-programs:

  • Sokoban (for Sokoban maps 1-3):
    python run_sokoban.py 1
  • Single Lane Bridge:
    python lane_bridge_run_model.py

training b-programs:

  • Sokoban (for Sokoban maps 1-3):
    python train_sokoban.py 1
  • Single Lane Bridge:
    python lane_bridge_experiment.py