File: clasp0

package info (click to toggle)
clasp 3.3.5-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,716 kB
  • sloc: cpp: 69,712; ansic: 207; xml: 182; sh: 92; makefile: 28
file content (15 lines) | stat: -rwxr-xr-x 240 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# clasp: we must print one answer set and exit in 10
# Author: Thomas Krennwallner <tkren@kr.tuwien.ac.at>
# Date: 2017-05-07

set -o pipefail

{ gringo <<EOF
a :- not b.
b :- not a.
EOF
} | clasp

result=$?
test $result -eq 10