Files
mercury/tests/debugger/fib.inp
Zoltan Somogyi db5c618d0c Add a mechanism for resetting all the tables implementing loopcheck, memo
Estimated hours taken: 2
Branches: main

Add a mechanism for resetting all the tables implementing loopcheck, memo
and minimal_model pragmas in a given module. This mechanism is intended for
use only by implementors, to wit, Ralph's meaurements of packrat parsing.

compiler/options.m:
doc/user_guide.texi:
	Add a new option, --allow-table-reset, that causes the compiler to
	generate a C function for doing the reset in LLDS grades.

compiler/llds_out.m:
	If the option is set, generate the reset function. The only time it
	is safe to call the reset function is when no tabled predicate is
	active.

tests/debugger/fib.{m,exp,inp}:
	New test case (a modified version of tests/tabling/fib.m) to see
	if the option works.

tests/debugger/Mmakefile:
tests/debugger/Mercury.options:
	Enable the new test case.
2005-03-07 05:00:35 +00:00

10 lines
88 B
Plaintext

echo on
context none
register --quiet
step
finish
table mfib
step 2
table mfib
continue