Skip to content

Commit

Permalink
improved error message when rawnormalizer is used with a formula cont…
Browse files Browse the repository at this point in the history
…aining _root_ expressions.
  • Loading branch information
chriswestbrown committed Jul 20, 2024
1 parent 2f3270a commit 3887093
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions interpreter/src/formula/normalize.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class RawNormalizer : public TFPolyFun
RawNormalizer(Normalizer* p) { normp = p; }
void action(TConstObj* p) { res = p; }
void action(TAtomObj* p) { res = normp->normalize(p); }
void action(TExtAtomObj* p) { throw TarskiException("RawNormalizer does not support _root_ expressions."); }
void action(TAndObj* p)
{
// 1: split into two conjunctions - pure atomic formulas, and non-pure atomic formulas
Expand Down
1 change: 1 addition & 0 deletions interpreter/src/shell/einterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,7 @@ class CommSuggestVarOrder : public EICommand
try {
TFormRef F = args[0]->tar()->val;
vector<VarSet> V = getBrownVariableOrder(F);

LisRef res = new LisObj();
for(int i = 0; i < V.size(); i++)
res->push_back(new SymObj(getPolyManagerPtr()->getName(V[i])));
Expand Down

0 comments on commit 3887093

Please sign in to comment.