亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cuddzddgroup.c

?? 主要進行大規模的電路綜合
?? C
?? 第 1 頁 / 共 3 頁
字號:
/**CFile***********************************************************************  FileName    [cuddZddGroup.c]  PackageName [cudd]  Synopsis    [Functions for ZDD group sifting.]  Description [External procedures included in this file:		<ul>		<li> Cudd_MakeZddTreeNode()		</ul>	Internal procedures included in this file:		<ul>		<li> cuddZddTreeSifting()		</ul>	Static procedures included in this module:		<ul>		<li> zddTreeSiftingAux()		<li> zddCountInternalMtrNodes()		<li> zddReorderChildren()		<li> zddFindNodeHiLo()		<li> zddUniqueCompareGroup()		<li> zddGroupSifting()		<li> zddGroupSiftingAux()		<li> zddGroupSiftingUp()		<li> zddGroupSiftingDown()		<li> zddGroupMove()		<li> zddGroupMoveBackward()		<li> zddGroupSiftingBackward()		<li> zddMergeGroups()		</ul>]  Author      [Fabio Somenzi]  Copyright   [This file was created at the University of Colorado at  Boulder.  The University of Colorado at Boulder makes no warranty  about the suitability of this software for any purpose.  It is  presented on an AS IS basis.]******************************************************************************/#include "util.h"#include "cuddInt.h"/*---------------------------------------------------------------------------*//* Constant declarations                                                     *//*---------------------------------------------------------------------------*//*---------------------------------------------------------------------------*//* Stucture declarations                                                     *//*---------------------------------------------------------------------------*//*---------------------------------------------------------------------------*//* Type declarations                                                         *//*---------------------------------------------------------------------------*//*---------------------------------------------------------------------------*//* Variable declarations                                                     *//*---------------------------------------------------------------------------*/#ifndef lintstatic char rcsid[] DD_UNUSED = "$Id: cuddZddGroup.c,v 1.1.1.1 2003/02/24 22:23:54 wjiang Exp $";#endifstatic	int	*entry;extern	int	zddTotalNumberSwapping;#ifdef DD_STATSstatic  int     extsymmcalls;static  int     extsymm;static  int     secdiffcalls;static  int     secdiff;static  int     secdiffmisfire;#endif#ifdef DD_DEBUGstatic	int	pr = 0;	/* flag to enable printing while debugging */			/* by depositing a 1 into it */#endif/*---------------------------------------------------------------------------*//* Macro declarations                                                        *//*---------------------------------------------------------------------------*//**AutomaticStart*************************************************************//*---------------------------------------------------------------------------*//* Static function prototypes                                                *//*---------------------------------------------------------------------------*/static int zddTreeSiftingAux ARGS((DdManager *table, MtrNode *treenode, Cudd_ReorderingType method));#ifdef DD_STATSstatic int zddCountInternalMtrNodes ARGS((DdManager *table, MtrNode *treenode));#endifstatic int zddReorderChildren ARGS((DdManager *table, MtrNode *treenode, Cudd_ReorderingType method));static void zddFindNodeHiLo ARGS((DdManager *table, MtrNode *treenode, int *lower, int *upper));static int zddUniqueCompareGroup ARGS((int *ptrX, int *ptrY));static int zddGroupSifting ARGS((DdManager *table, int lower, int upper));static int zddGroupSiftingAux ARGS((DdManager *table, int x, int xLow, int xHigh));static int zddGroupSiftingUp ARGS((DdManager *table, int y, int xLow, Move **moves));static int zddGroupSiftingDown ARGS((DdManager *table, int x, int xHigh, Move **moves));static int zddGroupMove ARGS((DdManager *table, int x, int y, Move **moves));static int zddGroupMoveBackward ARGS((DdManager *table, int x, int y));static int zddGroupSiftingBackward ARGS((DdManager *table, Move *moves, int size));static void zddMergeGroups ARGS((DdManager *table, MtrNode *treenode, int low, int high));/**AutomaticEnd***************************************************************//*---------------------------------------------------------------------------*//* Definition of exported functions                                          *//*---------------------------------------------------------------------------*//**Function********************************************************************  Synopsis    [Creates a new ZDD variable group.]  Description [Creates a new ZDD variable group. The group starts at  variable and contains size variables. The parameter low is the index  of the first variable. If the variable already exists, its current  position in the order is known to the manager. If the variable does  not exist yet, the position is assumed to be the same as the index.  The group tree is created if it does not exist yet.  Returns a pointer to the group if successful; NULL otherwise.]  SideEffects [The ZDD variable tree is changed.]  SeeAlso     [Cudd_MakeTreeNode]******************************************************************************/MtrNode *Cudd_MakeZddTreeNode(  DdManager * dd /* manager */,  unsigned int  low /* index of the first group variable */,  unsigned int  size /* number of variables in the group */,  unsigned int  type /* MTR_DEFAULT or MTR_FIXED */){    MtrNode *group;    MtrNode *tree;    unsigned int level;    /* If the variable does not exist yet, the position is assumed to be    ** the same as the index. Therefore, applications that rely on    ** Cudd_bddNewVarAtLevel or Cudd_addNewVarAtLevel to create new    ** variables have to create the variables before they group them.    */    level = (low < (unsigned int) dd->sizeZ) ? dd->permZ[low] : low;    if (level + size - 1> (int) MTR_MAXHIGH)	return(NULL);    /* If the tree does not exist yet, create it. */    tree = dd->treeZ;    if (tree == NULL) {	dd->treeZ = tree = Mtr_InitGroupTree(0, dd->sizeZ);	if (tree == NULL)	    return(NULL);	tree->index = dd->invpermZ[0];    }    /* Extend the upper bound of the tree if necessary. This allows the    ** application to create groups even before the variables are created.    */    tree->size = ddMax(tree->size, level + size);    /* Create the group. */    group = Mtr_MakeGroup(tree, level, size, type);    if (group == NULL)	return(NULL);    /* Initialize the index field to the index of the variable currently    ** in position low. This field will be updated by the reordering    ** procedure to provide a handle to the group once it has been moved.    */    group->index = (MtrHalfWord) low;    return(group);} /* end of Cudd_MakeZddTreeNode *//*---------------------------------------------------------------------------*//* Definition of internal functions                                          *//*---------------------------------------------------------------------------*//**Function********************************************************************  Synopsis    [Tree sifting algorithm for ZDDs.]  Description [Tree sifting algorithm for ZDDs. Assumes that a tree  representing a group hierarchy is passed as a parameter. It then  reorders each group in postorder fashion by calling  zddTreeSiftingAux.  Assumes that no dead nodes are present.  Returns  1 if successful; 0 otherwise.]  SideEffects [None]******************************************************************************/intcuddZddTreeSifting(  DdManager * table /* DD table */,  Cudd_ReorderingType method /* reordering method for the groups of leaves */){    int i;    int nvars;    int result;    int tempTree;    /* If no tree is provided we create a temporary one in which all    ** variables are in a single group. After reordering this tree is    ** destroyed.    */    tempTree = table->treeZ == NULL;    if (tempTree) {	table->treeZ = Mtr_InitGroupTree(0,table->sizeZ);	table->treeZ->index = table->invpermZ[0];    }    nvars = table->sizeZ;#ifdef DD_DEBUG    if (pr > 0 && !tempTree)	(void) fprintf(table->out,"cuddZddTreeSifting:");    Mtr_PrintGroups(table->treeZ,pr <= 0);#endif#if 0    /* Debugging code. */    if (table->tree && table->treeZ) {	(void) fprintf(table->out,"\n");	Mtr_PrintGroups(table->tree, 0);	cuddPrintVarGroups(table,table->tree,0,0);	for (i = 0; i < table->size; i++) {	    (void) fprintf(table->out,"%s%d",			   (i == 0) ? "" : ",", table->invperm[i]);	}	(void) fprintf(table->out,"\n");	for (i = 0; i < table->size; i++) {	    (void) fprintf(table->out,"%s%d",			   (i == 0) ? "" : ",", table->perm[i]);	}	(void) fprintf(table->out,"\n\n");	Mtr_PrintGroups(table->treeZ,0);	cuddPrintVarGroups(table,table->treeZ,1,0);	for (i = 0; i < table->sizeZ; i++) {	    (void) fprintf(table->out,"%s%d",			   (i == 0) ? "" : ",", table->invpermZ[i]);	}	(void) fprintf(table->out,"\n");	for (i = 0; i < table->sizeZ; i++) {	    (void) fprintf(table->out,"%s%d",			   (i == 0) ? "" : ",", table->permZ[i]);	}	(void) fprintf(table->out,"\n");    }    /* End of debugging code. */#endif#ifdef DD_STATS    extsymmcalls = 0;    extsymm = 0;    secdiffcalls = 0;    secdiff = 0;    secdiffmisfire = 0;    (void) fprintf(table->out,"\n");    if (!tempTree)	(void) fprintf(table->out,"#:IM_NODES  %8d: group tree nodes\n",		       zddCountInternalMtrNodes(table,table->treeZ));#endif    /* Initialize the group of each subtable to itself. Initially    ** there are no groups. Groups are created according to the tree    ** structure in postorder fashion.    */    for (i = 0; i < nvars; i++)        table->subtableZ[i].next = i;    /* Reorder. */    result = zddTreeSiftingAux(table, table->treeZ, method);#ifdef DD_STATS		/* print stats */    if (!tempTree && method == CUDD_REORDER_GROUP_SIFT &&	(table->groupcheck == CUDD_GROUP_CHECK7 ||	 table->groupcheck == CUDD_GROUP_CHECK5)) {	(void) fprintf(table->out,"\nextsymmcalls = %d\n",extsymmcalls);	(void) fprintf(table->out,"extsymm = %d",extsymm);    }    if (!tempTree && method == CUDD_REORDER_GROUP_SIFT &&	table->groupcheck == CUDD_GROUP_CHECK7) {	(void) fprintf(table->out,"\nsecdiffcalls = %d\n",secdiffcalls);	(void) fprintf(table->out,"secdiff = %d\n",secdiff);	(void) fprintf(table->out,"secdiffmisfire = %d",secdiffmisfire);    }#endif    if (tempTree)	Cudd_FreeZddTree(table);    return(result);} /* end of cuddZddTreeSifting *//*---------------------------------------------------------------------------*//* Definition of static functions                                            *//*---------------------------------------------------------------------------*//**Function********************************************************************  Synopsis    [Visits the group tree and reorders each group.]  Description [Recursively visits the group tree and reorders each  group in postorder fashion.  Returns 1 if successful; 0 otherwise.]  SideEffects [None]******************************************************************************/static intzddTreeSiftingAux(  DdManager * table,  MtrNode * treenode,  Cudd_ReorderingType method){    MtrNode  *auxnode;    int res;#ifdef DD_DEBUG    Mtr_PrintGroups(treenode,1);#endif    auxnode = treenode;    while (auxnode != NULL) {	if (auxnode->child != NULL) {	    if (!zddTreeSiftingAux(table, auxnode->child, method))		return(0);	    res = zddReorderChildren(table, auxnode, CUDD_REORDER_GROUP_SIFT);	    if (res == 0)		return(0);	} else if (auxnode->size > 1) {	    if (!zddReorderChildren(table, auxnode, method))		return(0);	}	auxnode = auxnode->younger;    }    return(1);} /* end of zddTreeSiftingAux */#ifdef DD_STATS/**Function********************************************************************  Synopsis    [Counts the number of internal nodes of the group tree.]  Description [Counts the number of internal nodes of the group tree.  Returns the count.]  SideEffects [None]******************************************************************************/static intzddCountInternalMtrNodes(  DdManager * table,  MtrNode * treenode){    MtrNode *auxnode;    int     count,nodeCount;    nodeCount = 0;    auxnode = treenode;    while (auxnode != NULL) {	if (!(MTR_TEST(auxnode,MTR_TERMINAL))) {	    nodeCount++;	    count = zddCountInternalMtrNodes(table,auxnode->child);	    nodeCount += count;	}	auxnode = auxnode->younger;    }    return(nodeCount);} /* end of zddCountInternalMtrNodes */#endif/**Function********************************************************************  Synopsis    [Reorders the children of a group tree node according to  the options.]  Description [Reorders the children of a group tree node according to  the options. After reordering puts all the variables in the group  and/or its descendents in a single group. This allows hierarchical  reordering.  If the variables in the group do not exist yet, simply  does nothing. Returns 1 if successful; 0 otherwise.]  SideEffects [None]******************************************************************************/static intzddReorderChildren(  DdManager * table,  MtrNode * treenode,  Cudd_ReorderingType method){    int lower;    int upper;    int result;    unsigned int initialSize;    zddFindNodeHiLo(table,treenode,&lower,&upper);    /* If upper == -1 these variables do not exist yet. */    if (upper == -1)	return(1);    if (treenode->flags == MTR_FIXED) {	result = 1;    } else {#ifdef DD_STATS	(void) fprintf(table->out," ");#endif	switch (method) {	case CUDD_REORDER_RANDOM:	case CUDD_REORDER_RANDOM_PIVOT:	    result = cuddZddSwapping(table,lower,upper,method);	    break;	case CUDD_REORDER_SIFT:	    result = cuddZddSifting(table,lower,upper);	    break;	case CUDD_REORDER_SIFT_CONVERGE:	    do {		initialSize = table->keysZ;		result = cuddZddSifting(table,lower,upper);		if (initialSize <= table->keysZ)		    break;#ifdef DD_STATS		else		    (void) fprintf(table->out,"\n");#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人高清在线视频| 亚瑟在线精品视频| 中文字幕佐山爱一区二区免费| 国产精品天天摸av网| 亚洲国产中文字幕在线视频综合| 天堂av在线一区| 国产一区二区剧情av在线| 91视视频在线观看入口直接观看www| 色偷偷久久人人79超碰人人澡| 91一区二区在线| 欧美一级片在线观看| 欧美成人性福生活免费看| 国产欧美1区2区3区| 亚洲18女电影在线观看| 国产成人综合亚洲91猫咪| 日韩欧美二区三区| 日日嗨av一区二区三区四区| 色综合久久中文字幕综合网| 国产日韩精品久久久| 国内久久精品视频| 欧美电视剧在线观看完整版| 五月天欧美精品| 91丨porny丨蝌蚪视频| 中文字幕第一页久久| 国产精品黄色在线观看| 国产精品一区在线观看你懂的| 6080国产精品一区二区| 午夜亚洲国产au精品一区二区| 91免费在线播放| 亚洲免费大片在线观看| 99re成人在线| 亚洲精品视频在线看| 色狠狠一区二区| 一区二区免费看| 欧美日韩免费不卡视频一区二区三区| 亚洲女与黑人做爰| 色香蕉成人二区免费| 亚洲影视在线观看| 欧美日韩一区三区四区| 亚洲一区二三区| 91精品国产综合久久久久久漫画 | 成人在线一区二区三区| 国产精品天干天干在线综合| 波多野结衣一区二区三区| 国产精品国产三级国产普通话蜜臀| 国产99久久久国产精品免费看| 欧美激情综合在线| 99精品欧美一区二区三区小说| 成人免费一区二区三区在线观看 | 国产成人av影院| 国产精品福利一区二区| 色欧美88888久久久久久影院| 亚洲一二三四区| 欧美高清一级片在线| 免费成人你懂的| 久久久久亚洲蜜桃| 色综合色狠狠综合色| 日精品一区二区三区| 精品三级在线看| 成人毛片在线观看| 亚洲国产日日夜夜| 久久久青草青青国产亚洲免观| 成人激情图片网| 亚洲欧美日韩小说| 日韩欧美国产一区二区在线播放| 国产精选一区二区三区| 一区二区三区欧美久久| 精品奇米国产一区二区三区| 99精品久久免费看蜜臀剧情介绍| 日精品一区二区| 国产精品免费久久| 538在线一区二区精品国产| 国产成a人无v码亚洲福利| 一区二区成人在线| 久久久精品黄色| 欧美日韩www| 92精品国产成人观看免费| 视频一区国产视频| 亚洲色图欧洲色图| 久久伊99综合婷婷久久伊| 色系网站成人免费| 国产成人av影院| 美腿丝袜亚洲一区| 亚洲色图视频免费播放| 久久中文字幕电影| 欧美在线你懂的| 成人激情免费网站| 国产麻豆一精品一av一免费 | 成人免费在线视频观看| 精品久久久久久久久久久久久久久| 在线观看网站黄不卡| 国产成人免费视频| 久久疯狂做爰流白浆xx| 午夜精品免费在线| 一区二区免费在线播放| 国产精品久久福利| 欧美韩国日本不卡| 久久精品这里都是精品| 日韩一区二区免费在线电影| 欧美综合在线视频| 欧美伊人久久大香线蕉综合69| 不卡视频一二三四| 成人18视频日本| 国产99久久精品| 成人小视频在线| 成人午夜电影小说| 国产91丝袜在线观看| 国产一区二区三区免费| 轻轻草成人在线| 亚洲午夜一区二区| 亚洲视频在线一区二区| 亚洲欧美日韩系列| 国产精品免费视频一区| 久久精品网站免费观看| 91精品国产全国免费观看| 国产成人午夜精品影院观看视频| 激情综合网av| 美女网站一区二区| 青青草原综合久久大伊人精品优势 | 久久精品国产网站| 亚洲精品菠萝久久久久久久| 亚洲视频小说图片| 国产精品欧美精品| 久久精品一区二区三区不卡| 精品久久久久久久一区二区蜜臀| 91麻豆精品国产91久久久| 91成人在线精品| 91精品在线麻豆| 欧美一卡二卡三卡| 欧美日韩国产另类一区| 欧美另类一区二区三区| 欧美酷刑日本凌虐凌虐| 日韩欧美视频一区| 精品久久久久久最新网址| 欧美成人国产一区二区| 精品日本一线二线三线不卡| 久久综合色婷婷| 精品少妇一区二区三区| 26uuu国产电影一区二区| 久久久久久久久蜜桃| 欧美高清在线一区| 国产精品美女久久久久久久久久久| 国产精品午夜电影| 亚洲色图19p| 亚洲黄色性网站| 亚洲超丰满肉感bbw| 日本在线不卡一区| 午夜电影网一区| 丁香六月久久综合狠狠色| 99久久精品免费看国产| 欧美亚洲愉拍一区二区| 欧美二区三区91| 久久午夜羞羞影院免费观看| 一区二区三区精品视频在线| 日韩精品一二三区| 精久久久久久久久久久| 成人国产精品免费| 欧美在线看片a免费观看| 久久综合狠狠综合| 亚洲美女在线一区| 日韩电影一区二区三区| 国产盗摄女厕一区二区三区| 97精品久久久午夜一区二区三区| 日韩一区二区免费在线电影| 国产色一区二区| 一区二区三区色| 不卡av在线免费观看| 久草这里只有精品视频| 国产.欧美.日韩| 色av综合在线| 欧美色涩在线第一页| 久久色中文字幕| 亚洲午夜久久久久久久久电影网| 污片在线观看一区二区 | 夜夜精品视频一区二区| 极品美女销魂一区二区三区 | 一区二区三区欧美久久| 国产在线国偷精品免费看| 北条麻妃国产九九精品视频| 欧美成人性福生活免费看| 一区二区在线观看免费| 国产丶欧美丶日本不卡视频| 欧美年轻男男videosbes| 久久综合av免费| 亚洲成av人片一区二区三区| 成人一区二区在线观看| 91精品国产福利| 一区二区欧美国产| 91色.com| 日本一区二区三区高清不卡| 日精品一区二区三区| aaa欧美日韩| 精品国产精品网麻豆系列| 亚洲国产精品久久久久婷婷884 | 午夜精品久久一牛影视| 97久久久精品综合88久久| 久久久影视传媒| 国产精品久久久久aaaa| 99精品欧美一区二区蜜桃免费| 久久久久久久久久久久久夜|