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

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

?? factgen.c

?? clips源代碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
   /*******************************************************/   /*      "C" Language Integrated Production System      */   /*                                                     */   /*             CLIPS Version 6.20  01/31/02            */   /*                                                     */   /*          FACT RETE FUNCTION GENERATION MODULE       */   /*******************************************************//*************************************************************//* Purpose: Creates expressions used by the fact pattern     *//*   matcher and the join network. The expressions created   *//*   are used to extract and compare values from facts as    *//*   needed by the Rete pattern matching algorithm. These    *//*   expressions are also used to extract values from facts  *//*   needed by expressions on the RHS of a rule.             *//*                                                           *//* Principal Programmer(s):                                  *//*      Gary D. Riley                                        *//*                                                           *//* Contributing Programmer(s):                               *//*                                                           *//* Revision History:                                         *//*                                                           *//*************************************************************/#define _FACTGEN_SOURCE_#include "setup.h"#if DEFTEMPLATE_CONSTRUCT && DEFRULE_CONSTRUCT#include <stdio.h>#define _STDIO_INCLUDED_#include "constant.h"#include "memalloc.h"#include "router.h"#include "scanner.h"#include "exprnpsr.h"#include "constrct.h"#include "network.h"#include "reteutil.h"#include "factmch.h"#include "factrete.h"#include "factmngr.h"#include "pattern.h"#include "factprt.h"#include "envrnmnt.h"#include "tmpltdef.h"#include "tmpltlhs.h"#include "factgen.h"#define FACTGEN_DATA 2struct factgenData  {       globle struct entityRecord   FactJNGV1Info;   globle struct entityRecord   FactJNGV2Info;   globle struct entityRecord   FactJNGV3Info;   globle struct entityRecord   FactPNGV1Info;   globle struct entityRecord   FactPNGV2Info;   globle struct entityRecord   FactPNGV3Info;   globle struct entityRecord   FactJNCV1Info;   globle struct entityRecord   FactJNCV2Info;   globle struct entityRecord   FactPNCV1Info;   globle struct entityRecord   FactStoreMFInfo;   globle struct entityRecord   FactSlotLengthInfo;   globle struct entityRecord   FactPNConstant1Info;   globle struct entityRecord   FactPNConstant2Info;  };  #define FactgenData(theEnv) ((struct factgenData *) GetEnvironmentData(theEnv,FACTGEN_DATA))/***************************************//* LOCAL INTERNAL FUNCTION DEFINITIONS *//***************************************/#if (! RUN_TIME) && (! BLOAD_ONLY)   static void                      *FactGetVarJN1(void *,struct lhsParseNode *,int);   static void                      *FactGetVarJN2(void *,struct lhsParseNode *,int);   static void                      *FactGetVarJN3(void *,struct lhsParseNode *,int);   static void                      *FactGetVarPN1(void *,struct lhsParseNode *);   static void                      *FactGetVarPN2(void *,struct lhsParseNode *);   static void                      *FactGetVarPN3(void *,struct lhsParseNode *);#endif/*******************************************************************//* InitializeFactReteFunctions: Installs the fact pattern matching *//*   and value access routines as primitive operations.            *//*******************************************************************/globle void InitializeFactReteFunctions(  void *theEnv)  {#if DEFRULE_CONSTRUCT   struct entityRecord   factJNGV1Info = { "FACT_JN_VAR1", FACT_JN_VAR1,0,1,0,                                                  PrintFactJNGetVar1,                                                  PrintFactJNGetVar1,NULL,                                                  FactJNGetVar1,                                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };   struct entityRecord   factJNGV2Info = { "FACT_JN_VAR2", FACT_JN_VAR2,0,1,0,                                                  PrintFactJNGetVar2,                                                  PrintFactJNGetVar2,NULL,                                                  FactJNGetVar2,                                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };   struct entityRecord   factJNGV3Info = { "FACT_JN_VAR3", FACT_JN_VAR3,0,1,0,                                                  PrintFactJNGetVar3,                                                  PrintFactJNGetVar3,NULL,                                                  FactJNGetVar3,                                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };   struct entityRecord   factPNGV1Info = { "FACT_PN_VAR1", FACT_PN_VAR1,0,1,0,                                                  PrintFactPNGetVar1,                                                  PrintFactPNGetVar1,NULL,                                                  FactPNGetVar1,                                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };   struct entityRecord   factPNGV2Info = { "FACT_PN_VAR2", FACT_PN_VAR2,0,1,0,                                                  PrintFactPNGetVar2,                                                  PrintFactPNGetVar2,NULL,                                                  FactPNGetVar2,                                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };   struct entityRecord   factPNGV3Info = { "FACT_PN_VAR3", FACT_PN_VAR3,0,1,0,                                                  PrintFactPNGetVar3,                                                  PrintFactPNGetVar3,NULL,                                                  FactPNGetVar3,                                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };   struct entityRecord   factJNCV1Info = { "FACT_JN_CMP1", FACT_JN_CMP1,0,1,1,                                                  PrintFactJNCompVars1,                                                  PrintFactJNCompVars1,NULL,                                                  FactJNCompVars1,                                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };   struct entityRecord   factJNCV2Info = { "FACT_JN_CMP2", FACT_JN_CMP2,0,1,1,                                                  PrintFactJNCompVars2,                                                  PrintFactJNCompVars2,NULL,                                                  FactJNCompVars2,                                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };   struct entityRecord   factPNCV1Info = { "FACT_PN_CMP1", FACT_PN_CMP1,0,1,1,                                                  PrintFactPNCompVars1,                                                  PrintFactPNCompVars1,NULL,                                                  FactPNCompVars1,                                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };   struct entityRecord   factStoreMFInfo = { "FACT_STORE_MULTIFIELD",                                                    FACT_STORE_MULTIFIELD,0,1,0,                                                    NULL,NULL,NULL,                                                    FactStoreMultifield,                                                    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };   struct entityRecord   factSlotLengthInfo = { "FACT_SLOT_LENGTH",                                                       FACT_SLOT_LENGTH,0,1,0,                                                       PrintFactSlotLength,                                                       PrintFactSlotLength,NULL,                                                       FactSlotLength,                                                       NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };   struct entityRecord   factPNConstant1Info = { "FACT_PN_CONSTANT1",                                                        FACT_PN_CONSTANT1,0,1,1,                                                        PrintFactPNConstant1,                                                        PrintFactPNConstant1,NULL,                                                        FactPNConstant1,                                                        NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };   struct entityRecord   factPNConstant2Info = { "FACT_PN_CONSTANT2",                                                        FACT_PN_CONSTANT2,0,1,1,                                                        PrintFactPNConstant2,                                                        PrintFactPNConstant2,NULL,                                                        FactPNConstant2,                                                        NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };   AllocateEnvironmentData(theEnv,FACTGEN_DATA,sizeof(struct factgenData),NULL);      memcpy(&FactgenData(theEnv)->FactJNGV1Info,&factJNGV1Info,sizeof(struct entityRecord));      memcpy(&FactgenData(theEnv)->FactJNGV2Info,&factJNGV2Info,sizeof(struct entityRecord));      memcpy(&FactgenData(theEnv)->FactJNGV3Info,&factJNGV3Info,sizeof(struct entityRecord));      memcpy(&FactgenData(theEnv)->FactPNGV1Info,&factPNGV1Info,sizeof(struct entityRecord));      memcpy(&FactgenData(theEnv)->FactPNGV2Info,&factPNGV2Info,sizeof(struct entityRecord));      memcpy(&FactgenData(theEnv)->FactPNGV3Info,&factPNGV3Info,sizeof(struct entityRecord));      memcpy(&FactgenData(theEnv)->FactJNCV1Info,&factJNCV1Info,sizeof(struct entityRecord));      memcpy(&FactgenData(theEnv)->FactJNCV2Info,&factJNCV2Info,sizeof(struct entityRecord));      memcpy(&FactgenData(theEnv)->FactPNCV1Info,&factPNCV1Info,sizeof(struct entityRecord));    memcpy(&FactgenData(theEnv)->FactStoreMFInfo,&factStoreMFInfo,sizeof(struct entityRecord));      memcpy(&FactgenData(theEnv)->FactSlotLengthInfo,&factSlotLengthInfo,sizeof(struct entityRecord));      memcpy(&FactgenData(theEnv)->FactPNConstant1Info,&factPNConstant1Info,sizeof(struct entityRecord));      memcpy(&FactgenData(theEnv)->FactPNConstant2Info,&factPNConstant2Info,sizeof(struct entityRecord));                                                              InstallPrimitive(theEnv,(ENTITY_RECORD_PTR) &FactData(theEnv)->FactInfo,FACT_ADDRESS);   InstallPrimitive(theEnv,&FactgenData(theEnv)->FactJNGV1Info,FACT_JN_VAR1);   InstallPrimitive(theEnv,&FactgenData(theEnv)->FactJNGV2Info,FACT_JN_VAR2);   InstallPrimitive(theEnv,&FactgenData(theEnv)->FactJNGV3Info,FACT_JN_VAR3);   InstallPrimitive(theEnv,&FactgenData(theEnv)->FactPNGV1Info,FACT_PN_VAR1);   InstallPrimitive(theEnv,&FactgenData(theEnv)->FactPNGV2Info,FACT_PN_VAR2);   InstallPrimitive(theEnv,&FactgenData(theEnv)->FactPNGV3Info,FACT_PN_VAR3);   InstallPrimitive(theEnv,&FactgenData(theEnv)->FactJNCV1Info,FACT_JN_CMP1);   InstallPrimitive(theEnv,&FactgenData(theEnv)->FactJNCV2Info,FACT_JN_CMP2);   InstallPrimitive(theEnv,&FactgenData(theEnv)->FactPNCV1Info,FACT_PN_CMP1);   InstallPrimitive(theEnv,&FactgenData(theEnv)->FactStoreMFInfo,FACT_STORE_MULTIFIELD);   InstallPrimitive(theEnv,&FactgenData(theEnv)->FactSlotLengthInfo,FACT_SLOT_LENGTH);   InstallPrimitive(theEnv,&FactgenData(theEnv)->FactPNConstant1Info,FACT_PN_CONSTANT1);   InstallPrimitive(theEnv,&FactgenData(theEnv)->FactPNConstant2Info,FACT_PN_CONSTANT2);#endif  }#if (! RUN_TIME) && (! BLOAD_ONLY)/******************************************************************//* FactGenPNConstant: Generates an expression for use in the fact *//*   pattern network that compares a field from a single field or *//*   multifield slot against a constant.                          *//******************************************************************/globle struct expr *FactGenPNConstant(  void *theEnv,  struct lhsParseNode *theField)  {   struct expr *top;   unsigned short tempValue;   struct factConstantPN1Call hack1;   struct factConstantPN2Call hack2;   /*=================================================================*/   /* If the value of a single field slot (or relation name) is being */   /* compared against a constant, then use specialized routines for  */   /* doing the comparison.                                           */   /*=================================================================*/   if (theField->withinMultifieldSlot == FALSE)     {      ClearBitString(&hack1,sizeof(struct factConstantPN1Call));      if (theField->negated) hack1.testForEquality = FALSE;      else hack1.testForEquality = TRUE;      hack1.whichSlot = theField->slotNumber - 1;      top = GenConstant(theEnv,FACT_PN_CONSTANT1,AddBitMap(theEnv,&hack1,sizeof(struct factConstantPN1Call)));      top->argList = GenConstant(theEnv,theField->type,theField->value);      return(top);     }   /*=================================================================*/   /* If a constant comparison is being done within a multifield slot */   /* and the constant's position has no multifields to the left,     */   /* then use the same routine used for the single field slot case,  */   /* but include the offset from the beginning of the slot.          */   /*=================================================================*/   else if ((theField->multiFieldsBefore == 0) ||            ((theField->multiFieldsBefore == 1) && (theField->multiFieldsAfter == 0)))     {      ClearBitString(&hack2,sizeof(struct factConstantPN2Call));      if (theField->negated) hack2.testForEquality = FALSE;      else hack2.testForEquality = TRUE;      hack2.whichSlot = theField->slotNumber - 1;      if (theField->multiFieldsBefore == 0)        {         hack2.fromBeginning = TRUE;         hack2.offset = theField->singleFieldsBefore;        }      else        {         hack2.fromBeginning = FALSE;         hack2.offset = theField->singleFieldsAfter;        }      top = GenConstant(theEnv,FACT_PN_CONSTANT2,AddBitMap(theEnv,&hack2,sizeof(struct factConstantPN2Call)));      top->argList = GenConstant(theEnv,theField->type,theField->value);      return(top);     }   /*===============================================================*/   /* Otherwise, use the equality or inequality function to compare */   /* the constant against the value returned by the appropriate    */   /* pattern network variable retrieval function call.             */   /*===============================================================*/   else     {      if (theField->negated)        { top = GenConstant(theEnv,FCALL,ExpressionData(theEnv)->PTR_NEQ); }      else        { top = GenConstant(theEnv,FCALL,ExpressionData(theEnv)->PTR_EQ); }      tempValue = theField->type;      theField->type = SF_VARIABLE;      top->argList = FactGenGetfield(theEnv,theField);      theField->type = tempValue;      top->argList->nextArg = GenConstant(theEnv,theField->type,theField->value);     }   /*===============================================================*/   /* Return the expression for performing the constant comparison. */   /*===============================================================*/   return(top);  }/*******************************************************//* FactGenGetfield: Generates an expression for use in *//*   the fact pattern network that retrieves a value   *//*   from a single or multifield slot.                 */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲色图都市小说| 欧美精品一区二区在线播放 | 国产精品久久久久久久久免费丝袜| 精品一区二区日韩| 精品国产一二三区| 国产激情一区二区三区| 国产精品欧美一区二区三区| 91丨九色丨尤物| 天堂久久久久va久久久久| 日韩欧美中文一区| 国产精品一级黄| 一区二区三区日韩精品| 欧美电影免费观看高清完整版在| 国产精品中文字幕一区二区三区| 国产精品色哟哟网站| 在线影院国内精品| 裸体一区二区三区| 国产精品美女久久久久久久| 欧美日韩精品电影| 精品一区二区在线看| 亚洲人精品午夜| 日韩欧美黄色影院| 成人动漫一区二区在线| 亚洲成av人影院在线观看网| www国产精品av| 色噜噜狠狠成人网p站| 蜜桃精品在线观看| 综合中文字幕亚洲| 91精品国产91久久久久久最新毛片 | 欧美综合亚洲图片综合区| 日本sm残虐另类| 国产精品女上位| 制服丝袜成人动漫| 91丨porny丨国产入口| 美女一区二区在线观看| 亚洲免费色视频| 久久久精品tv| 欧美精品在线一区二区三区| 成人激情免费网站| 视频一区二区三区入口| 国产精品久久久久久久久图文区| 日韩欧美在线网站| 色综合久久综合网97色综合| 国产一区二区三区黄视频| 亚洲一区二区美女| 亚洲素人一区二区| 久久久久久久免费视频了| 欧美日韩一级片在线观看| gogogo免费视频观看亚洲一| 久久se精品一区精品二区| 五月婷婷激情综合| 亚洲青青青在线视频| 国产欧美精品一区aⅴ影院| 日韩一二三区视频| 欧美人xxxx| 91美女精品福利| 成人国产视频在线观看| 国产综合成人久久大片91| 日韩av不卡一区二区| 一区二区三区精品| 亚洲婷婷综合久久一本伊一区| 国产午夜精品久久久久久免费视 | 亚洲欧美另类在线| 亚洲国产精品ⅴa在线观看| 精品国产免费人成电影在线观看四季 | 美日韩一区二区| 日本中文字幕一区| 亚洲国产日韩一区二区| 亚洲精品中文在线| 国产精品久久久久久久久免费樱桃| 久久精品一区蜜桃臀影院| 欧美成人精品二区三区99精品| 日韩一区二区免费视频| 欧美精品日日鲁夜夜添| 欧美日韩一卡二卡| 这里只有精品99re| 欧美精品在线观看播放| 欧美男生操女生| 欧美一二三四在线| 日韩午夜小视频| 精品成人免费观看| 久久久久久久久蜜桃| 久久久久久一级片| 欧美国产国产综合| **网站欧美大片在线观看| 亚洲人成伊人成综合网小说| 亚洲欧美区自拍先锋| 亚洲国产成人91porn| 丝袜美腿亚洲综合| 麻豆精品新av中文字幕| 精品一区二区三区久久| 国产69精品久久777的优势| 国产69精品一区二区亚洲孕妇| 不卡av免费在线观看| 91丨porny丨蝌蚪视频| 欧美日韩国产欧美日美国产精品| 欧美日韩一区二区在线观看视频| 日韩三区在线观看| 久久久三级国产网站| 亚洲视频免费在线| 性感美女久久精品| 国产精品一级黄| 色综合av在线| 日韩精品中文字幕一区| 国产欧美久久久精品影院| 日韩一区中文字幕| 午夜精品久久久久久不卡8050| 久色婷婷小香蕉久久| 成人免费精品视频| 欧美日韩免费视频| 久久久亚洲精华液精华液精华液| 亚洲男女一区二区三区| 天堂资源在线中文精品| 国产精品资源在线| 欧美日韩一区小说| 国产精品人妖ts系列视频| 亚洲成av人**亚洲成av**| 国产又粗又猛又爽又黄91精品| 91免费在线看| 精品美女一区二区| 亚洲美腿欧美偷拍| 激情综合一区二区三区| 色综合天天视频在线观看| 精品va天堂亚洲国产| 亚洲成在人线免费| 国产麻豆9l精品三级站| 色综合激情五月| 国产亚洲精品资源在线26u| 亚洲国产一区二区三区| 国产乱码字幕精品高清av | 欧美人与z0zoxxxx视频| 日本一区二区电影| 日韩av一区二| 91久久一区二区| 国产亚洲精品超碰| 免费在线观看一区二区三区| 91捆绑美女网站| 国产亚洲午夜高清国产拍精品| 日韩电影在线一区| 在线影视一区二区三区| 国产精品乱人伦| 精品一区二区三区久久久| 欧美日韩大陆一区二区| 亚洲欧美日韩国产另类专区| 国产成a人无v码亚洲福利| 91精品国产91久久综合桃花| 亚洲一级在线观看| 91亚洲大成网污www| 国产女人18水真多18精品一级做 | 成人一二三区视频| 欧美成人一区二区三区| 日韩精品欧美精品| 色成年激情久久综合| 中文字幕乱码日本亚洲一区二区| 人人爽香蕉精品| 欧美久久久影院| 日韩av一区二| 欧美一区三区二区| 天天操天天干天天综合网| 欧美日韩国产在线播放网站| 亚洲一区二区三区中文字幕| 在线视频综合导航| 亚洲人成精品久久久久| 一本色道久久综合亚洲aⅴ蜜桃 | 综合久久给合久久狠狠狠97色| 国产suv一区二区三区88区| 日韩欧美中文一区| 日本aⅴ免费视频一区二区三区 | 久久久电影一区二区三区| 麻豆国产欧美日韩综合精品二区| 欧美一区二区三区性视频| 五月综合激情网| 91精品一区二区三区久久久久久| 午夜伊人狠狠久久| 3atv一区二区三区| 免费黄网站欧美| 精品国产一区二区三区不卡 | 日本美女一区二区三区| 91精品国产麻豆| 国产一区二区三区黄视频 | 一本久久综合亚洲鲁鲁五月天| 亚洲欧美中日韩| 日本韩国欧美在线| 亚洲成人高清在线| 日韩欧美亚洲一区二区| 国产精品一级黄| 日韩毛片精品高清免费| 色就色 综合激情| 天天色综合天天| 国产亚洲精品超碰| 972aa.com艺术欧美| 亚洲一区二区在线播放相泽 | 久久婷婷国产综合国色天香| 国产·精品毛片| 亚洲国产毛片aaaaa无费看| 91精品国产综合久久国产大片| 精品一区二区三区免费视频| 中文字幕日韩欧美一区二区三区| 91国产丝袜在线播放| 奇米影视一区二区三区|