|
FAUST compiler
0.9.9.6b8
|
#include <assert.h>#include <stdlib.h>#include "recursivness.hh"#include "occurences.hh"#include "sigtype.hh"#include "sigtyperules.hh"#include <iostream>
Go to the source code of this file.
Functions | |
| static int | xVariability (int v, int r) |
| Extended Variability with recursiveness indication. | |
| static int | position (Tree env, Tree t, int p) |
| return the position of a signal in the current recursive environment | |
return the position of a signal in the current recursive environment
| env | the current recursive environment of the signal |
| t | signal we want to know the position |
Definition at line 168 of file occurences.cpp.
References hd(), isNil(), and tl().
{
if (isNil(env)) return 0; // was not in the environment
if (hd(env) == t) return p;
else return position (tl(env), t, p+1);
}

| static int xVariability | ( | int | v, |
| int | r | ||
| ) | [static] |
Extended Variability with recursiveness indication.
Definition at line 14 of file occurences.cpp.
References min().
Referenced by Occurences::incOccurences().
{
//cerr << "xVariability (" << v << ", " << r << ")" << endl;
//assert (v < 3); // kKonst=0, kBlock=1, kSamp=2
//assert(r==0 | v==2);
if (r>1) r=1;
return min(3, v + r);
}


1.8.0