Files
mercury/tests/hard_coded/impure_foreign.exp
Simon Taylor bcc5bd10b4 Fix bugs in the handling of impurity which broke `solutions/2'
Estimated hours taken: 2
Branches: main

Fix bugs in the handling of impurity which broke `solutions/2'
in grade asm_fast when compiled with `--optimize-duplicate-calls'.

compiler/purity.m:
	Fix the handling of `foreign_proc' goals. Previously they
	were always assumed to be pure. Now they have the purity
	of the predicate they implement.

compiler/inlining.m:
	Compare the purity of the old and new goals when
	checking whether purity checking needs to be rerun,
	rather than just checking for `promise_pure' markers.

compiler/options.m:
	Re-enable `--optimize-duplicate-calls'.

tests/hard_coded/Mmakefile:
tests/hard_coded/impure_foreign.{m,exp}:
	Test case.
2001-12-16 08:11:18 +00:00

3 lines
4 B
Plaintext