function res = BR_test_P42
%

KB(1).clauses = [1,2,5];
KB(1).prob = 0.0;
KB(2).clauses = [3,4,-5];
KB(2).prob = 0.0;
%KB(3).clauses = [5];
%KB(3).prob = 0.5;

probs = [0.00001:0.00001:0.0001];
num_probs = length(probs);
res = zeros(num_probs,1);
query1(1).clauses = [1,2,3,4];

for ind1 = 1:num_probs
    p = probs(ind1);
    KB(1).prob = p;
    KB(2).prob = p;
    P = BR_Nilsson(KB);
    res(ind1,1) = BR_Nilsson_query(query1,P);
end
tch = 0;
