【发布时间】:2012-11-17 16:53:49
【问题描述】:
我知道合金中谓词的用法,但我对以下描述感到有些惊讶:
pred locationConstraint(loc: Int -> Int){
loc in (Int[0] + Int[1] + Int[2] + Int[3] + Int[4] + Int[5] + Int[6]) -> (Int[2] + Int[3])
+ (Int[2] + Int[3]) -> (Int[0] + Int[1] + Int[2] + Int[3] + Int[4] + Int[5])
}
谁能给我解释一下上面的内容。
【问题讨论】:
-
对于否决这个问题的人来说,这对您来说可能是一个愚蠢的问题,但 SO 对 Alloy 信息的了解如此之少,每一点都有帮助。
标签: alloy