anthem-rs/src/main.rs

17 lines
319 B
Rust
Raw Normal View History

2020-02-01 17:13:43 +01:00
fn main()
2020-01-24 13:32:43 +01:00
{
pretty_env_logger::init();
2020-02-01 17:13:43 +01:00
let program = match std::fs::read_to_string("test.lp")
{
Ok(value) => value,
Err(error) =>
{
log::error!("could not read input program: {}", error);
std::process::exit(1);
},
};
2020-02-01 19:20:46 +01:00
2020-02-02 02:53:04 +01:00
std::process::exit(anthem::translate::verify_properties::translate(&program));
2020-01-24 13:32:43 +01:00
}