|
FAUST compiler
0.9.9.6b8
|
#include <stdio.h>#include <assert.h>#include "list.hh"#include "signals.hh"#include "sigtype.hh"#include "recursivness.hh"#include "sigtyperules.hh"#include "sigorderrules.hh"#include "sigprint.hh"#include "ppsig.hh"#include "simplify.hh"#include "num.hh"#include "xtended.hh"#include <map>#include "compatibility.hh"#include "normalize.hh"
Go to the source code of this file.
Functions | |
| static Tree | simplification (Tree sig) |
| static Tree | sigMap (Tree key, tfun f, Tree t) |
| Recursively transform a graph by applying a function f. More... | |
| static Tree | traced_simplification (Tree sig) |
| Tree | simplify (Tree sig) |
| static Tree | sigMapRename (Tree key, Tree env, tfun f, Tree t) |
| Like SigMap, recursively transform a graph by applying a function f. More... | |
| static Tree | docTableConverter (Tree sig) |
| Tree | docTableConvertion (Tree sig) |
Variables | |
| Tree | SIMPLIFIED = tree(symbol("sigSimplifiedProp")) |
| Tree | DOCTABLES = tree(symbol("DocTablesProp")) |
| Converts regular tables into doc tables in order to facilitate the mathematical documentation generation. More... | |
| static Tree | NULLENV = tree(symbol("NullRenameEnv")) |
Definition at line 326 of file simplify.cpp.
References isSigGen(), isSigRDTbl(), isSigTable(), isSigWRTbl(), sigDocAccessTbl(), sigDocConstantTbl(), and sigDocWriteTbl().
Referenced by docTableConvertion().


Definition at line 317 of file simplify.cpp.
References docTableConverter(), and sigMapRename().
Referenced by mapPrepareEqSig().


Recursively transform a graph by applying a function f.
map(f, foo[t1..tn]) = f(foo[map(f,t1)..map(f,tn)])
Definition at line 187 of file simplify.cpp.
References CTree::arity(), CTree::branch(), getProperty(), isNil(), isRec(), nil, CTree::node(), rec(), setProperty(), and tree().
Referenced by simplify().


Like SigMap, recursively transform a graph by applying a function f.
But here recursive trees are also renamed. map(f, foo[t1..tn]) = f(foo[map(f,t1)..map(f,tn)])
Definition at line 229 of file simplify.cpp.
References CTree::arity(), CTree::branch(), getProperty(), isNil(), isRec(), isRef(), nil, CTree::node(), pushEnv(), rec(), ref(), searchEnv(), setProperty(), tree(), and unique().
Referenced by docTableConvertion().


Definition at line 84 of file simplify.cpp.
References CTree::arity(), CTree::branch(), BinOp::compute(), xtended::computeSigOutput(), gBinOpTable, getUserData(), gPowPrim, isDouble(), isInt(), BinOp::isLeftNeutral(), isNum(), isOne(), BinOp::isRightNeutral(), isSigBinOp(), isSigDelay1(), isSigFixDelay(), isSigFloatCast(), isSigIntCast(), isSigSelect2(), isSigSelect3(), isZero(), CTree::node(), normalizeAddTerm(), normalizeDelay1Term(), normalizeFixedDelayTerm(), sigSelect2(), and tree().
Referenced by traced_simplification().


Definition at line 76 of file simplify.cpp.
References sigMap(), and traced_simplification().
Referenced by eval2double(), eval2int(), isBoxNumeric(), mapPrepareEqSig(), normalizeFixedDelayTerm(), numericBoxSimplification(), and ScalarCompiler::prepare().


Definition at line 50 of file simplify.cpp.
References simplification(), and TABBER.
Referenced by simplify().


Converts regular tables into doc tables in order to facilitate the mathematical documentation generation.
Definition at line 311 of file simplify.cpp.
Definition at line 315 of file simplify.cpp.
Definition at line 45 of file simplify.cpp.
1.8.7