Skip to content

Commit

Permalink
[Prover] Fix an issue in the concretization in the mono analysis
Browse files Browse the repository at this point in the history
Prover concretizes a type parameter `T` into `Primitive(Range)`  which eventually causes the panic.

So, this commit excludes the spec only primitive types during the mono analysis.

Resolves move-language#700
  • Loading branch information
junkil-park committed Dec 7, 2022
1 parent 2ef24ba commit b3a6b53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions language/move-prover/bytecode/src/mono_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,10 @@ impl<'a> Analyzer<'a> {
}

fn add_type(&mut self, ty: &Type) {
// Exclude the spec only primitive types.
if ty.is_spec() {
return;
}
if !self.done_types.insert(ty.to_owned()) {
return;
}
Expand Down

0 comments on commit b3a6b53

Please sign in to comment.