Files
mercury/tests/hard_coded/trace_goal_env_3.exp
Ondrej Bojar 8cdce11f52 Added support for negation in conditions (run_time and compile_time) for trace
Estimated hours taken: 2

Added support for negation in conditions (run_time and compile_time) for trace
goals.

compiler/mercury_to_mercury.m:
    Output negated conditions.

compiler/ml_code_gen.m:
compiler/pragma_c_gen.m:
    Test for negated conditions at run time.

compiler/prog_data.m:
    Modified type definition for trace_expr/1 to include negation.

compiler/prog_io_goal.m:
    Parsing of negated expressions.

compiler/simplify.m:
    Compile-time evaluation of conditions with negation.

doc/reference_manual.texi:
    Announced negation. Fixed a copy-paste typo in description of run-time
    conditions.

tests/hard_coded/trace_goal_env_3.m:
    Added a simple test for negation.

tests/hard_coded/trace_goal_env_3.exp:
    Expected result if env-vars are not set.

tests/hard_coded/Mmakefile:
    Enabled trace_goal_env_3.

tests/invalid/trace_goal_env.m:
    Added a simple malformed trace goal condition.

tests/invalid/trace_goal_env.err_exp:
    Expected error message.

tests/invalid/Mmakefile:
    Enabled trace_goal_env for C-generating backends only.
2007-02-22 03:50:38 +00:00

2 lines
10 B
Plaintext