Skip to content

Commit a064e9a

Browse files
committed
feat: specs params improves
1 parent 49976bb commit a064e9a

File tree

4 files changed

+4
-54
lines changed

4 files changed

+4
-54
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ node_modules
88
/.DS_Store
99
/.env
1010
*.log.*
11-
output/
11+
output/
12+
specs/Move.lock

specs/Move.lock

Lines changed: 0 additions & 51 deletions
This file was deleted.

specs/sources/i128_specs.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public fun abs_u128_spec(v: I128): u128 {
295295
✅ Computes `v << shift`.
296296
⏮️ The function aborts unless `shift < 128`.
297297
*/
298-
#[spec(prove, target = shl)]
298+
#[spec(prove, target = shl, boogie_opt=b"proverOpt:O:smt.QI.EAGER_THRESHOLD=25")]
299299
public fun shl_spec(v: I128, shift: u8): I128 {
300300
asserts(shift < 128);
301301
let result = shl(v, shift);

specs/sources/i32_specs.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public fun sub_spec(num1: I32, num2: I32): I32 {
209209
✅ Computes `num1 * num2`.
210210
⏮️ The function aborts when the result does not fit in `I32`.
211211
*/
212-
#[spec(prove, target = mul)]
212+
#[spec(prove, target = mul, boogie_opt=b"proverOpt:O:smt.QI.EAGER_THRESHOLD=25")]
213213
public fun mul_spec(num1: I32, num2: I32): I32 {
214214
let num1_int = num1.to_int();
215215
let num2_int = num2.to_int();

0 commit comments

Comments
 (0)