Skip to content

Commit cd344e6

Browse files
authored
feat: bump (#566)
* feat: bump * fixed tests
1 parent 7268039 commit cd344e6

File tree

16 files changed

+364
-153
lines changed

16 files changed

+364
-153
lines changed

Cargo.lock

Lines changed: 335 additions & 130 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/move-stackless-bytecode/tests/conditional_merge_insertion/09_skip_simple_loop.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module 0x42::test {
44
let mut y = 2;
55
let mut i = 0;
66

7-
while (i < 3) {
7+
while (i < 3u64) {
88
if (cond) {
99
x = x + 10; // Increment x in then-block
1010
} else {

crates/sui-prover/tests/inputs/axioms/calling_proc.fail.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fun f_axiom(x: u64): bool {
99

1010
// This function has a real abort, so it can't be a pure callee.
1111
public fun bar(): bool {
12-
assert!(1 > 2);
12+
assert!(1u8 > 2u8);
1313
true
1414
}
1515

crates/sui-prover/tests/inputs/dynamic_field/exists_.fail.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ fun foo(x: &mut Foo) {
1616
fun foo_spec(x: &mut Foo) {
1717
requires(!dynamic_field::exists_with_type<u64, u8>(&x.id, 10));
1818
foo(x);
19-
ensures(!dynamic_field::exists_(&x.id, 11));
19+
ensures(!dynamic_field::exists_(&x.id, 11u8));
2020
}

crates/sui-prover/tests/inputs/dynamic_field/exists_.ok.move

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ public struct Foo has key {
99
}
1010

1111
fun foo(x: &mut Foo) {
12-
dynamic_field::add<u64, u8>(&mut x.id, 10, 0);
12+
dynamic_field::add<u64, u64>(&mut x.id, 10u64, 0);
1313
}
1414

1515
#[spec(prove)]
1616
fun foo_spec(x: &mut Foo) {
17-
requires(!dynamic_field::exists_with_type<u64, u8>(&x.id, 10));
17+
requires(!dynamic_field::exists_with_type<u64, u64>(&x.id, 10u64));
1818
foo(x);
19-
ensures(dynamic_field::exists_(&x.id, 10));
20-
ensures(dynamic_field::exists_with_type<u64, u8>(&x.id, 10));
21-
ensures(dynamic_field::borrow<u64, u8>(&x.id, 10) == 0);
19+
ensures(dynamic_field::exists_(&x.id, 10u64));
20+
ensures(dynamic_field::exists_with_type<u64, u64>(&x.id, 10u64));
21+
ensures(dynamic_field::borrow<u64, u64>(&x.id, 10) == 0);
2222
}

crates/sui-prover/tests/inputs/dynamic_object_field/exists_.fail.move

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ fun foo(x: &mut Foo) {
2121
fun foo_spec(x: &mut Foo) {
2222
requires(dynamic_object_field::exists_with_type<u64, Bar>(&x.id, 10));
2323
foo(x);
24-
ensures(dynamic_object_field::exists_(&x.id, 10));
24+
ensures(dynamic_object_field::exists_(&x.id, 10u64));
2525
ensures(dynamic_object_field::exists_with_type<u64, Bar>(&x.id, 10));
2626
ensures(dynamic_object_field::borrow<u64, Bar>(&x.id, 10).bar == 0);
27-
ensures(dynamic_object_field::exists_(&x.id, 11));
27+
ensures(dynamic_object_field::exists_(&x.id, 11u64));
2828
}

crates/sui-prover/tests/inputs/dynamic_object_field/exists_.ok.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fun foo(x: &mut Foo) {
2121
fun foo_spec(x: &mut Foo) {
2222
requires(dynamic_object_field::exists_with_type<u64, Bar>(&x.id, 10));
2323
foo(x);
24-
ensures(dynamic_object_field::exists_(&x.id, 10));
24+
ensures(dynamic_object_field::exists_(&x.id, 10u64));
2525
ensures(dynamic_object_field::exists_with_type<u64, Bar>(&x.id, 10));
2626
ensures(dynamic_object_field::borrow<u64, Bar>(&x.id, 10).bar == 0);
2727
}

crates/sui-prover/tests/inputs/opaque/double-wrap-buggy.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ fun double_wrap_buggy(x: u64): u64 {
1313
#[spec(prove)]
1414
fun double_wrap_buggy_spec(x: u64): u64 {
1515
let result = double_wrap_buggy(x);
16-
ensures(result == x.to_int().mul((2 as u8).to_int()).to_u64());
16+
ensures(result == x.to_int().mul((2u8).to_int()).to_u64());
1717
result
1818
}

crates/sui-prover/tests/inputs/opaque/double-wrap.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ fun double_wrap(x: u64): u64 {
1313
#[spec(prove)]
1414
fun double_wrap_spec(x: u64): u64 {
1515
let result = double_wrap(x);
16-
ensures(result == x.to_int().mul((2 as u8).to_int()).to_u64());
16+
ensures(result == x.to_int().mul((2u8).to_int()).to_u64());
1717
result
1818
}

crates/sui-prover/tests/inputs/quantifiers/find_indices.ok.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fun test_find_indices_range_valid_indices() {
7474
let indices = find_indices_range!<u64>(&v, 1, 4, |x| x_is_10(x));
7575

7676
let len = vector::length(&indices);
77-
let mut i = 0;
77+
let mut i:u8 = 0;
7878

7979
let idx = *vector::borrow(&indices, 0);
8080
ensures(idx >= 1);

0 commit comments

Comments
 (0)