簡體   English   中英

合金4 Int范圍

[英]Alloy 4 Int scope

去年,我使用了合金,然后可以設置Int位寬寫的范圍,例如“ 5 Int”,這實際上是以下答案所建議的: 在Alloy中運行命令范圍

但是,如果今年我寫了,我今年又下載了Alloy 4.1.1

sig Bar{ a:Int}

run{} for 10 Int

我現在得到

Syntax error at line 3 column 11:
You can no longer set a scope on Int; the number of Int
atoms is always exactly equal to 2^(integer bitwidth).

有什么變化? 我應該如何設置位寬?

在Alloy 4.1.1中,只需將Int更改為int 在Alloy 4.2中,您可以使用任何一個,因為在4.2中,它們都用於指定位寬。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM