#include <stdlib.h>
#include <stdio.h>
#include "smodels.h"
#include "api.h"
#include "atomrule.h"
Functions | |
void | init (void) |
void | numberAtoms (int nAtoms) |
void | atomName (char *name) |
void | beginBasicRule (void) |
void | beginChoiceRule (void) |
void | beginConstraintRule (void) |
void | beginWeightRule (void) |
void | addHead (int atomNum) |
void | addWPosBody (int atomNum, Weight weight) |
void | addPosBody (int atomNum) |
void | addWNegBody (int atomNum, Weight weight) |
void | addNegBody (int atomNum) |
void | endRule (void) |
void | commitRules (void) |
void | printProgram (void) |
int | existsModel (void) |
void | printAnswer (void) |
void | close (void) |
int | checkAtom (int atom) |
void | setPosCompute (int atom) |
void | setNegCompute (int atom) |
void | resetPosCompute (int atom) |
void | resetNegCompute (int atom) |
void | remember (void) |
void | forget (void) |
void | setBody (long val) |
void | setWeight (long val) |
void | setHead (long val) |
void | wellfounded (void) |
int | testPos (int atom) |
int | testNeg (int atom) |
Variables | |
Smodels * | smodels |
Api * | api |
Atom ** | atoms |
int | curatom |
int | totatoms |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|