Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.

Commit 030fe38

Browse files
rahxephon89meng-xu-cs
authored andcommitted
fix table instantiation bugs (#926)
1 parent 9ebe397 commit 030fe38

File tree

1 file changed

+1
-1
lines changed
  • language/move-prover/boogie-backend/src

1 file changed

+1
-1
lines changed

language/move-prover/boogie-backend/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ pub fn add_prelude(
212212
.iter()
213213
.map(|(qid, ty_args)| {
214214
let v_ty = ty_args.iter().map(|(_, vty)| vty).collect_vec();
215-
let bv_flag = v_ty[0].skip_reference().is_number();
215+
let bv_flag = v_ty.iter().all(|ty| ty.skip_reference().is_number());
216216
MapImpl::new(env, options, *qid, ty_args, bv_flag)
217217
})
218218
.filter(|map_impl| !table_instances.contains(map_impl))

0 commit comments

Comments
 (0)