Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
标题说明了一切。我尝试将 -1 呈现为以下内容:(_ bv-1 32),并且 z3 抱怨。
(_ bv-1 32)
如何呈现约束,例如3x - 5y <= 10位向量?出于某种原因,我不想使用线性整数。
3x - 5y <= 10
这通常通过二进制补码编码来完成。简短的版本是,
-x = flip(x) + 1
whereflip(x)简单地翻转x.
flip(x)
x