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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? cuddzddgroup.c

?? 主要進(jìn)行大規(guī)模的電路綜合
?? 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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
岛国av在线一区| 在线视频一区二区三| 亚洲黄网站在线观看| 日韩欧美成人激情| 91在线视频播放地址| 久久er99热精品一区二区| 国产精品污网站| 日韩欧美国产综合| 欧美在线free| 国产盗摄精品一区二区三区在线| 午夜不卡在线视频| 国产精品女主播av| 欧美成va人片在线观看| 在线观看国产日韩| 成人在线视频一区| 狠狠色丁香婷婷综合| 日日骚欧美日韩| 亚洲麻豆国产自偷在线| 国产视频一区在线播放| 欧美刺激脚交jootjob| 欧美视频日韩视频在线观看| 成人激情校园春色| 国产福利精品一区| 极品美女销魂一区二区三区免费| 午夜精品免费在线| 亚洲黄色免费网站| 亚洲人成人一区二区在线观看| 久久久亚洲欧洲日产国码αv| 欧美哺乳videos| 欧美疯狂做受xxxx富婆| 欧美日韩在线精品一区二区三区激情| 972aa.com艺术欧美| zzijzzij亚洲日本少妇熟睡| 国产成人免费视频网站高清观看视频| 日韩精品久久理论片| 天堂久久久久va久久久久| 亚洲男帅同性gay1069| 国产精品不卡在线| 亚洲四区在线观看| 亚洲女同一区二区| 亚洲精品日韩一| 一区二区三区精品视频在线| 亚洲人成小说网站色在线| 亚洲欧美日韩小说| 亚洲制服丝袜在线| 亚洲va天堂va国产va久| 午夜欧美在线一二页| 男女男精品网站| 久久国产成人午夜av影院| 久久国产精品99久久久久久老狼| 精油按摩中文字幕久久| 国产经典欧美精品| 99麻豆久久久国产精品免费| 99久久久国产精品| 91极品视觉盛宴| 欧美日韩大陆在线| 日韩一本二本av| 精品99一区二区三区| 国产日产精品一区| 国产精品第四页| 亚洲va欧美va人人爽午夜| 美腿丝袜亚洲综合| 丁香婷婷综合色啪| 97超碰欧美中文字幕| 欧美区在线观看| 久久精品水蜜桃av综合天堂| 亚洲婷婷在线视频| 天堂久久久久va久久久久| 激情国产一区二区| av福利精品导航| 欧美理论电影在线| xnxx国产精品| 亚洲麻豆国产自偷在线| 日本女人一区二区三区| 国产精品一区二区三区四区| www.欧美.com| 337p亚洲精品色噜噜噜| 国产精品区一区二区三区| 亚洲午夜成aⅴ人片| 久久99这里只有精品| 99精品国产91久久久久久| 欧美日韩成人激情| 欧美—级在线免费片| 亚洲午夜日本在线观看| 韩国在线一区二区| 在线免费观看日本欧美| 久久综合久久综合九色| 亚洲色图视频免费播放| 老色鬼精品视频在线观看播放| 成人午夜视频网站| 欧美一区午夜视频在线观看 | 91在线你懂得| 日韩一区二区三区视频| 国产精品高潮呻吟| 国内成人精品2018免费看| 99视频有精品| 精品久久一区二区三区| 亚洲综合偷拍欧美一区色| 国产一区二区免费在线| 欧美日韩中字一区| 国产精品国产三级国产普通话99 | 亚洲成人黄色影院| 成人动漫在线一区| 欧美v日韩v国产v| 亚洲最色的网站| www.亚洲人| 久久久蜜桃精品| 青椒成人免费视频| 欧美色大人视频| 亚洲天堂久久久久久久| 成人一区二区三区| 欧美va天堂va视频va在线| 亚洲国产综合91精品麻豆| 成人午夜电影网站| 久久综合九色欧美综合狠狠| 天天亚洲美女在线视频| 色狠狠桃花综合| 欧美国产视频在线| 国内成+人亚洲+欧美+综合在线 | 99热这里都是精品| 国产欧美视频一区二区三区| 精品在线播放午夜| 日韩欧美你懂的| 日韩激情av在线| 欧美日韩激情一区二区| 亚洲一区在线观看免费| 91福利在线观看| 亚洲精品乱码久久久久| 色综合咪咪久久| 樱桃视频在线观看一区| 色先锋资源久久综合| 最新国产精品久久精品| 成人精品在线视频观看| 国产精品水嫩水嫩| 国产成人亚洲综合a∨婷婷| 国产亚洲成aⅴ人片在线观看 | 日日摸夜夜添夜夜添国产精品| 欧美亚洲图片小说| 亚洲1区2区3区视频| 欧美日韩视频在线一区二区| 亚洲午夜久久久久| 69堂成人精品免费视频| 日韩电影在线观看电影| 91精品国产色综合久久久蜜香臀| 日韩电影在线一区二区| 日韩欧美在线综合网| 久久国产精品第一页| 2023国产精品| 国产.欧美.日韩| 国产精品美日韩| 91搞黄在线观看| 五月天久久比比资源色| 欧美大胆人体bbbb| 国产另类ts人妖一区二区| 欧美国产日韩a欧美在线观看 | 日韩免费视频一区| 国产精品一区二区三区乱码| 中文字幕精品—区二区四季| 91久久精品一区二区三区| 亚洲成人777| 精品成a人在线观看| av不卡免费电影| 亚洲第一会所有码转帖| 日韩美女天天操| 99久久99精品久久久久久| 亚洲一区中文在线| 精品av久久707| 91丨porny丨国产| 五月天视频一区| 久久久久国产精品麻豆ai换脸 | 91精品欧美一区二区三区综合在| 秋霞电影一区二区| 国产精品久久久久桃色tv| 欧美性生活久久| 久久99精品久久久久久久久久久久 | 亚洲国产wwwccc36天堂| 日韩一区二区免费在线观看| 国产成人av一区二区三区在线| 亚洲天堂成人网| 日韩一级黄色片| 91麻豆国产精品久久| 日本vs亚洲vs韩国一区三区 | 制服视频三区第一页精品| 国产成人精品亚洲日本在线桃色| 亚洲裸体在线观看| 日韩欧美成人一区| 色久综合一二码| 国产91色综合久久免费分享| 亚洲综合一区二区| 欧美激情一区三区| 欧美日韩精品三区| 高清国产午夜精品久久久久久| 亚洲主播在线播放| 国产欧美日韩综合精品一区二区| 精品视频色一区| 成+人+亚洲+综合天堂| 免费欧美日韩国产三级电影| 亚洲色图欧美在线| 久久免费的精品国产v∧| 欧美日本乱大交xxxxx|