mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 09:23:44 +00:00
compiler/structure_sharing.analysis.m:
Fix the failures in tests/structure_reuse.
This pass invokes liveness, which requires that the arg_info slots
in pred_infos should be filled in. Invoke generate_arg_info to fill
them in. (I don't know why they happened to be already filled in
in non-debug grades.)
tests/declarative_debugger/ignore.{inp2,exp2}:
Update the line numbers in these files. I updated ignore.{inp,exp}
when I cleaned up ignore.m, but didn't update these, which are the
input and expected output for debug grades.
47 lines
932 B
Plaintext
47 lines
932 B
Plaintext
E1: C1 CALL pred ignore.main/2-0 (det) ignore.m:19
|
|
mdb> mdb> Contexts will not be printed.
|
|
mdb> echo on
|
|
Command echo enabled.
|
|
mdb> trust int
|
|
Trusting module int
|
|
mdb> trust ignore_1
|
|
Trusting module ignore_1
|
|
mdb> step
|
|
E2: C2 CALL pred ignore.p/1-0 (det)
|
|
mdb> finish
|
|
E3: C2 EXIT pred ignore.p/1-0 (det)
|
|
mdb> dd -d 3 -n 7
|
|
p(15)
|
|
Valid? b 1
|
|
browser> mark
|
|
q(5, 10) = 15
|
|
Valid? n
|
|
Found incorrect contour:
|
|
+(5, 10) = 15
|
|
q(5, 10) = 15
|
|
Is this a bug? y
|
|
E4: C3 EXIT func ignore.q/2-0 (det)
|
|
mdb> break 21
|
|
0: + stop linenumber ignore.m:21
|
|
mdb> continue
|
|
E5: C4 CALL pred ignore.p/1-0 (det)
|
|
mdb> finish
|
|
E6: C4 EXIT pred ignore.p/1-0 (det)
|
|
mdb> dd -d 3 -n 7
|
|
p(15)
|
|
Valid? n
|
|
q(1, 0) = 1
|
|
Valid? y
|
|
q(2, 1) = 3
|
|
Valid? y
|
|
q(3, 3) = 6
|
|
Valid? y
|
|
q(4, 6) = 10
|
|
Valid? y
|
|
Found incorrect contour:
|
|
+(5, 10) = 15
|
|
q(5, 10) = 15
|
|
Is this a bug? y
|
|
E7: C5 EXIT func ignore.q/2-0 (det)
|
|
mdb> quit -y
|