(path: &Path, reginfo: &GenericRegInfo)
| 132 | } |
| 133 | |
| 134 | fn load_function(path: &Path, reginfo: &GenericRegInfo) -> Result<GenericFunction> { |
| 135 | let function = fs::read(path).context("could not read function input file")?; |
| 136 | let function = String::from_utf8(function).context("function input is not UTF-8")?; |
| 137 | let function = |
| 138 | GenericFunction::parse(&function).context("could not parse function input file")?; |
| 139 | debug_utils::validate_function(&function, reginfo).context("function validation failed")?; |
| 140 | Ok(function) |
| 141 | } |
| 142 | |
| 143 | fn main() -> Result<()> { |
| 144 | pretty_env_logger::init(); |
no test coverage detected