Skip to content

Commit

Permalink
Add bit vec ord ops
Browse files Browse the repository at this point in the history
  • Loading branch information
vrindisbacher committed Dec 18, 2024
1 parent e3d717f commit 67f3131
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions crates/flux-middle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,38 @@ pub static THEORY_FUNCS: LazyLock<UnordMap<Symbol, TheoryFunc>> = LazyLock::new(
rty::FuncSort::new(vec![BitVec(bv_param0)], BitVec(bv_param0)),
),
},
TheoryFunc {
name: Symbol::intern("bv_ule"),
fixpoint_name: Symbol::intern("bvule"),
sort: rty::PolyFuncSort::new(
List::singleton(SortParamKind::BvSize),
rty::FuncSort::new(vec![BitVec(bv_param0), BitVec(bv_param0)], Bool),
),
},
TheoryFunc {
name: Symbol::intern("bv_uge"),
fixpoint_name: Symbol::intern("bvuge"),
sort: rty::PolyFuncSort::new(
List::singleton(SortParamKind::BvSize),
rty::FuncSort::new(vec![BitVec(bv_param0), BitVec(bv_param0)], Bool),
),
},
TheoryFunc {
name: Symbol::intern("bv_ugt"),
fixpoint_name: Symbol::intern("bvugt"),
sort: rty::PolyFuncSort::new(
List::singleton(SortParamKind::BvSize),
rty::FuncSort::new(vec![BitVec(bv_param0), BitVec(bv_param0)], Bool),
),
},
TheoryFunc {
name: Symbol::intern("bv_ult"),
fixpoint_name: Symbol::intern("bvugt"),
sort: rty::PolyFuncSort::new(
List::singleton(SortParamKind::BvSize),
rty::FuncSort::new(vec![BitVec(bv_param0), BitVec(bv_param0)], Bool),
),
},
// Set operations
TheoryFunc {
name: Symbol::intern("set_empty"),
Expand Down

0 comments on commit 67f3131

Please sign in to comment.