summaryrefslogtreecommitdiff
path: root/colm/fsmgraph.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2012-08-24 10:47:57 -0400
committerAdrian Thurston <thurston@complang.org>2012-08-24 10:47:57 -0400
commit3e5afc5867b410102da37100c4dfc7c32ec97efe (patch)
treea4eed2a9fd428814449d51d25d059a35fbe7b255 /colm/fsmgraph.cc
parent51f040823e22e1d7f0de304856d92bbcd4a359da (diff)
downloadcolm-3e5afc5867b410102da37100c4dfc7c32ec97efe.tar.gz
removing old COLM_LOG defines and vars
Diffstat (limited to 'colm/fsmgraph.cc')
-rw-r--r--colm/fsmgraph.cc58
1 files changed, 0 insertions, 58 deletions
diff --git a/colm/fsmgraph.cc b/colm/fsmgraph.cc
index 590d7902..e0f131f9 100644
--- a/colm/fsmgraph.cc
+++ b/colm/fsmgraph.cc
@@ -891,42 +891,6 @@ void FsmGraph::isolateStartState( )
setMisfitAccounting( false );
}
-#if COLM_LOG_CONDS
-void logCondSpace( CondSpace *condSpace )
-{
- if ( condSpace == 0 )
- cerr << "<empty>";
- else {
- for ( CondSet::Iter csi = condSpace->condSet.last(); csi.gtb(); csi-- ) {
- if ( ! csi.last() )
- cerr << ',';
- (*csi)->actionName( cerr );
- }
- }
-}
-
-void logNewExpansion( Expansion *exp )
-{
- cerr << "created expansion:" << endl;
- cerr << " range: " << exp->lowKey.getVal() << " .. " <<
- exp->highKey.getVal() << endl;
-
- cerr << " fromCondSpace: ";
- logCondSpace( exp->fromCondSpace );
- cerr << endl;
- cerr << " fromVals: " << exp->fromVals << endl;
-
- cerr << " toCondSpace: ";
- logCondSpace( exp->toCondSpace );
- cerr << endl;
- cerr << " toValsList: ";
- for ( LongVect::Iter to = exp->toValsList; to.lte(); to++ )
- cerr << " " << *to;
- cerr << endl;
-}
-#endif
-
-
void FsmGraph::findTransExpansions( ExpansionList &expansionList,
FsmState *destState, FsmState *srcState )
{
@@ -948,11 +912,6 @@ void FsmGraph::findTransExpansions( ExpansionList &expansionList,
for ( long targVals = 0; targVals < numTargVals; targVals++ )
expansion->toValsList.append( targVals );
- #ifdef COLM_LOG_CONDS
- if ( colm_log_conds ) {
- logNewExpansion( expansion );
- }
- #endif
expansionList.append( expansion );
}
}
@@ -982,11 +941,6 @@ void FsmGraph::findCondExpInTrans( ExpansionList &expansionList, FsmState *state
expansion->toValsList = toValsList;
expansionList.append( expansion );
- #ifdef COLM_LOG_CONDS
- if ( colm_log_conds ) {
- logNewExpansion( expansion );
- }
- #endif
}
}
}
@@ -1010,13 +964,6 @@ void FsmGraph::findCondExpansions( ExpansionList &expansionList,
long srcOnlyLen = srcOnlyCS.length();
if ( srcOnlyCS.length() > 0 ) {
- #ifdef COLM_LOG_CONDS
- if ( colm_log_conds ) {
- cerr << "there are " << srcOnlyCS.length() << " item(s) that are "
- "only in the srcCS" << endl;
- }
- #endif
-
CondSet mergedCS = destCS;
mergedCS.insert( condCond.s2Tel.trans->condSpace->condSet );
@@ -1317,11 +1264,6 @@ void FsmGraph::findEmbedExpansions( ExpansionList &expansionList,
expansion->fromVals = 0;
expansion->toCondSpace = newStateCond->condSpace;
expansion->toValsList.append( 1 );
- #ifdef COLM_LOG_CONDS
- if ( colm_log_conds ) {
- logNewExpansion( expansion );
- }
- #endif
expansionList.append( expansion );
}
break;