Files
mercury/tests/declarative_debugger/ho3.exp
Zoltan Somogyi ecb5e4a9e6 Update the style of many test cases.
tests/declarative_debugger/*.m:
tests/exceptions/*.m:
tests/general/*.m:
tests/grade_subdirs/*.m:
tests/purity/*.m:
tests/submodules/*.m:
tests/typeclasses/*.m:
    Update programming style.

tests/declarative_debugger/*.inp:
    Update line numbers in breakpoint commands.
tests/declarative_debugger/*.exp:
    Update expected line numbers.

tests/exceptions/Mercury.options:
tests/general/Mercury.options:
    Disable some warnings that are irrelevant to the test.
2021-07-25 23:26:17 +10:00

49 lines
1.1 KiB
Plaintext

1: 1 1 CALL pred ho3.main/2-0 (det) ho3.m:14
mdb> echo on
Command echo enabled.
mdb> register --quiet
mdb> break p
0: + stop interface pred ho3.p/1-0 (semidet)
mdb> continue
3: 2 2 CALL pred ho3.p/1-0 (semidet) ho3.m:29 (ho3.m:15)
mdb> finish
16: 2 2 FAIL pred ho3.p/1-0 (semidet) ho3.m:29 (ho3.m:15)
mdb> dd -d 3 -n 7
Call p(1)
Unsatisfiable? no
q(0, x(0))
Valid? yes
Call x(0, 1)
Unsatisfiable? yes
q(0, y(0))
Valid? yes
Call y(0, 1)
Unsatisfiable? yes
Call q(0, _)
Solutions:
q(0, x(0))
q(0, y(0))
Complete? yes
Found partially uncovered atom:
p(1)
Is this a bug? yes
16: 2 2 FAIL pred ho3.p/1-0 (semidet) ho3.m:29 (ho3.m:15)
mdb> continue
19: 6 2 CALL pred ho3.p/1-0 (semidet) ho3.m:29 (ho3.m:20)
mdb> finish
32: 6 2 FAIL pred ho3.p/1-0 (semidet) ho3.m:29 (ho3.m:20)
mdb> dd -d 3 -n 7
Call p(2)
Unsatisfiable? no
Call x(0, 2)
Unsatisfiable? yes
Call y(0, 2)
Unsatisfiable? yes
Found partially uncovered atom:
p(2)
Is this a bug? yes
32: 6 2 FAIL pred ho3.p/1-0 (semidet) ho3.m:29 (ho3.m:20)
mdb> continue
\+ p(1).
\+ p(2).