Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/tests/universal/arithmetic.rs # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / tests / universal / arithmetic.rs` 13 lines ยท 530 bytes Raw Blame History 1 // Independent Rust development oracle; explicit wrapping regardless of build mode. 2 use std::io::{self, Read}; 3 fn main() { 4 let mut input = String::new(); 5 io::stdin().read_to_string(&mut input).unwrap(); 6 for line in input.lines() { 7 let v: Vec = line.split_whitespace().map(|s| s.parse().unwrap()).collect(); 8 assert_eq!(v.len(), 2); 9 let (a, b) = (v[0], v[1]); 10 assert_ne!(b, 0); 11 println!("{} {} {} {}", a.wrapping_add(b), a.wrapping_sub(b), a.wrapping_mul(b), a / b); 12 } 13 }