TCS / Software / lpeq

LPEQ: Equivalence Testing of Logic Programs

Short Summary of the Programs

This software has been designed to be used with smodels (versions 2.*) and the front-end lparse which are are available here.

Related Publications

Tomi Janhunen and Emilia Oikarinen: Testing the Equivalence of Logic Programs under Stable Model Semantics. In the Proceedings of the 8th European Workshop on Logic in Artificial Inteligence, Cosenza, Italy, September 2002. pp. 493-504. Springer-Verlag. Lecture Notes in Artificial Intelligence, vol. 2424.

Using the Software

When given the option -c (resp. -s) lpeq produces a program for testing the classical (resp. strong) equivalence of the programs given as input. In this case, you have to invoke lparse (using only versions 1.0.11 and later) using the command line option -d all.

The other programs are more or less subsidiary (invoked by the scripts we have used in the experiments).


Disclaimer

The software below is provided on "as is" basis, without warranties of any kind or fitness for a particular purpose.

Copyright

The copyright for the binaries is held by Tomi Janhunen.
You may freely use this software for academic and research purposes but not redistribute it.

Download

Separate programs: lpeq (version 1.13), testsm (version 1.5), rsat-1.7 (version 1.7), drop (version 1.4), planar-1.1 (version 1.1)

Shell scripts (some experiments): queens_test, queens_times.sh, general_test, running_times.sh, naive.sh, README

Logic programs (used in experiments); queens.lp, queens_choice.lp, color.lp, hc.lp

All in one: lpeq.tgz


DLPEQ: Equivalence Testing of Disjunctive Logic Programs

This software has been designed to be used with GnT and the front-end lparse which are are available here.

Using the Software

dlpeq is used as follows in order to check the equivalence of program1.lp and program2.lp:

lparse --dlp program1.lp > program1.sm
lparse --dlp program2.lp > program2.sm

Either using one-phased or two-phased translation:

One-phased:
dlpeq program1.sm program2.sm | gnt 1
dlpeq program2.sm program1.sm | gnt 1

Two-phased:
dlpeq -p 1 program1.sm program2.sm | gnt 1
dlpeq -p 1 program2.sm program1.sm | gnt 1
dlpeq -p 2 program1.sm program2.sm | gnt 1
dlpeq -p 2 program2.sm program1.sm | gnt 1

Disclaimer

The software below is provided on "as is" basis, without warranties of any kind or fitness for a particular purpose.

Copyright

The copyright for the binary is held by Emilia Oikarinen.
You may freely use this software for academic and research purposes but not redistribute it.

Download

dlpeq (version 1.9)
[TCS main] [Current] [Contact Info] [Personnel] [Research] [Publications] [Software] [Studies] [Links]
Latest update: 30 March 2004. Tomi Janhunen