:- use_module(library(pita)). :- if(current_predicate(use_rendering/1)). :- use_rendering(c3). :- use_rendering(graphviz). :- use_rendering(table,[header(['Multivalued variable index','Rule index','Grounding substitution'])]). :- endif. :- pita. :- begin_lpad. map_query 0.6::red(b1); 0.3::green(b1); 0.1::blue(b1) :- pick(b1). map_query 0.6::pick(b1); 0.4::no_pick(b1). ev:- \+ blue(b1). :- end_lpad. /** ?-map(ev,P,Exp). P=0.36, Exp=[ rule(1, pick(b1), [pick(b1):0.6, no_pick(b1):0.4], true), rule(0, red(b1), [red(b1):0.6, green(b1):0.3, blue(b1):0.1], pick(b1)) ]. ?-map_bdd_dot_string(ev,BDD,Var,VarA,P,Exp). P=0.36, Exp=[ rule(1, pick(b1), [pick(b1):0.6, no_pick(b1):0.4], true), rule(0, red(b1), [red(b1):0.6, green(b1):0.3, blue(b1):0.1], pick(b1)) ]. */