Blame view

prism-4.3-linux64/etc/scripts/hoa/hoa-rabinizer3-dgra-for-prism 628 Bytes
8146dcf82   Thanasis Naskos   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  #! /bin/bash
  
  # Interface wrapper for calling Rabinizer3 (state-based DGRA)
  # Invoke from PRISM with
  #  -ltl2datool hoa-rabinizer3-dra-for-prism -ltl2dasyntax rabinizer
  #
  # Expects the rabinizer.jar file of Rabinizer3 in the current directory, otherwise
  # specify its location using
  #  export RABINIZER3=path/to/rabinizer.jar
  
  # Take location of the jar file from RABINIZER3 environment variable
  # Otherwise, default to current directory
  RABINIZER3_JAR=${RABINIZER3-./rabinizer.jar}
  
  # -hoa = output HOA
  # -gen-states = output state-based generalized Rabin
  java -jar $RABINIZER3_JAR -hoa -gen-states "$1"   &&  mv "$1.hoa" "$2"