Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion prism/src/sparse/PS_NondetMultiReachReward.cc
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ JNIEXPORT jdouble __jlongpointer JNICALL Java_sparse_PrismSparse_PS_1NondetMulti
}

// Modify result based on type
if (relops[0] != 0 && relopsReward[0] != 3 && relopsReward[0] != 8) {
if ((num_targets == 0 || relops[0] != 0) && (num_rewards == 0 || (relopsReward[0] != 3 && relopsReward[0] != 8))) {
// for qualitative queries, return 1/0 for existence of solution or not
PS_PrintToMainLog(env, "LP problem solution %sfound so result is %s\n", lp_solved ? "" : "not ", lp_solved ? "true" : "false");
lp_result = lp_solved ? 1.0 : 0.0;
Expand Down
2 changes: 1 addition & 1 deletion prism/src/sparse/PS_NondetMultiReachReward1.cc
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ JNIEXPORT jdouble __jlongpointer JNICALL Java_sparse_PrismSparse_PS_1NondetMulti
}

// Modify result based on type
if (relops[0] != 0 && relopsReward[0] != 3 && relopsReward[0] != 8) {
if ((num_targets == 0 || relops[0] != 0) && (num_rewards == 0 || (relopsReward[0] != 3 && relopsReward[0] != 8))) {
// for qualitative queries, return 1/0 for existence of solution or not
PS_PrintToMainLog(env, "LP problem solution %sfound so result is %s\n", lp_solved ? "" : "not ", lp_solved ? "true" : "false");
lp_result = lp_solved ? 1.0 : 0.0;
Expand Down