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

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

?? instantiateiv.c

?? intel ipp4.1性能庫的一些例子。
?? C
?? 第 1 頁 / 共 2 頁
字號:
/********************************************************************* * File: instantiateIV.c * * Description: routines that perform the final instantiation  * *                        - collect relevant facts and adjust ATOMs to them * *                        - create BitMap representation of domain * * Author: Joerg Hoffmann 1999 * *********************************************************************/ /********************************************************************* * (C) Copyright 1998 Albert Ludwigs University Freiburg *     Institute of Computer Science * * All rights reserved. Use of this software is permitted for  * non-commercial research purposes, and it may be copied only  * for that use.  All copies must include this copyright message. * This software is made available AS IS, and neither the authors * nor the  Albert Ludwigs University Freiburg make any warranty * about the software or its performance.  *********************************************************************//********************************************************************* * * one thing that I'd like to say about the instantiation code is this: * *      it might look terrible to have four big files of C code just *      to instantiate the operators, and in fact, it is. * *      on the other hand, this is only the result of the terrible *      things that the domain designer is allowed to define in  *      full scale PDDL. * *      though the code produces a very tight domain representation *      in all cases, see Technical Report 122  *      "Handling of Inertia in a Planning System" on the IPP homepage, *      there are quite some cases where it could be made far more *      efficient. At the very least, if one is facing a simple STRIPS *      domain, it's better to skip the whole thing and use a specialised *      algorithm which will be faster than this code by factors in the order *      of hundreds... * **********************************************************************/#include "ipp.h"#include "output.h"#include "utilities.h"#include "memory.h"#include "pddl.h"#include "instantiateI.h"#include "instantiateII.h"#include "instantiateIII.h"#include "instantiateIV.h" /* ------------------------------ COLLECT RELEVANT FACTS ----------------- *//* a bit INEFFICIENT: all but lindex are 1/0 decisions, so it would be sufficient * to use BitVectors here. Not a big deal, though, I guess, as memory is freed * afterwards anyway. */int_pointer lpos[MAX_PREDICATES_TABLE];int_pointer lneg[MAX_PREDICATES_TABLE];int_pointer luse[MAX_PREDICATES_TABLE];int_pointer lindex[MAX_PREDICATES_TABLE];void collect_relevant_facts( void ){  int i, j, size;  CodeOperator *oo;  CodeNode *n;  for ( i=0; i<gpredicates_table_size; i++ ) {    size = 1;    for ( j=0; j<garity[i]; j++ ) {      size *= gconstants_table_size;    }    lpos[i] = ( int_pointer ) calloc( size, sizeof( int ) );    lneg[i] = ( int_pointer ) calloc( size, sizeof( int ) );    luse[i] = ( int_pointer ) calloc( size, sizeof( int ) );    lindex[i] = ( int_pointer ) calloc( size, sizeof( int ) );    for ( j=0; j<size; j++ ) {      lpos[i][j] = 0;      lneg[i][j] = 0;      luse[i][j] = 0;      lindex[i][j] = -1;    }  }  if ( gcode_initial_state ) {    for ( n = gcode_initial_state->sons; n; n=n->next ) {      lpos[n->predicate][pos_neg_use_index_adress( n->predicate, n->arguments )] = 1;    }  }  for ( oo = ginst_code_operators; oo; oo=oo->next ) {    if ( oo->conditionals ) {      /* ops come from multiplying without clean up, so effects can be       * empty here       */      for ( n = oo->conditionals->sons; n; n = n->next ) {	make_pos_neg_use_index_entries( n->sons->next );      }    }  }  /* now the relevant atoms are exactly those which   * have a one at their adress in both lpos[] and lneg[] table.   * these atoms have their fact index set in the lindex[]   * table (at the appropriate adress), and, for debugging   * reasons, their predicate and arguments are stored    * at their index in grelevant_facts[] table.   */  if ( gcmd_line.display_info == 7 ) {    printf("\nselected the following facts as relevant:\n");    for ( i=0; i<gnum_relevant_facts; i++ ) {      printf("\n%d: ", i);      print_fact( grelevant_facts[i]->predicate, grelevant_facts[i]->arguments );    }    printf("\ntotal number of relevant facts: %d\n\n", gnum_relevant_facts);  }  set_relevants_in_condition( &gcode_initial_state );  simplify_condition_CodeNode( &gcode_initial_state, FALSE, FALSE );  set_relevants_in_condition( &gcode_goal_state );  detect_tautologies_in_condition_CodeNode( &gcode_goal_state, FALSE );  simplify_condition_CodeNode( &gcode_goal_state, FALSE, TRUE );  if ( !gcode_goal_state ||       gcode_goal_state->connective == TRU ) {    times( &gend );    gtotal_time += ( float ) ( ( gend.tms_utime - gstart.tms_utime 				 + gend.tms_stime - gstart.tms_stime ) / 100.0 );    printf("\n\n\nipp: goal can be simplified to TRUE. no plan needed\n");    printf("\nelapsed time: %7.2f seconds\n\n", gtotal_time);    exit( 1 );  }  if ( gcode_goal_state->connective == FAL ) {    times( &gend );    gtotal_time += ( float ) ( ( gend.tms_utime - gstart.tms_utime 				 + gend.tms_stime - gstart.tms_stime ) / 100.0 );    printf("\n\n\nipp: goal can be simplified to FALSE. no plan will solve it\n");    printf("\nelapsed time: %7.2f seconds\n\n", gtotal_time);    exit( 1 );  }   for ( oo = ginst_code_operators; oo; oo=oo->next ) {    set_relevants_in_condition( &(oo->preconds) );    if ( oo->conditionals ) {      for ( n = oo->conditionals->sons; n; n = n->next ) {	set_relevants_in_condition( &(n->sons) );	set_relevants_in_effect( &(n->sons->next) );      }    }  }  for ( i=0; i<gpredicates_table_size; i++ ) {    free ( lpos[i] );    free ( lneg[i] );    free ( luse[i] );    free ( lindex[i] );  }  gft_vector_length = ( ( int ) gnum_relevant_facts / gcword_size );  if ( ( gnum_relevant_facts % gcword_size ) > 0 ) gft_vector_length++;}void set_relevants_in_condition( CodeNode **n ){  int adr;  CodeNode *i;  if ( !(*n) ) {    return;  }  if ( (*n)->connective == ATOM ) {    if ( (*n)->predicate == -1 ) {      printf("\neq predicate in fully instantiated formula! ERROR\n\n");      exit( 1 );    }    adr = pos_neg_use_index_adress( (*n)->predicate, (*n)->arguments );    if ( !lpos[(*n)->predicate][adr] ) {      if ( gcmd_line.display_info == 102 ) {	printf("\ndetected irrelevant (only negative) fact: ");	print_fact( (*n)->predicate, (*n)->arguments );      }      (*n)->connective = FAL;      free_CodeNode( (*n)->sons );      (*n)->sons = NULL;      return;    }    if ( !lneg[(*n)->predicate][adr] ) {      if ( gcmd_line.display_info == 102 ) {	printf("\ndetected irrelevant (only positive) fact: ");	print_fact( (*n)->predicate, (*n)->arguments );      }      (*n)->connective = TRU;      free_CodeNode( (*n)->sons );      (*n)->sons = NULL;      return;    }    /* fact is relevant;     * store it's index, for simplicity into (*n)->var:     * at this point, we don't need this int anymore     */    (*n)->var = lindex[(*n)->predicate][adr];    return;  }  if ( (*n)->connective == NOT ) {    set_relevants_in_condition( &((*n)->sons) );    return;  }  if ( (*n)->connective == AND ||       (*n)->connective == OR ) {    for ( i = (*n)->sons; i; i=i->next ) {      set_relevants_in_condition( &i );    }    return;  }  if ( (*n)->connective != TRU &&       (*n)->connective != FAL ) {    printf("\nrelevants shouldn't get here: non ATOM,NOT,AND,OR,TRU,FAL %d in condition\n\n",	   (*n)->connective);    exit( 1 );  }}void set_relevants_in_effect( CodeNode **n ){  CodeNode *i;  int adr;  for ( i = (*n)->sons; i; i = i->next ) {    if ( i->connective == NOT ) {      adr = pos_neg_use_index_adress( i->sons->predicate, i->sons->arguments );      if ( !luse[i->sons->predicate][adr] ) {	i->sons->var = -1;	continue;      }      i->sons->var = lindex[i->sons->predicate][adr];      continue;    }    adr = pos_neg_use_index_adress( i->predicate, i->arguments );    i->var = lindex[i->predicate][adr];  }}int pos_neg_use_index_adress( int predicate, ArgArray arguments ){  int r = 0, b = 1, i;  for ( i=garity[predicate]-1; i>-1; i-- ) {    r += b * arguments[i];    b *= gconstants_table_size;    /* NOTE: we could use less space here by relying on the type     *       defined for argument i of predicate      */  }  return r;}void make_pos_neg_use_index_entries( CodeNode *n ){  int adr;  CodeNode *nn;  RelevantFact *tmp;  for ( nn = n->sons; nn; nn=nn->next ) {        if ( nn->connective == NOT ) {      adr = pos_neg_use_index_adress( nn->sons->predicate, nn->sons->arguments );      lneg[nn->sons->predicate][adr] = 1;      if ( lpos[nn->sons->predicate][adr] &&	   !luse[nn->sons->predicate][adr] ) {	if ( gnum_relevant_facts == MAX_RELEVANT_FACTS ) {	  printf("\nincrease MAX_RELEVANT_FACTS! (current value: %d)\n\n",		 MAX_RELEVANT_FACTS);	  exit( 1 );	}	/* new relevant predicate!	 *	 * here, we can have pos[] several times. to make sure each fact	 * is made relevant only once, we need use - information.	 *	 * NOTE: the facts that get here are exactly the initials that can be	 *       deleted	 */	luse[nn->sons->predicate][adr] = 1;	lindex[nn->sons->predicate][adr] = gnum_relevant_facts;	tmp = new_RelevantFact( nn->sons );	grelevant_facts[gnum_relevant_facts++] = tmp;      }    } else {      adr = pos_neg_use_index_adress( nn->predicate, nn->arguments );      if ( !lpos[nn->predicate][adr] ) {	if ( gnum_relevant_facts == MAX_RELEVANT_FACTS ) {	  printf("\nincrease MAX_RELEVANT_FACTS! (current value: %d)\n\n",		 MAX_RELEVANT_FACTS);	  exit( 1 );	}	/* new added fact, not in initial --> relevant!	 *	 * as relevant facts all have pos[] set, we can have this only	 * once per fact.	 */	lpos[nn->predicate][adr] = 1;	lneg[nn->predicate][adr] = 1;	luse[nn->predicate][adr] = 1;	lindex[nn->predicate][adr] = gnum_relevant_facts;	tmp = new_RelevantFact( nn );	grelevant_facts[gnum_relevant_facts++] = tmp;      }    }  }}/* ---------------------  GENERATE BITMAP REPRESENTATION   ----------------- */void generate_bitmap_representation( void ){  CodeOperator *i, *j;  generate_ini_goal_bitmap_representation();  i = ginst_code_operators;  while ( i ) {    generate_BitOperators( i );    j = i;    i = i->next;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区二区三区视频 | 欧美三电影在线| 国产一区 二区 三区一级| 免费欧美在线视频| 蜜桃视频第一区免费观看| 日韩av一级电影| 久久精品国产一区二区三| 男男gaygay亚洲| 精品亚洲免费视频| 国产69精品久久777的优势| 国产在线播放一区| 成人一区二区视频| 91在线观看美女| 欧美色综合网站| 日韩视频免费观看高清在线视频| 555夜色666亚洲国产免| 欧美一区二区三区免费视频| 日韩午夜在线影院| 国产日韩欧美制服另类| 国产精品理论在线观看| 亚洲精品伦理在线| 日韩电影免费一区| 激情综合色播五月| 国产69精品久久777的优势| 99精品一区二区| 88在线观看91蜜桃国自产| 欧美va亚洲va国产综合| 中文字幕一区二区三中文字幕| 亚洲黄网站在线观看| 九色综合狠狠综合久久| 国产不卡在线播放| 欧美日韩亚洲综合| 久久九九久精品国产免费直播| 中文字幕av一区 二区| 亚洲精品大片www| 久久精品国产网站| 99久久精品久久久久久清纯| 欧美日韩国产免费一区二区 | 亚洲人成电影网站色mp4| 亚洲一级二级三级| 国产另类ts人妖一区二区| 色香色香欲天天天影视综合网| 717成人午夜免费福利电影| 久久久久88色偷偷免费| 亚洲国产毛片aaaaa无费看| 狠狠色2019综合网| 欧美性色黄大片手机版| 欧美精品一区二区蜜臀亚洲| 亚洲午夜视频在线| 国产电影一区在线| 欧美一卡2卡三卡4卡5免费| 最新中文字幕一区二区三区| 狠狠色综合色综合网络| 欧美日韩一区不卡| 亚洲人成电影网站色mp4| 久久精品国产一区二区三区免费看| 91麻豆精品视频| 国产欧美日韩激情| 精品一区二区三区免费| 欧美卡1卡2卡| 亚洲免费在线观看视频| 成人91在线观看| 日本一区免费视频| 国产精品99久| 欧美videos大乳护士334| 日韩有码一区二区三区| 欧美色涩在线第一页| 亚洲色图另类专区| 91免费国产视频网站| 国产亚洲女人久久久久毛片| 精东粉嫩av免费一区二区三区| 91精品在线免费观看| 天天综合色天天综合色h| 欧美亚洲图片小说| 亚洲综合区在线| 欧美日韩精品系列| 亚洲一线二线三线视频| 在线看国产日韩| 五月天一区二区| 欧美精品日韩一本| 蜜臀av性久久久久蜜臀aⅴ流畅| 欧美人牲a欧美精品| 日韩高清在线观看| 欧美www视频| 成人午夜免费电影| 亚洲女同ⅹxx女同tv| 91成人在线免费观看| 亚洲影视在线观看| 欧美日韩亚洲综合在线| 免费人成在线不卡| 精品国产sm最大网站免费看| 国产精品99久久久久久久女警 | 丝瓜av网站精品一区二区| 欧美日韩精品欧美日韩精品一 | 中日韩av电影| 99久久精品国产毛片| 亚洲在线观看免费视频| 91精品国产综合久久精品| 久久精品国产亚洲5555| 国产精品亲子乱子伦xxxx裸| 97久久超碰精品国产| 五月天婷婷综合| 2023国产精品自拍| 99麻豆久久久国产精品免费 | 中文字幕一区二区三区不卡在线| 色美美综合视频| 日本不卡一区二区三区| 国产无一区二区| 欧美主播一区二区三区美女| 日本 国产 欧美色综合| 欧美国产一区视频在线观看| 欧美日本国产一区| 福利视频网站一区二区三区| 亚洲国产日日夜夜| 国产日韩视频一区二区三区| 欧美三级三级三级| 国产a级毛片一区| 亚洲成人一区在线| 国产欧美日产一区| 欧美精品粉嫩高潮一区二区| 成人午夜电影小说| 美女视频网站久久| 一区二区三区在线播放| 国产三级一区二区三区| 51精品久久久久久久蜜臀| 成人听书哪个软件好| 麻豆91在线播放免费| 一区二区三区欧美久久| 国产亚洲精品超碰| 欧美福利一区二区| 色爱区综合激月婷婷| 成人小视频免费观看| 韩国v欧美v亚洲v日本v| 午夜精品福利视频网站| 亚洲女性喷水在线观看一区| 国产欧美日韩另类视频免费观看| 日韩一区二区电影在线| 欧美日韩在线观看一区二区 | 亚洲国产另类av| 亚洲人精品午夜| 国产精品人妖ts系列视频| 精品国产免费久久| 日韩免费看的电影| 欧美乱妇15p| 欧美日韩高清一区二区不卡| 欧美三级中文字幕| 欧美亚洲自拍偷拍| 欧美日韩一二区| 欧美日韩国产欧美日美国产精品| 欧洲亚洲国产日韩| 色综合欧美在线| 91视频在线看| 91精品1区2区| 欧美性大战久久久久久久蜜臀| 91老师国产黑色丝袜在线| 91香蕉视频污在线| 色一情一乱一乱一91av| 欧美日韩亚洲综合| 制服丝袜亚洲色图| 91精品国产欧美一区二区成人 | 国产女人水真多18毛片18精品视频| 精品国产乱码久久久久久蜜臀| 欧美一级久久久| 26uuu色噜噜精品一区二区| 精品av综合导航| 国产日韩精品一区二区三区在线| 国产亚洲精品久| 亚洲精品日韩综合观看成人91| 一区二区三区.www| 亚洲成av人片一区二区| 亚瑟在线精品视频| 久久er精品视频| 成人综合婷婷国产精品久久| 色视频欧美一区二区三区| 在线视频国产一区| 日韩欧美国产系列| 国产精品欧美精品| 亚洲在线视频免费观看| 久久99久久精品欧美| 国产精品一级黄| 在线亚洲欧美专区二区| 欧美大白屁股肥臀xxxxxx| 国产日本亚洲高清| 亚洲码国产岛国毛片在线| 日本美女视频一区二区| 高潮精品一区videoshd| 欧美唯美清纯偷拍| 精品国产伦理网| 亚洲午夜久久久久| 国内欧美视频一区二区| 色婷婷久久一区二区三区麻豆| 欧美一区二区三区在线看| 日本一区二区免费在线| 午夜欧美电影在线观看| 国产成人鲁色资源国产91色综 | 国产精品色呦呦| 日韩在线卡一卡二| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 亚洲资源中文字幕| 国产91清纯白嫩初高中在线观看|