INSTALLATION:

1) The dingo.sh script uses third-party grounders and solvers. To
download and install them into bin/ subdirectory, we provide scripts
wget-gringo.sh and wget-z3.sh that should be run in the bin/ subdirectory.

2) If you want to invoke dingo.sh from other directories, please modify
the dingo.sh script by substituting the full path name of the installation
directory for "." in "DIR=.".

TESTS:

To try out benchmarks reported in

  Tomi Janhunen, Guohua Liu, and Ilkka Niemelä. Tight Integration of
  Non-Ground Answer Set Programming and Satisfiability Modulo
  Theories. In P. Cabalar, D. Mitchell, D. Pearce, and E. Ternovska,
  editors, the Proceedings of the 1st Workshop on Grounding and
  Transformations for Theories with Variables, 1—13. Vancouver, British
  Columbia, Canada, May 2011.

please issue commands like these:

$ ./dingo.sh bench/sorting/instances/n60_1.lp \
             bench/sorting/encodings/sorting.dingo
SATISFIABLE

Theory: Vars: p(102)=0 p(109)=5 p(75)=-10 p(74)=-11 p(91)=-3 p(80)=-7
p(112)=7 p(108)=4 p(107)=3 p(116)=9 p(44)=-22 p(55)=-20 p(110)=6
p(49)=-21 p(87)=-4 p(99)=-1 p(64)=-16 p(33)=-25 p(62)=-17 p(60)=-19
p(105)=2 p(28)=-27 p(117)=10 p(61)=-18 p(23)=-31 p(26)=-29 p(24)=-30
p(35)=-24 p(79)=-8 p(66)=-14 p(97)=-2 p(103)=1 p(65)=-15 p(115)=8
p(69)=-12 p(82)=-6 p(67)=-13 p(37)=-23 p(21)=-32 p(77)=-9 p(27)=-28
p(83)=-5 p(17)=-33 p(32)=-26 p(119)=11 zero=-33

$ ./dingo.sh bench/newspaper/instances/p4_d100_1.lp \
             bench/newspaper/encodings/newspaper.dingo
UNSATISFIABLE

WARNINGS:

The arguments of int(.) and dl_*(.,.,.) are not type checked and
it is completely up to the user to provide reasonable arguments.

