listing
This commit is contained in:
@@ -190,7 +190,7 @@ form
|
||||
variable=value
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "YapInterface.h"
|
||||
#include "cudd_config.h"
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
|
@@ -7,7 +7,6 @@ This package uses the library cudd, see http://vlsi.colorado.edu/~fabio/CUDD/
|
||||
for the relative license.
|
||||
|
||||
*/
|
||||
#include "config.h"
|
||||
#include "cudd_config.h"
|
||||
#include <stdio.h>
|
||||
#if HAVE_CUDDINT_H
|
||||
@@ -18,7 +17,9 @@ for the relative license.
|
||||
|
||||
#include "YapInterface.h"
|
||||
|
||||
typedef struct { int var, value; } factor;
|
||||
typedef struct {
|
||||
int var, value;
|
||||
} factor;
|
||||
|
||||
typedef struct {
|
||||
int nFact;
|
||||
|
@@ -9,7 +9,6 @@ for the relative license.
|
||||
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "cudd_config.h"
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
@@ -366,7 +365,7 @@ static YAP_Bool add_var(void) {
|
||||
probTerm = arg2;
|
||||
p0 = 1;
|
||||
for (i = 0; i < v->nVal - 1; i++) {
|
||||
//node = Cudd_bddIthVar(mgr_ex[ex], boolVars_ex[ex] + i);
|
||||
// node = Cudd_bddIthVar(mgr_ex[ex], boolVars_ex[ex] + i);
|
||||
p = YAP_FloatOfTerm(YAP_HeadOfTerm(probTerm));
|
||||
bVar2mVar_ex[ex][boolVars_ex[ex] + i] = nVars_ex[ex] - 1;
|
||||
probs_ex[ex][boolVars_ex[ex] + i] = p / p0;
|
||||
|
Reference in New Issue
Block a user