Files
mercury/tests/debugger/declarative/propositional.exp2
Mark Brown 9578ff16bb Alter the `dd' command in mdb so that it does not assume that the answer
Estimated hours taken: 2.5

Alter the `dd' command in mdb so that it does not assume that the answer
to the first question asked is `no'.  The question is somewhat redundant,
since the only sensible answer is `no', but I find that it gives useful
feedback about the symptom that is being diagnosed, and it makes clearer
why the following questions are asked.

browser/declarative_analyser.m:
	Start analysis with a list of suspects which contains only the
	topmost node of the debugging tree.

browser/declarative_debugger.m:
	If the answer to the first question is something other than `no',
	then end the diagnosis and report that no bugs were found.

tests/debugger/declarative/*.{inp,exp,exp2}:
	Update test cases to handle the extra question.
2000-08-18 10:59:40 +00:00

41 lines
1.2 KiB
Plaintext

1: 1 1 CALL pred propositional:main/2-0 (det) propositional.m:13
mdb> echo on
Command echo enabled.
mdb> register --quiet
mdb> break a
0: + stop interface pred propositional:a/0-0 (semidet)
mdb> break b
1: + stop interface pred propositional:b/0-0 (semidet)
mdb> continue
3: 2 2 CALL pred propositional:a/0-0 (semidet) propositional.m:27 (propositional.m:10)
mdb> finish
15: 2 2 EXIT pred propositional:a/0-0 (semidet) propositional.m:27 (propositional.m:10)
mdb> dd
a
Valid? no
c
Valid? yes
Found incorrect contour:
a
Is this a bug? yes
15: 2 2 EXIT pred propositional:a/0-0 (semidet) propositional.m:27 (propositional.m:10)
mdb> continue
16: 7 2 CALL pred propositional:b/0-0 (semidet) propositional.m:29 (propositional.m:10)
mdb> finish
30: 7 2 EXIT pred propositional:b/0-0 (semidet) propositional.m:29 (propositional.m:10)
mdb> dd
b
Valid? no
f
Valid? no
i
Valid? yes
Found incorrect contour:
f
Is this a bug? yes
29: 8 3 EXIT pred propositional:f/0-0 (semidet) propositional.m:35 (propositional.m:29)
mdb> continue
30: 7 2 EXIT pred propositional:b/0-0 (semidet) propositional.m:29 (propositional.m:10)
mdb> continue
yes