summaryrefslogtreecommitdiffstats
path: root/src/aig/kit/kit.h
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2007-07-23 08:01:00 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2007-07-23 08:01:00 -0700
commit64dc240b904adafee78e2a66a1fc31b717f8985f (patch)
tree3632887450b37c4dcac6f6cbac08d42e9512c440 /src/aig/kit/kit.h
parent1647addf5e3ce4f82cc35cd4983bc5f7b9730290 (diff)
downloadabc-64dc240b904adafee78e2a66a1fc31b717f8985f.tar.gz
abc-64dc240b904adafee78e2a66a1fc31b717f8985f.tar.bz2
abc-64dc240b904adafee78e2a66a1fc31b717f8985f.zip
Version abc70723
Diffstat (limited to 'src/aig/kit/kit.h')
-rw-r--r--src/aig/kit/kit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/aig/kit/kit.h b/src/aig/kit/kit.h
index e9a389e0..2f7bbef4 100644
--- a/src/aig/kit/kit.h
+++ b/src/aig/kit/kit.h
@@ -217,6 +217,7 @@ static inline Kit_Node_t * Kit_GraphVar( Kit_Graph_t * pGraph )
static inline int Kit_GraphVarInt( Kit_Graph_t * pGraph ) { assert( Kit_GraphIsVar( pGraph ) ); return Kit_GraphNodeInt( pGraph, Kit_GraphVar(pGraph) ); }
static inline Kit_Node_t * Kit_GraphNodeFanin0( Kit_Graph_t * pGraph, Kit_Node_t * pNode ){ return Kit_GraphNodeIsVar(pGraph, pNode)? NULL : Kit_GraphNode(pGraph, pNode->eEdge0.Node); }
static inline Kit_Node_t * Kit_GraphNodeFanin1( Kit_Graph_t * pGraph, Kit_Node_t * pNode ){ return Kit_GraphNodeIsVar(pGraph, pNode)? NULL : Kit_GraphNode(pGraph, pNode->eEdge1.Node); }
+static inline int Kit_GraphRootLevel( Kit_Graph_t * pGraph ) { return Kit_GraphNode(pGraph, pGraph->eRoot.Node)->Level; }
static inline int Kit_Float2Int( float Val ) { return *((int *)&Val); }
static inline float Kit_Int2Float( int Num ) { return *((float *)&Num); }