$SimplifyDebug¶
Status: Stable
documented, exercised by the test suite and/or worked examples, with no known limitations recorded.
Description¶
$SimplifyDebug
When set to True, Simplify prints one stderr line per transform invocation: /Name/: \<input> -> \<output> [\<ms> ms]. Defaults to False. Useful for diagnosing slow Simplify calls.
Examples (2)¶
Every input below was run against the current Mathilda build and its output recorded.
Basic examples (1)¶
Applications (1)¶
Implementation notes¶
A diagnostic flag (not a builtin), given an OwnValue defaulting to False in
simp_init. When set to True, simp_debug_enabled (read directly off the
OwnValue list to avoid re-evaluation) causes traced_call_unary /
simp_debug_log to emit one stderr line per transform invocation inside the
Simplify search, in the form /<TransformName>/: <input> -> <output> [<ms> ms],
used to diagnose slow Simplify calls and runaway candidate explosion.
- Default
False. When set toTrue,Simplifyprints one line per transform invocation to stderr, in the form/<TransformName>/: <input> -> <output> [<elapsed> ms]. Useful for diagnosing slow or hangingSimplifycalls and runaway candidate-set growth. The value is read directly off theOwnValue, so there is no cost when it isFalse.
Attributes: none registered.
References¶
See also: Simplify
- Source:
src/simp/simp_util.c - Specification:
docs/spec/builtins/simplification.md
Notes & additional examples¶
Notes¶
$SimplifyDebug is a global flag, default False. When set to True,
Simplify prints one stderr line per transform invocation
(/Name/: <input> -> <output> [<ms> ms]), which is useful for diagnosing slow
Simplify calls.