Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/circify/circ
/ functions
Functions
2,442 in github.com/circify/circ
⨍
Functions
2,442
◇
Types & classes
328
↓ 1,187 callers
Method
clone
(&self)
circ_fields/src/lib.rs:357
↓ 506 callers
Method
map
(&self, f: impl FnMut(Term) -> Term)
src/ir/opt/tuple.rs:103
↓ 308 callers
Method
push
Add to the queue. If `t` is already present, it is dropped.
src/util/once.rs:25
↓ 306 callers
Method
unwrap
Unwrap result of a computation TODO: Add span for debugging
src/front/c/mod.rs:155
↓ 274 callers
Method
collect
Remove entries with free'd keys.
circ_hc/src/collections/cache.rs:26
↓ 182 callers
Method
cs
(&self)
circ_hc/src/rc/template.rs:245
↓ 146 callers
Method
insert
(&mut self, k: &Node, v: T)
circ_hc/src/raw/template.rs:398
↓ 145 callers
Method
pop
Remove the oldest element from the queue.
src/util/once.rs:31
↓ 143 callers
Method
len
(self)
src/front/mod.rs:95
↓ 130 callers
Method
into
(self)
circ_fields/src/lib.rs:839
↓ 123 callers
Method
op
(&mut self, tt: &TokTree<'src>)
src/ir/term/text/mod.rs:221
↓ 110 callers
Function
term
(op: Op, cs: Vec<Term>)
src/ir/term/mod.rs:1522
↓ 94 callers
Method
unwrap
(&self, r: Result<T, E>, s: &ast::Span)
src/front/zsharpcurly/mod.rs:231
↓ 94 callers
Method
unwrap
(&self, r: Result<T, E>, s: &ast::Span)
src/front/zsharp/mod.rs:236
↓ 89 callers
Method
get
(&self, idx: usize)
src/front/mod.rs:82
↓ 78 callers
Method
len
The data length of this hasher.
src/ir/opt/mem/ram/hash.rs:73
↓ 74 callers
Method
visit_span
(&mut self, _span: &mut ast::Span<'ast>)
src/front/zsharpcurly/zvisit/zvmut.rs:21
↓ 74 callers
Method
visit_span
(&mut self, _span: &mut ast::Span<'ast>)
src/front/zsharp/zvisit/zvmut.rs:21
↓ 67 callers
Function
parse_term
Parse a term.
src/ir/term/text/mod.rs:878
↓ 59 callers
Function
check
Type-check this term, at a surface level. That is, determine its type without a full validity check.
src/ir/term/ty.rs:17
↓ 57 callers
Function
const_
Make a constant term.
src/ir/term/mod.rs:1516
↓ 48 callers
Function
bv_lit
Make a bit-vector constant term.
src/ir/term/mod.rs:1536
↓ 45 callers
Method
replace
(&mut self, to_ty: Option<Ty>)
src/front/zsharpcurly/zvisit/zconstlitrw.rs:27
↓ 44 callers
Function
bool_lit
Make a bit-vector constant term.
src/ir/term/mod.rs:1544
↓ 43 callers
Method
replace
(&mut self, to_ty: Option<Ty>)
src/front/zsharp/zvisit/zconstlitrw.rs:27
↓ 43 callers
Method
visit_expression
(&mut self, expr: &mut ast::Expression<'ast>)
src/front/zsharpcurly/zvisit/zvmut.rs:277
↓ 42 callers
Method
get
(&self, i: usize)
src/ir/opt/tuple.rs:120
↓ 39 callers
Function
bool_lit
Initialize a boolean literal
src/front/datalog/term.rs:70
↓ 39 callers
Method
field
The default field
src/cfg.rs:119
↓ 39 callers
Method
uint
Get the unsigned integer.
src/ir/term/bv.rs:200
↓ 37 callers
Function
cfg
Get the configuration
src/cfg.rs:61
↓ 37 callers
Method
contains_key
Check for a key
src/ir/term/map.rs:42
↓ 36 callers
Method
extend
(&mut self, iter: T)
src/util/once.rs:58
↓ 36 callers
Method
get
Get computation by name
src/ir/term/mod.rs:2304
↓ 35 callers
Method
take
(&mut self)
src/front/zsharp/zvisit/zstmtwalker/zexprtyper.rs:19
↓ 35 callers
Method
visit_expression
(&mut self, expr: &mut ast::Expression<'ast>)
src/front/zsharp/zvisit/zvmut.rs:303
↓ 34 callers
Function
parse_computation
Parse a computation.
src/ir/term/text/mod.rs:931
↓ 32 callers
Method
len
(&self)
circ_hc/src/raw/template.rs:387
↓ 32 callers
Method
new_v
(&self, i: I)
circ_fields/src/lib.rs:139
↓ 31 callers
Method
get
(&self, t: &Term)
src/ir/opt/mem/obliv.rs:42
↓ 29 callers
Method
new_var
Create a new [Op::Var].
src/ir/term/mod.rs:417
↓ 29 callers
Method
set
(&mut self, idx: usize, val: T)
src/front/mod.rs:85
↓ 29 callers
Method
unwrap_term
Unwrap as a language term, panicking otherwise
src/circify/mod.rs:73
↓ 29 callers
Function
var
Make a variable term.
src/ir/term/mod.rs:1511
↓ 28 callers
Method
cir_ctx
Get the circuit generation context
src/circify/mod.rs:446
↓ 28 callers
Function
log_run_check
(cmd)
driver.py:59
↓ 28 callers
Method
visit_identifier_expression
( &mut self, ie: &mut ast::IdentifierExpression<'ast>, )
src/front/zsharp/zvisit/zvmut.rs:65
↓ 26 callers
Function
parse
Identify combinations of STORE and ITE which are actually CSTORES.
src/ir/opt/cstore.rs:126
↓ 25 callers
Method
err
Unwrap a result with a span-dependent error
src/front/zsharp/mod.rs:229
↓ 25 callers
Method
modulus
(&self)
circ_fields/src/lib.rs:97
↓ 25 callers
Method
next
(&mut self)
src/ir/term/mod.rs:1636
↓ 24 callers
Method
as_value_opt
Get the underlying constant value, if possible.
src/ir/term/mod.rs:1301
↓ 24 callers
Function
cterm
(data: CTermData)
src/front/c/term.rs:121
↓ 24 callers
Function
pf_lit
Make a prime-field constant term.
src/ir/term/mod.rs:1531
↓ 24 callers
Method
visit_identifier_expression
( &mut self, ie: &mut ast::IdentifierExpression<'ast>, )
src/front/zsharpcurly/zvisit/zvmut.rs:65
↓ 22 callers
Method
downgrade
(&self)
circ_hc/src/rc/template.rs:251
↓ 22 callers
Method
fields
(&self)
src/front/mod.rs:89
↓ 21 callers
Method
as_tuple
Unwrap the constituent sorts of this tuple, panicking otherwise.
src/ir/term/mod.rs:904
↓ 21 callers
Function
eq_or
( a: &'a Sort, b: &'a Sort, ctx: &'static str, )
src/ir/term/ty.rs:665
↓ 21 callers
Function
serialize_term
Serialize a term as a parseable string
src/ir/term/text/mod.rs:885
↓ 20 callers
Function
parse_value_map
Parse an IR "value map": a map from strings to values. A serliazed IR map is a subset of serialized IR terms. It must have let-bindings for each map
src/ir/term/text/mod.rs:899
↓ 20 callers
Function
safe_nary
(op: Op, mut children: Vec<Term>)
src/ir/opt/cfold.rs:700
↓ 20 callers
Method
take
(&mut self)
src/front/zsharpcurly/zvisit/zstmtwalker/zexprtyper.rs:19
↓ 20 callers
Method
terms_postorder
An iterator that visits each term in the computation, once.
src/ir/term/mod.rs:2168
↓ 20 callers
Method
unify_expression
( &self, ty: ast::Type<'ast>, expr: &mut ast::Expression<'ast>, )
src/front/zsharpcurly/zvisit/zstmtwalker/mod.rs:71
↓ 19 callers
Method
as_pf
Unwrap the modulus of this prime field, panicking otherwise.
src/ir/term/mod.rs:889
↓ 19 callers
Method
err
Unwrap a result with a span-dependent error
src/front/zsharpcurly/mod.rs:224
↓ 18 callers
Method
as_bv
Unwrap the bitsize of this bit-vector, panicking otherwise.
src/ir/term/mod.rs:874
↓ 18 callers
Method
get
(&self, k: &Node)
circ_hc/src/raw/template.rs:392
↓ 18 callers
Method
sort
(&mut self, tt: &TokTree)
src/ir/term/text/mod.rs:355
↓ 18 callers
Method
values
All values
src/ir/term/mod.rs:787
↓ 17 callers
Method
as_array
Unwrap the constituent sorts of this array, panicking otherwise.
src/ir/term/mod.rs:919
↓ 17 callers
Method
as_sint
Get the two's complement signed integer.
src/ir/term/bv.rs:192
↓ 17 callers
Method
fqn
Get a (fully qualified) name in this space
src/util/ns.rs:23
↓ 17 callers
Method
unify_expression
( &self, ty: ast::Type<'ast>, expr: &mut ast::Expression<'ast>, )
src/front/zsharp/zvisit/zstmtwalker/mod.rs:71
↓ 17 callers
Method
visit_expression
(&mut self, expr: &mut ast::Expression<'ast>)
src/front/zsharpcurly/zvisit/zstmtwalker/zexprtyper.rs:68
↓ 16 callers
Method
clone
(&self)
circ_hc/src/raw/template.rs:205
↓ 16 callers
Function
make_array
Make an array from a sequence of terms. Requires a key sort, as all arrays do. This sort must be iterable (i.e., bool, int, bit-vector, or field). a
src/ir/term/mod.rs:1467
↓ 16 callers
Method
search
(&self, key: &str)
src/front/mod.rs:75
↓ 16 callers
Method
type_
(&self)
src/front/c/term.rs:21
↓ 16 callers
Method
visit_expression
(&mut self, expr: &mut ast::Expression<'ast>)
src/front/zsharp/zvisit/zstmtwalker/zexprtyper.rs:63
↓ 15 callers
Function
bv_or
(a: &'a Sort, ctx: &'static str)
src/ir/term/ty.rs:587
↓ 15 callers
Function
eval
Recursively evaluate the term `t`, using variable values in `h`.
src/ir/term/eval.rs:45
↓ 15 callers
Method
i
(&self)
circ_fields/src/lib.rs:531
↓ 15 callers
Method
usize
(&self, tt: &TokTree)
src/ir/term/text/mod.rs:416
↓ 14 callers
Method
elems_iter
(&self)
src/ir/term/mod.rs:981
↓ 14 callers
Method
width
Get the number of bits.
src/ir/term/bv.rs:204
↓ 13 callers
Method
as_bool
Get the underlying boolean constant, or panic!
src/ir/term/mod.rs:1356
↓ 13 callers
Function
cast
(to_ty: Option<Ty>, t: CTerm)
src/front/c/term.rs:152
↓ 13 callers
Method
check
Check that the integer value fits in the number of bits
src/ir/term/bv.rs:133
↓ 13 callers
Function
elim_obliv
Eliminate oblivious arrays. See module documentation.
src/ir/opt/mem/obliv.rs:212
↓ 13 callers
Method
flatten
(&self)
src/ir/opt/tuple.rs:77
↓ 13 callers
Method
is_full
(&self)
circ_fields/src/lib.rs:333
↓ 13 callers
Function
test_on_data
(data: Vec<usize>)
circ_waksman/src/lib.rs:275
↓ 13 callers
Method
visit_type
(&mut self, ty: &mut ast::Type<'ast>)
src/front/zsharp/zvisit/zvmut.rs:142
↓ 12 callers
Function
cbool
Create a constant boolean
src/ir/opt/cfold.rs:44
↓ 12 callers
Method
num_bits
(&self)
src/front/c/types.rs:186
↓ 12 callers
Method
subspace
Get a subspace
src/util/ns.rs:19
↓ 11 callers
Method
as_bv_opt
Get the underlying bit-vector constant, if possible.
src/ir/term/mod.rs:1257
↓ 11 callers
Method
default_value
Compute the default value for this sort. booleans: false bit-vectors: zero field elements: zero floats: zero tuples/arrays: recursively default
src/ir/term/mod.rs:1043
next →
1–100 of 2,442, ranked by callers