Skip to content

Commit

Permalink
Allow polymorphic kvars and qualifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
nilehmann committed Mar 14, 2024
1 parent 1860916 commit fcbf434
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions crates/flux-fixpoint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ impl<T: Types> Task<T> {
.arg("-q")
.arg("--stdin")
.arg("--json")
.arg("--nosmthorn")
.arg("--allowho")
.arg("--allowhoqs")
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.stderr(Stdio::null())
Expand Down
2 changes: 1 addition & 1 deletion crates/flux-middle/src/rty/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ mod pretty {
}
}
ExprKind::App(func, args) => {
w!("{:?}({})",
w!("({:?})({})",
func,
^args
.iter()
Expand Down
2 changes: 1 addition & 1 deletion crates/flux-refineck/src/fixpoint_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ impl KVarStore {
let is_self_arg = i < self_args;
let var = var.to_expr();
sort.walk(|sort, proj| {
if !matches!(sort, rty::Sort::Loc | rty::Sort::Func(..)) {
if !matches!(sort, rty::Sort::Loc) {
flattened_self_args += is_self_arg as usize;
sorts.push(sort.clone());
exprs.push(rty::Expr::field_projs(&var, proj));
Expand Down
2 changes: 1 addition & 1 deletion crates/flux-refineck/src/ghost_statements/fold_unfold.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use flux_middle::{
};
use itertools::Itertools;
use rustc_data_structures::unord::UnordMap;
use rustc_hash::{FxHashMap, FxHashSet};
use rustc_hash::FxHashMap;
use rustc_hir::def_id::DefId;
use rustc_index::{bit_set::BitSet, Idx, IndexVec};
use rustc_middle::mir::START_BLOCK;
Expand Down

0 comments on commit fcbf434

Please sign in to comment.