|
FAUST compiler
0.9.9.6b8
|
#include <stdio.h>#include <assert.h>#include "tlib.hh"#include "signals.hh"#include "sigprint.hh"#include "ppsig.hh"#include "simplify.hh"#include "normalize.hh"#include "sigorderrules.hh"#include <map>#include <list>#include "mterm.hh"#include "aterm.hh"
Go to the source code of this file.
Functions | |
| Tree | normalizeAddTerm (Tree t) |
| Compute the Add-Normal form of a term t. More... | |
| Tree | normalizeDelay1Term (Tree s) |
| Compute the normal form of a 1-sample delay term s'. More... | |
| Tree | normalizeFixedDelayTerm (Tree s, Tree d) |
| Compute the normal form of a fixed delay term (s). More... | |
Compute the Add-Normal form of a term t.
| t | the term to be normalized |
Definition at line 32 of file normalize.cpp.
References mterm::complexity(), aterm::factorize(), aterm::greatestDivisor(), mterm::isNotZero(), and aterm::normalizedTree().
Referenced by simplification().


Compute the normal form of a 1-sample delay term s'.
The normalisation rules are : 0' -> 0 /// INACTIVATE dec07 bug recursion (k*s)' -> k*s' (s/k)' -> s'/k
| s | the term to be delayed by 1 sample |
Definition at line 59 of file normalize.cpp.
References normalizeFixedDelayTerm(), and tree().
Referenced by simplification().


Compute the normal form of a fixed delay term (s).
The normalisation rules are : s@0 -> s 0 -> 0 (k*s) -> k*(s) (s/k) -> (s)/k (s
) -> s@(n+m) Note that the same rules can't be applied to
| s | the term to be delayed |
| d | the value of the delay |
Definition at line 81 of file normalize.cpp.
References getSigOrder(), isProj(), isSigDiv(), isSigFixDelay(), isSigMul(), isZero(), normalizeFixedDelayTerm(), sigAdd(), sigDiv(), sigFixDelay(), sigMul(), and simplify().
Referenced by normalizeDelay1Term(), normalizeFixedDelayTerm(), and simplification().


1.8.7