From b2fbb25dd9009b9e4833b83c3bdf24701ed92c54 Mon Sep 17 00:00:00 2001 From: Joachim Klein Date: Fri, 23 Jun 2017 09:11:16 +0000 Subject: [PATCH] JDD.isSingleton: improve documentation (requires that the vars are ordered) git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@11991 bbc10eb1-c90d-0410-af57-cb519fbb1720 --- prism/src/jdd/JDD.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prism/src/jdd/JDD.java b/prism/src/jdd/JDD.java index 6aa59bce..012d9f05 100644 --- a/prism/src/jdd/JDD.java +++ b/prism/src/jdd/JDD.java @@ -1063,6 +1063,10 @@ public class JDD *
* This is the case if there is a single path to the ONE constant * and exactly the variables of {@code vars} occur on the path. + *
+ * Note: The variables in {@code vars} have to sorted + * in increasing index order! Use JDDVars.sortByIndex() to achieve this + * if the ordering is not guaranteed by construction. * @param dd the DD * @param vars the variables */