Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
brockelmore committed Jul 10, 2024
1 parent 0193d0f commit d026811
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion crates/graph/src/nodes/var_ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ impl VarNode {
.any(|attr| matches!(attr, VariableAttribute::Constant(_)))
{
if let Some(init) = self.underlying(analyzer)?.initializer {
println!("init: {:?}", analyzer.node(init));
if let Some(ty) = VarType::try_from_idx(analyzer, init) {
return Ok(Some(ContextVar {
loc: Some(loc),
Expand Down
2 changes: 0 additions & 2 deletions crates/graph/src/solvers/brute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,6 @@ impl SolcSolver for BruteBinSearchSolver {
let _atomic = &self.atomics[i];

let lmr = self.lmrs[i].clone();
// println!("solving: {i}, {}, successful passes: {}", atomic.idxs[0].display_name(analyzer).unwrap(), self.successful_passes);
// println!("initial range: [{min_s},{max_s}], is_const: {}", atomic.idxs[0].is_const(analyzer)?);
match self.check(
i,
(lmr.low, lmr.mid, lmr.high),
Expand Down
8 changes: 0 additions & 8 deletions crates/solc-expressions/src/func_call/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,11 @@ pub trait CallerHelper: AnalyzerBackend<Expr = Expression, ExprErr = ExprErr> +

let fields = input.struct_to_fields(self).ok()?;
if !fields.is_empty() {
println!(
"fields: {:?}",
fields
.iter()
.map(|i| i.name(self).unwrap())
.collect::<Vec<_>>()
);
// bring along struct fields
fields
.iter()
.try_for_each(|field| -> Result<(), ExprErr> {
let full_name = field.name(self).into_expr_err(loc)?;
println!("field: {full_name}");
let field_names = full_name.split('.').collect::<Vec<_>>();
let field_name =
field_names.get(1).ok_or(ExprErr::MemberAccessNotFound(
Expand Down

0 comments on commit d026811

Please sign in to comment.