Kodkod Bug with Card Operator

Description

The Kodkod interval analysis seems to work incorrectly with the card operator.

The following should have no solution:

Environment

None

Gliffy Diagrams

Activity

Show:

Michael Leuschel September 28, 2018 at 9:06 AM

In the current version of ProB no solution is found, because the translation to Kodkod fails (which is much better than providing a false solution):
>>> :kodkod args={1,2,3} & atts : args <-> args & dom(atts) = args & x = card(atts)&x < 2
kodkod fail: args = {1,2,3} & atts : args <-> args & dom(atts) ... , reason: integer without upper and lower bound in: card(atts) while extracting used types
Existentially Quantified Predicate over args,atts,x is FALSE

Jenkins Build Server April 29, 2016 at 4:26 PM

SUCCESS: Integrated in Jenkins build ProB_Tests_Linux64_No_Parallel #22 (See http://cobra.cs.uni-duesseldorf.de/jenkins/job/ProB_Tests_Linux64_No_Parallel/22/)
skip test 1308 and add test for Kodkod issue (leuschel: rev 2855624b57f10868f7943cd6c0366ca5ec76b6f9)

Jenkins Build Server April 21, 2016 at 7:01 AM

SUCCESS: Integrated in Jenkins build ProB_Tests_Linux64_On_Commit #2768 (See http://cobra.cs.uni-duesseldorf.de/jenkins/job/ProB_Tests_Linux64_On_Commit/2768/)
skip test 1308 and add test for Kodkod issue (leuschel: rev 2855624b57f10868f7943cd6c0366ca5ec76b6f9)

Jenkins Build Server April 21, 2016 at 6:45 AM

SUCCESS: Integrated in Jenkins build ProB_Tests_Linux64 #9847 (See http://cobra.cs.uni-duesseldorf.de/jenkins/job/ProB_Tests_Linux64/9847/)
skip test 1308 and add test for Kodkod issue (leuschel: rev 2855624b57f10868f7943cd6c0366ca5ec76b6f9)

Jenkins Build Server April 21, 2016 at 6:00 AM

SUCCESS: Integrated in Jenkins build ProB_Tests_SMT_Solvers #513 (See http://cobra.cs.uni-duesseldorf.de/jenkins/job/ProB_Tests_SMT_Solvers/513/)
skip test 1308 and add test for Kodkod issue (leuschel: rev 2855624b57f10868f7943cd6c0366ca5ec76b6f9)

Details

Assignee

Reporter

Priority

Created April 18, 2016 at 8:39 AM
Updated September 28, 2018 at 9:06 AM