Skip to content

ComputationWithBoundedResources/tct-inttrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##tct-inttrs This package is part of the Tyrolean Complexity Tool (TcT) and provides a presentation for (top-level) integer term rewrite systems.

###Example

  outer(x, r)       -> inner(1, 1, x, r)       [ x >= 0 && r <= 100000]
  inner(f, i, x, r) -> inner(f + i, i+1, x, r) [ i <= x ]
  inner(f, i, x, r) -> outer(x - 1, r + f)     [ i > x ]
  g(cons(x, xs), y) -> g(xs, y + 1)
  h(xs, y)          -> h(cons(0, xs), y - 1)   [ y  > 0]

See here for details about the format.

##Requirements

Executables:

Other packages:

The tool is only tested under GNU/Linux.

###Installation

####Using Stack We recommend using stack with the accompanied stack.yaml file. To build and install the package run following command:

stack install tct-inttrs

###Example Usage

To transform a problem into TRS or ITS format use following commands respectively:

#output TRS in WST format
tct-inttrs --putTrs $problem
#output ITS in Koat format
tct-inttrs --putIts $problem

To directly invoke the resource analysis on the transformed problems use one of the following commands:

# executes the default strategies on resulting TRS and ITS problem, returning the first successfull result
tct-inttrs $problem
# executes default trs strategy on resulting TRS problem
tct-inttrs --strategy withTrs $problem
# executes default its strategy on resulting ITS problem
tct-inttrs --strategy withIts $problem 
# executes 'polys' strategy on resulting TRS problem
tct-inttrs --strategy "withTrs :trs polys"

About

Wrapper for integer term rewrite systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published