#include "nusmv/core/utils/utils.h"
#include "nusmv/core/node/node.h"
Go to the source code of this file.
Typedefs | |
typedef int(* | BMC_PF_MATCH )(const NuSMVEnv_ptr, node_ptr, int, void *) |
Interface for module Check. | |
typedef void(* | BMC_PF_MATCH_ANSWER )(const NuSMVEnv_ptr, node_ptr, int, void *) |
Functions | |
node_ptr | Bmc_CheckFairnessListForPropositionalFormulae (const NuSMVEnv_ptr env, node_ptr wffList) |
Helper function to simplify calling to 'bmc_check_wff_list' for searching of propositional wff only. Returns a new list of wffs which contains legal wffs only. | |
int | Bmc_WffListMatchProperty (const NuSMVEnv_ptr env, node_ptr wffList, BMC_PF_MATCH pCheck, void *pCheckOptArgument, int iMaxMatches, unsigned int *aiMatchedIndexes, BMC_PF_MATCH_ANSWER pAnswer, void *pAnswerOptArgument) |
For each element belonging to a given list of wffs, calls the given matching function. If function matches, calls given answering function. |
typedef int(* BMC_PF_MATCH)(const NuSMVEnv_ptr, node_ptr, int, void *) |
typedef void(* BMC_PF_MATCH_ANSWER)(const NuSMVEnv_ptr, node_ptr, int, void *) |
node_ptr Bmc_CheckFairnessListForPropositionalFormulae | ( | const NuSMVEnv_ptr | env, | |
node_ptr | wffList | |||
) |
Helper function to simplify calling to 'bmc_check_wff_list' for searching of propositional wff only. Returns a new list of wffs which contains legal wffs only.
AutomaticStart
int Bmc_WffListMatchProperty | ( | const NuSMVEnv_ptr | env, | |
node_ptr | wffList, | |||
BMC_PF_MATCH | pCheck, | |||
void * | pCheckOptArgument, | |||
int | iMaxMatches, | |||
unsigned int * | aiMatchedIndexes, | |||
BMC_PF_MATCH_ANSWER | pAnswer, | |||
void * | pAnswerOptArgument | |||
) |
For each element belonging to a given list of wffs, calls the given matching function. If function matches, calls given answering function.
This is a generic searching function for a property across a list of wffs. Please note that searching is specific for a list of wffs, but the searching semantic and behaviour are generic and customizable.
Searching may be stopped after the Nth match, or can be continued till all list elements have been checked (specify -1 in this case). In any case searching cannot be carried out over the MAX_MATCHES value.
Parameter name | Description |
---|---|
wffList | A list of wffs to iterate in |
pCheck | Pointer to matching function. The checking function type is BMC_PF_MATCH, and has three parameters: |
pCheckOptArgument | Argument passed to pCheck (specify NULL if you do not use it.) |
iMaxMatches | Maximum number of matching to be found before return. This must be less of MAX_MATCHES. |
aiMatchedIndexes | Optional int array which will contain all match indexes. |
pAnswer | Pointer to answer function of type BMC_PF_MATCH_ANSWER. This function is called everytime a match is found. wff the formula that matches the criteria pAnswerOptArgument optional parameter for pAnswer function, in order to ensure more flexibility. Specify NULL if you do not need for this functionality.) |
Given aiMatchedIndexes array changes if at least one match has found out