Files
mercury/tests/declarative_debugger/func_call.exp2
Zoltan Somogyi cb8c73c592 Fix test failures in trail grades.
tests/declarative_debugger/catch.exp2:
tests/declarative_debugger/catch.exp3:
tests/declarative_debugger/find_origin.exp2:
tests/declarative_debugger/func_call.exp2:
tests/declarative_debugger/gcf.exp2:
tests/declarative_debugger/ho5.exp2:
tests/declarative_debugger/neg_conj.exp2:
tests/declarative_debugger/solns.exp2:
tests/declarative_debugger/throw.exp2:
    Update .exp2 files for line number changes after recent updates
    to source files.

    For the catch test case, swap the .exp2 and .exp3 files first,
    because it looks like the old .exp2, which is the new .exp3,
    is so old that it is probably not an expected output for any
    grade/options combination, and thus should be a candidate for deletion.

tests/declarative_debugger/find_origin.m:
    Improve a comment,

tests/declarative_debugger/catch.m:
    Delete blank last line.
2021-07-30 16:25:26 +10:00

48 lines
945 B
Plaintext

1: 1 1 CALL pred func_call.main/2-0 (det) func_call.m:15
mdb> echo on
Command echo enabled.
mdb> register --quiet
mdb> break fib
0: + stop interface func func_call.fib/1-0 (det)
mdb> continue
2: 2 2 CALL func func_call.fib/1-0 (det) func_call.m:21 (func_call.m:16)
mdb> finish -n
233: 2 2 EXIT func func_call.fib/1-0 (det) func_call.m:21 (func_call.m:16)
mdb> dd -d 3 -n 7
fib(6) = 9
Valid? no
Call =<(6, 1)
Unsatisfiable? yes
-(6, 1) = 5
Valid? yes
fib(5) = 6
Valid? no
Call =<(5, 1)
Unsatisfiable? yes
-(5, 1) = 4
Valid? yes
fib(4) = 4
Valid? no
Call =<(4, 1)
Unsatisfiable? yes
-(4, 1) = 3
Valid? yes
fib(3) = 3
Valid? yes
-(4, 3) = 1
Valid? yes
fib(1) = 1
Valid? yes
+(3, 1) = 4
Valid? yes
Found incorrect contour:
-(4, 1) = 3
fib(3) = 3
-(4, 3) = 1
fib(1) = 1
+(3, 1) = 4
fib(4) = 4
Is this a bug? yes
115: 12 4 EXIT func func_call.fib/1-0 (det) func_call.m:21 (func_call.m:25)
mdb> quit -y