Skip to content

Commit

Permalink
get rid of some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
endeav0r committed Aug 6, 2017
1 parent f518c5e commit 5f3cb64
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/analysis/value_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl<'v> FixedPointAnalysis<LatticeAssignments> for ValueSetAnalysis<'v> {
);
state_out
}
il::Operation::Store { ref dst, ref index, ref src } => {
il::Operation::Store { ref index, ref src, .. } => {
let index = state_out.eval(index);
let mut value = state_out.eval(src);
if self.endian == Endian::Little {
Expand Down
8 changes: 4 additions & 4 deletions lib/engine/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ impl SymbolicEngine {
il::Expression::Scalar(scalar.clone())
}
}
il::Expression::Constant(ref constant) => expression.clone(),
il::Expression::Constant(_) => expression.clone(),
il::Expression::Add(ref lhs, ref rhs) =>
il::Expression::add(self.symbolize_expression(lhs)?,
self.symbolize_expression(rhs)?)?,
Expand Down Expand Up @@ -432,7 +432,7 @@ impl SymbolicEngine {
self.set_scalar(dst.name(), src);
vec![SymbolicSuccessor::new(self, SuccessorType::FallThrough)]
},
il::Operation::Store { ref dst, ref index, ref src } => {
il::Operation::Store { ref index, ref src, .. } => {
let src = self.symbolize_and_eval(src)?;
let index = self.symbolize_and_concretize(index, None)?;
if let Some(index) = index {
Expand All @@ -443,7 +443,7 @@ impl SymbolicEngine {
Vec::new()
}
},
il::Operation::Load { ref dst, ref index, ref src } => {
il::Operation::Load { ref dst, ref index, .. } => {
let index_ = self.symbolize_and_concretize(index, None)?;
if let Some(index) = index_ {
let value = self.memory.load(index.value(), dst.bits())?;
Expand Down Expand Up @@ -490,7 +490,7 @@ impl SymbolicEngine {
}
successors
},
il::Operation::Phi { ref dst, ref src } => {
il::Operation::Phi { .. } => {
panic!("Phi unimplemented");
},
il::Operation::Raise { ref expr } => {
Expand Down
2 changes: 1 addition & 1 deletion lib/engine/engine_driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl ProgramLocation {
} // if instructions[i].index()
} // for i in 0..instructions.len()
},
FunctionLocation::Edge { head, tail } => {
FunctionLocation::Edge { head: _, tail } => {
// Get the successor block
let block = location.function(program).unwrap()
.block(tail).unwrap();
Expand Down

0 comments on commit 5f3cb64

Please sign in to comment.