diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-05-07 14:09:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 19:09:58 +0000 |
commit | 89641ef6aae22610cf544f1e7545178ee6418597 (patch) | |
tree | 672e7991bbc1b7d2e1e5abf0a9b4a38c08b5baa2 /src/preprocessing/passes/apply_substs.cpp | |
parent | 50ff9213e6e6d36cea5a745e5c85ecbf1ca1ab62 (diff) |
Simplifications to expand definitions (#6487)
This removes the expandOnly flag from expandDefinitions.
The use of expandOnly = true is equivalent to applying top-level substitutions only, which should be done explicitly via Env::getTopLevelSubstitutions. It updates the trust substitutions utility to distinguish apply vs applyTrusted for convenience for this purpose.
This also breaks several dependencies in e.g. expand definitions module.
Diffstat (limited to 'src/preprocessing/passes/apply_substs.cpp')
-rw-r--r-- | src/preprocessing/passes/apply_substs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preprocessing/passes/apply_substs.cpp b/src/preprocessing/passes/apply_substs.cpp index 20c173316..2e40cbd5b 100644 --- a/src/preprocessing/passes/apply_substs.cpp +++ b/src/preprocessing/passes/apply_substs.cpp @@ -55,7 +55,7 @@ PreprocessingPassResult ApplySubsts::applyInternal( << std::endl; d_preprocContext->spendResource(Resource::PreprocessStep); assertionsToPreprocess->replaceTrusted( - i, tlsm.apply((*assertionsToPreprocess)[i])); + i, tlsm.applyTrusted((*assertionsToPreprocess)[i])); Trace("apply-substs") << " got " << (*assertionsToPreprocess)[i] << std::endl; } |