-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add coverage tests for much of solc-expressions #89
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plotchy
commented
Jul 20, 2024
Comment on lines
-334
to
-342
fn range_eval( | ||
&self, | ||
arena: &mut RangeArena<Elem<Concrete>>, | ||
_ctx: ContextNode, | ||
lhs_cvar: ContextVarNode, | ||
rhs_cvar: ContextVarNode, | ||
op: RangeOp, | ||
) -> Result<SolcRange, GraphError> { | ||
if let Some(lhs_range) = lhs_cvar.ref_range(self)? { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is unused trait fn
plotchy
commented
Jul 20, 2024
Comment on lines
-474
to
-507
fn update_array_min_if_length( | ||
&mut self, | ||
arena: &mut RangeArena<Elem<Concrete>>, | ||
ctx: ContextNode, | ||
loc: Loc, | ||
maybe_length: ContextVarNode, | ||
) -> Result<(), ExprErr> { | ||
if let Some(backing_arr) = maybe_length.len_var_to_array(self).into_expr_err(loc)? { | ||
let next_arr = self.advance_var_in_ctx( | ||
backing_arr.latest_version_or_inherited_in_ctx(ctx, self), | ||
loc, | ||
ctx, | ||
)?; | ||
let new_len = Elem::from(backing_arr) | ||
.get_length() | ||
.max(maybe_length.into()); | ||
let min = Elem::from(backing_arr).set_length(new_len); | ||
next_arr | ||
.set_range_min(self, arena, min) | ||
.into_expr_err(loc)?; | ||
} | ||
Ok(()) | ||
} | ||
|
||
fn update_array_max_if_length( | ||
&mut self, | ||
arena: &mut RangeArena<Elem<Concrete>>, | ||
ctx: ContextNode, | ||
loc: Loc, | ||
maybe_length: ContextVarNode, | ||
) -> Result<(), ExprErr> { | ||
if let Some(backing_arr) = maybe_length.len_var_to_array(self).into_expr_err(loc)? { | ||
let next_arr = self.advance_var_in_ctx( | ||
backing_arr.latest_version_or_inherited_in_ctx(ctx, self), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused array trait fns
merged into #88 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.