YAP 7.1.0
index.c File Reference
#include "absmi.h"
#include "YapCompile.h"
#include "index.h"
#include "cut_c.h"
#include "findclause.h"
#include "headclause.h"

Go to the source code of this file.

Macros

#define NULL   (void *)0
 
#define SET_JLBL(X)
 
#define M_EVEN   0
 
#define arg_from_x(I)   (I)
 

Functions

yamopYap_PredIsIndexable (PredEntry *ap, UInt NSlots, yamop *next_pc)
 
yamopYap_ExpandIndex (PredEntry *ap, UInt nargs)
 
void Yap_AddClauseToIndex (PredEntry *ap, yamop *beg, int first)
 
void Yap_RemoveClauseFromIndex (PredEntry *ap, yamop *beg)
 
LogUpdClauseYap_FollowIndexingCode (PredEntry *ap, yamop *ipc, yhandle_t yht, yamop *ap_pc, yamop *cp_pc)
 
LogUpdClauseYap_NthClause (PredEntry *ap, Int ncls)
 
void Yap_CleanUpIndex (LogUpdIndex *blk)
 

Macro Definition Documentation

◆ arg_from_x

#define arg_from_x (   I)    (I)

Definition at line 3337 of file index.c.

◆ NULL

#define NULL   (void *)0

Definition at line 645 of file index.c.

◆ SET_JLBL

#define SET_JLBL (   X)

Definition at line 655 of file index.c.

Function Documentation

◆ Yap_AddClauseToIndex()

void Yap_AddClauseToIndex ( PredEntry ap,
yamop beg,
int  first 
)

Definition at line 5560 of file index.c.

◆ Yap_CleanUpIndex()

void Yap_CleanUpIndex ( LogUpdIndex blk)

Definition at line 6998 of file index.c.

◆ Yap_ExpandIndex()

yamop * Yap_ExpandIndex ( PredEntry ap,
UInt  nargs 
)

Definition at line 4268 of file index.c.

◆ Yap_FollowIndexingCode()

LogUpdClause * Yap_FollowIndexingCode ( PredEntry ap,
yamop ipc,
yhandle_t  yht,
yamop ap_pc,
yamop cp_pc 
)

Definition at line 6162 of file index.c.

◆ Yap_NthClause()

LogUpdClause * Yap_NthClause ( PredEntry ap,
Int  ncls 
)

Definition at line 6784 of file index.c.

◆ Yap_PredIsIndexable()

yamop * Yap_PredIsIndexable ( PredEntry ap,
UInt  NSlots,
yamop next_pc 
)

Definition at line 2931 of file index.c.

◆ Yap_RemoveClauseFromIndex()

void Yap_RemoveClauseFromIndex ( PredEntry ap,
yamop beg 
)

Definition at line 5998 of file index.c.