(&mut self, literal: &mir::Const<'tcx>)
| 2138 | } |
| 2139 | |
| 2140 | pub fn visit_literal(&mut self, literal: &mir::Const<'tcx>) -> Rc<SymbolicValue> { |
| 2141 | info!("visit_literal {:?}", literal); |
| 2142 | match literal { |
| 2143 | // This constant came from the type system |
| 2144 | mir::Const::Ty(_ty, c) => self.visit_constant(c), |
| 2145 | // An unevaluated mir constant which is not part of the type system. |
| 2146 | // mir::Const::Unevaluated(c, ty) => self.visit_unevaluated_const(c, *ty), |
| 2147 | // // This constant contains something the type system cannot handle (e.g. pointers). |
| 2148 | mir::Const::Val(v, ty) => self.visit_const_value(*v, *ty), |
| 2149 | // mir::Const::Val(v, ty) => self. |
| 2150 | _ => symbolic_value::BOTTOM.into(), |
| 2151 | } |
| 2152 | } |
| 2153 | |
| 2154 | fn visit_const_value(&mut self, val: ConstValue<'tcx>, lty: Ty<'tcx>) -> Rc<SymbolicValue> { |
| 2155 | match val { |
no test coverage detected