Scope and Limitations¶
This page says what heki checks, what it leaves to other tools, where its knowledge comes from, and what it does when it cannot tell.
What heki covers¶
- The core is what a program does across functions and modules: effects, changes to state, aliasing, purity, and async and resource behavior. One file or one type cannot decide these.
- Walls are contracts you write, or that
heki recommendproposes, on who may write, read, call, reach an effect, and import what. Which modules may import which, and import cycles, are walls (ADR-022). heki's import rules ship as experimental: theimport-boundariescontracts, and opt-in rules for import cycles, circular imports that fail, and imports of test code or of dependencies declared only for development or in an extra. Reading tach's and import-linter's contracts is planned. - Patterns and style that one file decides belong to linters such as Ruff and isort, and type correctness to type checkers.
- An idea from another language's tools is taken when it fits the core or the walls and passes the evidence gate: counts on a corpus, real harm, and no false exact claim (How a rule gets into heki).
- Framework knowledge enters as catalog data
(
[[tool.heki.ecosystem]]). heki has no rules written for one framework.
Where heki fits¶
| Tool | Looks at | Example |
|---|---|---|
| A linter such as Ruff | Syntax and style, one file at a time | time.sleep() written directly in an async def; a discarded asyncio.create_task(...) |
| A type checker such as ty | Whether values match their declared types | a str passed where an int is expected |
| An import-graph checker such as tach or import-linter | Which modules may import which | app.api importing app.db when the declared layers forbid it; planned in heki: these tools' contracts read as heki contracts, and which imports run while a module loads |
| heki | What code does, not what types it has: effects and aliases, through any number of calls | an async def that reaches requests.get three helpers away; a model field written outside the store that owns it; an attribute __hash__ reads changing after the object went into a set |
heki differs from these tools in what it models: effects and aliases. It leaves syntax and types
to the tools that model them, also as they grow. Where another tool covers part of a case, heki
keeps the rest: Ruff's RUF006 reports discarded tasks, so EFF107 reports only the tasks bound
to a variable.
Clean for Ruff, ty, and tach; broken all the same¶
# app/clients.py
import requests
def fetch_json(url: str) -> dict:
return requests.get(url, timeout=5).json()
# app/users.py
from app.clients import fetch_json
def load_profile(user_id: int) -> dict:
return fetch_json(f"https://api.example.com/users/{user_id}")
def load_user(user_id: int) -> dict:
return {"id": user_id, **load_profile(user_id)}
# app/api.py
from app.users import load_user
async def handler(user_id: int) -> dict:
return load_user(user_id) # blocks the event loop three calls down
# app/models.py: only `Store.*` may write `Model.fields` (a write-owners contract)
class Model:
def __init__(self) -> None:
self.fields: list[str] = []
class Store:
def add_field(self, model: Model, name: str) -> None:
model.fields.append(name)
def add_default(fields: list[str]) -> None:
fields.append("id")
def parse(model: Model) -> None:
fields = model.fields
add_default(fields) # changes `Model.fields` behind the store's back
[[tool.heki.write-owners]]
name = "model-store"
targets = ["Model.fields"]
allowed-writers = ["Store.*"]
Each of these passes, because each tool sees one step:
| Command | Sees | Does not see |
|---|---|---|
ruff check --select ASYNC,B,RUF,PERF,PL,SIM,FURB,S |
requests.get only when it is written in the async def itself |
the call three helpers down |
ty check |
a list[str] passed where a list[str] is expected |
that add_default changes Model.fields |
tach check (with app.api → app.users → app.clients declared) |
app.api importing app.users, which is allowed |
what load_user does |
heki follows the call into load_user and the alias into add_default:
$ heki check --output-format concise
app/api.py:5:12: EFF101 `app.users.load_user` always runs the waiting call `requests.get` on the event loop (3 calls down, on every path)
app/models.py:17:5: MUT201 [heuristic] `parse` writes `Model.fields` (through a helper) via `app.models.add_default` outside the write owners of `model-store`
Found 2 diagnostic(s) in 4 file(s).
note: 4 heuristic rule(s) are off; enable them with `--heuristic` or `lint.heuristic = true`
Where heki pays off¶
| Code | What heki finds |
|---|---|
| Async services, and web or database code written in layers of helpers | blocking calls that reach the event loop, clients and queries created inside loops (N+1), I/O while a lock or a transaction is held |
| Large code bases that protect shared state by convention, review, or their own checkers | contract violations, followed through aliases, helpers, and subclasses |
| Loops over growing collections | proven-safe rewrites and suggestions for quadratic patterns |
In small scripts, or code that is mostly synchronous and self-contained, a linter and a type checker cover most of what matters, and heki reports little.
What heki does not do¶
| Check | Use instead |
|---|---|
| Style, formatting, and syntax | a linter such as Ruff |
| Type errors | a type checker such as ty |
Import order, required imports, import conventions, relative-import style, and the lazy policy of one file |
a linter such as Ruff (I, ICN, TID252, TID254, TID255), or isort for the order |
| Dead code and duplicated code | Ruff or vulture |
Constant-factor micro-optimizations, such as hoisting re.compile |
no heki rule |
- heki does not change your code's shape: it adds no decorators, contract types, or runtime checks, and it does not compile or rewrite code at build time.
- heki never runs or instruments your program, and reads no profile of it.
Where heki's knowledge comes from¶
| Source | What it tells heki | Extend it with |
|---|---|---|
| Its own analysis | an SSA form of every function; aliases (copies, attributes, and the iterators and views derived from an object); what each function mutates and which effects it reaches, propagated over the project's call graph until nothing changes | - |
| A catalog of library behavior | requests.get blocks on the network; asyncio.to_thread(fn) and @sync_to_async run a function on another thread; logging calls are never reported; sqlite3.connect() returns a Connection; threading.Lock is a synchronous lock |
[[tool.heki.ecosystem]] |
| Contracts you declare | who may write, read, or call (write-owners, read-owners, call-owners); which returned objects are shared (readonly-returns); which changes must be announced (invalidation); which functions must not reach I/O or writes (effect-boundaries); which modules a module may import (import-boundaries) |
contracts in the configuration |
| Type annotations, as hints only | which class an object has and which method a call reaches: session: Session makes session.execute(...) a database call |
annotations in your code |
- heki does not analyze the source of the standard library or of installed packages: the catalog declares their effects.
- Contracts need no decorators, no special types, and nothing at run time.
- The checking rules (
MUT,EFF,DATA,OPT112,OPT113) use annotations. The rewriting rules never read them, because a subclass can override any method (see Fixes and Safety).
How a call is resolved¶
heki looks for the callee in this order:
- local constructors and imports;
- annotations;
- attributes
__init__or__post_init__assigns and globals the module body assigns: the join of what every store of each binds; - the class hierarchy, up to eight overriding methods.
It also follows container item types (list[Model]), return annotations along the MRO,
isinstance narrowing, unions of up to three classes, and project Protocols.
When heki cannot tell¶
A rewrite and an exact report make the same choice when information is missing, in opposite directions; a heuristic report makes it only for some premises:
A rewrite (OPT fix) |
An exact report | A heuristic report | |
|---|---|---|---|
| Needs | a proof | every premise of its claim established | evidence, with some premises open |
| What heki cannot see | counts as shared and blocks the fix | stops the report | stops it for an unresolved call; does not stop it for the premises its rule page marks open |
| What you get | the diagnostic names the failed obligation: [not auto-fixable: ...] |
no report: a missed finding, never a guess | a report labelled heuristic, which can be wrong about the code |
Each rule page lists the premises of its claim under "What a report states", and which of them a heuristic report may not have established (Rule Precision).
A report that crosses functions shows its call chain as related locations. A call heki cannot resolve is not followed:
- a value of type
Any, or an unannotated parameter; - a method name computed at run time;
- a call with more than eight possible overrides;
- a method no project class along a class's MRO defines, when a base of the class is a value
heki cannot name where its class statement runs (
class Derived(base)withbasea parameter, a local, or a call's result), which may define it; such a class is no subclass of any project class either; - a function outside the checked files that the catalog does not list.
Two more cases stay quiet by design:
- A branch the caller's arguments switch off is not followed:
load(name, cache=False)does not reach the request underif cache:. - A client or query created only while an attribute is unset counts once per object, not once
per loop iteration, and so does a
functools.cached_propertygetter; one created only while a module global or a local variable the loop carries is unset (or a first-iteration flag holds), or right before the loop ends (break,return,raise), counts once per loop. - A blocking wait on a
concurrent.futures.Futureknown to be done (if f.done():, afterawait asyncio.wrap_future(f)) returns at once. queue.Queue.putwaits only on a queue known to be bounded: a positivemaxsizeon some path, every path known. Aputon a queue heki cannot follow to where it is built is not reported.
A file that cannot be read or does not parse is reported (exit code 2), and every other file is
checked as usual. A file that does not parse cannot run either, so heki assumes nothing it would
do: it calls nothing, defines no subclass, and patches no builtins. Its module still owns its
name: import requests reaches a project's own requests.py, and while that file does not
parse, the names under it resolve to nothing, never to the requests of the catalog.
A function whose model would pass its size budget (4 units per byte of its source, at most
50,000; real code stays below one unit per byte) is left unmodeled: heki rewrites nothing in it
and treats its body as one call it cannot resolve. heki assumptions lists it with the hazard
unmodeled. A function whose proof state (a fact per variable per block) would pass 8 cells per
byte of its source, at most 250,000, gets no OPT finding: heki does not try to prove a rewrite
in it. A function whose lazy initializations (the blocks each covers, and the walks that find
them) would take more than 8 cells per byte of its source, at most 250,000, has none of them
recognized: in a heuristic report its clients and queries count as made on every iteration,
and an exact report stops there.
A heuristic report goes the other way for the premises its rule page marks open: a branch heki cannot decide counts as taken, a loop in which heki cannot show that a call runs once counts as running it on every iteration, and a size heki cannot bound counts as data-sized (the code does not fix it at 16 items or fewer). A loop over a list that is small by its nature (the columns of a table, a handful of options) is reported: the report states a loop whose size the code does not bound, and whether the loop is slow is the harm, which the rule cannot see. When an open premise is false (a bound the code states that heki does not read, a call that cannot run on every iteration), the report is wrong about the code, which is why it is heuristic. An exact report never claims a size: it names the input a loop steps through.
Missed findings close as heki learns more:
| heki lacks | Add |
|---|---|
| the class of a value | an annotation |
| your blocking or offloading APIs | an entry in [[tool.heki.ecosystem]] |
| the rules of your shared state | a contract |
Known limitations¶
Dynamic names¶
setattr(obj, "fields", v), getattr(obj, "fields"), getattr(obj, "method")(...), and
obj.__dict__["fields"]:
- Followed when the name is a constant: a literal, a module-level
Finalstring (KEY: Final = "_key"), also when imported, re-exported, or bound to anotherFinalname, a module-level string bound once in its module, or a class constant declaredClassVarorFinaland bound once (Model.KEY,self.KEY,cls.KEY). - Not followed for a module-level name without
Finalthat another module rebinds or deletes, one bound in a loop, or before a star import that may rebind it or on only some of the paths after it (if flag: from m import */else: KEY = "x"), a class constant stored on its class or an instance outside the class body (Model.KEY = "x"; from another module, only one withoutFinal), a class constant a subclass defines again, is given its own value (Child.KEY = "x"), or inherits first from another base it lists before the class (class Child(Other, Model); read on that subclass, or on an instance orclsthat may be one), aFinalfield of a dataclass or of a class adataclass_transformbuilds read on an instance (Keys("x").KEYis"x"), or on a class object whose default a class withslots=Trueor built by a transform replaces, or a computed name. setattrandobject.__setattr__are followed through a module-level name bound once to them (_set = object.__setattr__) and called on their module (builtins.setattr), andgetattr(obj, "fields")isobj.fieldsitself: changing what it returns changes the attribute's object.vars(obj)(the builtin, not a name shadowing it) isobj.__dict__: an entry stored, deleted, set by a container method, or updated in place (vars(obj) |= other, also onobj.__dict__) through either is a write of the attribute it names. Where reading it runs no code of the instance's classes, the namespace is a builtindict, so its methods resolve (obj.__dict__.get(KEY)is no call heki cannot resolve); a class object's namespace is a read-only proxy and has no class.- A write-owners contract sees a container change through what a method or a property returns
when it returns the attribute itself on every
return(node.members().append(x)withreturn self.items) and every class the object may be runs it. Acached_propertyhands out nothing: what the instance keeps can be replaced. - A
write-ownerscontract withunresolved = "report"reports the writes heki cannot tie to a class (MUT205). - A private helper hands its accesses to the callers heki sees. A helper some code also hands on
as a value (a table, a class attribute, an argument) has callers heki does not see: an owner
contract with
unresolved = "report"judges it as if it had no callers, and one without lets its callers decide. - An effect boundary is silent where heki cannot see: a call it cannot resolve, or a write on an
object of unknown class, in a scope's reach. With
unresolved = "report"it reports them (EFF201).
Objects without a known class¶
- Reads and writes through
Anyor unannotated parameters are not tied to a class, so contracts on that class do not see them. A contract withunresolved = "report"reports them by name: writes underMUT205, reads underMUT206, and method calls underMUT207. - A write in an unannotated helper is still found where a caller passes it an object of a known class. A read is not.
- Not typed: values declared
Anyortypes.ModuleType, generics substituted through unboundedTypeVars (a bounded or constrained one gives its bound or constraints), names a module binds to a type expression more than once or with type parameters (a type alias bound once names its value), calls of a subscripted class other than a builtin orcollectionscontainer (Box[int]()), and calls oftype[C]attributes. - A module-level table of functions (
HANDLERS = {"create": create}) gives the value of a key a string constant gives, and one of its values for any other key, only while no code changes it in place; a change through a call it is handed to (register(HANDLERS)) is not seen. Changing a dict, set, or list a global or an attribute holds in place joins what the change adds to its items when heki types it (append(x)withx: Field,extendor+=of a list of known items,d[k] = vwithvof a known class), and leaves its items untyped otherwise. A change of an item it holds (d[k].append(x)) is not seen. - A function a value holds is known where the code that makes the value shows it: a field of a
NamedTupleor a frozen dataclass whose generated constructor the code calls (also through a table of such instances bound once), the function a factory returns when everyreturngives one, and a class attribute bound tofunctools.partialof a function, read through the class or wrapped instaticmethod. A call through a field of a dataclass that is not frozen, one with a__post_init__, or a class adataclass_transformdecorator builds, through a value handed in as a parameter (a view or a callback a caller passes), through a plainpartialattribute read on an instance (Python 3.14 binds the instance to it, older versions do not), and through apartialholding a positional argument is a call heki cannot resolve. - The type of a module global or an instance attribute joins every store of it through a
receiver whose type heki knows:
self, an instance of the class (a parameterobj: Helper,cls()in a class method, one the storing module keeps in its own attribute or global, as inself.base.client = ...), the module (also imported in a function, or throughsetattrorvars). A store through a receiver without a known type (def configure(obj): obj.client = ..., a parameter whose default is the module) is not joined, nor is one through aProtocolvalue, so the join of the other stores may be wrong for values it stores. The same holds for a receiver read from an attribute or a global of another module (def swap(app: App): app.state.client = ..., whereApp's module typesstate), and a receiver kept in an attribute or a global of the storing module has the type that module's stores give it: when yet another module stores an instance of another class there (owner.base = Other()), a store through it is not joined into that class. - The items of a container an attribute or a global holds are those of the values its stores
bind (
self.clients = [httpx.Client()]): what another function adds to the container (self.clients.append(client),self.clients += [client]) is not joined, so a loop over it takes every item to be of the classes the stores give. __setstate__restoring an instance's namespace from its state keeps the attributes' types when the class's__getstate__builds the state from the instance's own attributes. One putting an attribute's value under another attribute's name (return {"client": self.other}) is not seen.- A store into an instance's namespace through a method called with a
*argument (self.__dict__.setdefault(*pair)) is not seen. - Two shapes of module-level names that no linted code writes are taken wrongly. After a
globalstatement at the module level (where it does nothing), a store of the name in atrybody counts as run even when a call before it in the body raises, and a list bound to__all__counts as unchanged when the module body appends to it. ATYPE_CHECKINGthat a branch binds to the flag after the module bound it to something else (TYPE_CHECKING = True, thenif cond: from typing import TYPE_CHECKING) counts as the flag on every path, so imports under a laterif TYPE_CHECKING:count as not running.
Names the catalog does not list¶
Catalog lookups are exact. These contribute no effect until you add them with
[[tool.heki.ecosystem]]:
- a class reached through another public name:
from sqlalchemy import Engineforsqlalchemy.engine.Engine,redis.StrictRedisforredis.Redis; - a method the catalog does not list;
- objects reached through subscripts or framework attributes, which have no known class:
client["app"]["users"], Django'sModel.objects.
Properties¶
- Followed: reading a
@propertyorfunctools.cached_propertyof a project class runs its getter. Its effects, writes, and the attributes it reads count for the reader, also through base classes, overriding subclasses, andsuper(). The getter's return annotation types the value read. - Not followed: a property that also defines a setter or deleter (
@x.setter), andx = property(get_x).
Read-only types¶
MUT110followsSequence/Mapping/AbstractSet/ReadOnlyparameters into the helpers they are handed to, any number of calls deep. A helper parameter annotated with a mutable type is left to the type checker, and a container inside the argument does not count.MUT108(opt-in) follows frozen dataclasses,NamedTuples, classes that adataclass_transform(frozen_default=True)in the checked files builds,Final/ReadOnlyattributes, andReadOnlyTypedDictkeys. It does not see the transforms of installed packages (attrs, Pydantic), and an instance the function constructs itself counts as under construction.MUT120(opt-in) follows read-only views, classes and protocols of properties without a setter: a helper that does not see the view's type and rebinds one of its properties, and the container a property returns changed in place. A write through the view itself is left to the type checker.
Generators and coroutines¶
A generator's body runs where it is iterated:
| Followed | Not followed |
|---|---|
a for loop or a comprehension |
a generator handed to anything else: StreamingResponse(rows()), a container |
unpacking, yield from |
a generator only stepped with next() |
a consuming call: list(...), "".join(...), items.extend(...) |
a generator unpacked into a call: f(*rows()) |
a lazy wrapper iterated there: enumerate(...) |
|
| a project function iterating it |
- A generator a function returns runs where its caller iterates it.
- A generator nothing iterates (a call as a statement, a value only tested for truth) never runs
its body;
EFF116reports such calls. - A generator expression counts where it is written.
- A coroutine runs where it is awaited; one only scheduled (
asyncio.create_task) is checked on its own. - Iterating an object runs its class's
__iter__only for classes the catalog lists (a SQLAlchemyQuery). The__iter__methods of project classes are not followed.
Guards¶
- Followed: a test of the function's own input: truthiness,
is None,isinstancewith builtin classes, theioclasses, oros.PathLike, orhasattrwith a string literal, also after the function rebinds the input on some paths (if buf is None: buf = StringIO()). - Decided by: constants, displays and comprehensions,
io.StringIO/io.BytesIOobjects the caller constructs, and the literal defaults of omitted parameters (hasattronly for the methods of the file protocol:read,write,close, ...); not by an f-string, the result of another call, or an instance of a subclass. - Not followed:
a or b(no guard on either value), andisinstancewith project classes or annotated types. - A lazy initialization needs a direct test and the store in the function itself: a test in a
caller of the method that stores, a test combined with
or/and, and memos keyed by an argument (@lru_cache, a dict) are not followed. - A future is known to be done only through
f.done()andawait asyncio.wrap_future(f), not through an event or another future its done callback sets. - A queue is known to be bounded through local variables, the attributes its class family's own
bodies and methods store, module globals, and parameters whose project callers decide (a
helper's at each call, an
async def's by the join of every caller). Not followed: stores into an attribute from outside the class family, amaxsizechecked to be positive but not known, an integer constant imported from another module or passed on through a parameter other than a literal default, and a queue whose function has no project caller. EFF201does not use guards.- An object a factory function returns counts as obtained once, like a pooled connection.
Separate scopes¶
- Generator expressions and lambdas are analyzed as functions of their own:
next(b for b in bs if b.id == a.id)inside a loop is not reported as a nested-loop join. - Two lambdas in one function share the qualified name
f.<locals>.<lambda>, so heki may attribute one lambda's effects to a call of the other:
import requests
async def handler(url: str) -> int:
fetch = lambda: requests.get(url, timeout=5)
size = lambda: len(url)
return size() # reported as reaching `requests.get` (EFF101)
Metaprogramming and frameworks¶
__getattr__ proxies, metaclasses, classes created at run time, and framework machinery
(validators, ORM lazy loading, dependency injection) are not modeled. heki has no
framework-specific rules.
The target Python version¶
Results follow target-version, which defaults to the
oldest version requires-python admits.
- From Python 3.12, list, set, and dict comprehensions run in the enclosing function (PEP 709): a
comprehension inside a loop can be reported for
py312and not forpy311. - From Python 3.14, annotations are evaluated lazily in
__annotate__scopes (PEP 649). - From Python 3.15,
sentinelis a builtin (PEP 661): aMUT118report recommends it, and has a fix that uses it; for an older version it namestyping_extensions.sentinel. - The parser reads Python 3.15 syntax for every target version:
lazy import(PEP 810) is a lazy import also in code for an older version. - Syntax newer than the target version is analyzed, not reported: that is Ruff's check.
Source encodings¶
heki reads the encoding a PEP 263 declaration names: UTF-8 (with or without a BOM), Latin-1, and ASCII. A file declaring any other encoding is reported as an error and not checked. Unlike a file that does not parse, such a file runs: what it defines and does stays unknown to the analysis of the other files.
Sizes known only at run time¶
Whether a collection is small is decided from the code: a list whose size depends on the input counts as large, even when it always holds three items. The rules this affects are marked size-dependent; Fixes and Safety lists what counts as a fixed size.
Callers outside the checked files¶
Contracts reason about the callers heki sees: a private helper hands its reports to its callers, and a function called only from allowed writers is not reported. Code outside the run, such as tests left out of it, is not known.
Measured and not taken¶
These shapes were measured on the Stage 0-A corpus (378 packages, 30.75 million lines) and not built. Each failed the bar for a default rule: at least 10 % of the judged sample harmful, and no false exact claim.
- Late binding of loop variables: 132 closures in 38 packages beyond the 3,865 names Ruff B023 reports; every harmful one is already a B023 report, and heki found none that B023 misses.
- Resource use after close: 289 sites in 80 packages, 8 % harmful, with false exact claims. Left to runtime and review.
- Resource leaks across calls: 1,848 sites in 162 packages, 4 % harmful; about half are direct
constructors that Ruff
SIM115and PylintR1732flag. - Command-query separation (a
get_*,is_*, or property that changes state): 11,558 sites in 254 packages, 4 % harmful; most are caches heki does not see as caches. - Dropped results of pure calls: 59,083 sites in 327 packages, no harm in the sample; the real bugs
are
strmethods onstrvalues, which pyrightreportUnusedCallResultcovers. - Stale caches: 199 sites in 54 packages, 5 % harmful; Ruff B019 and Pylint W1518 flag the cache on a method.
asyncio.rununder a running loop: 71 sites in 12 packages, 1 of 25 judged right; nearly all are guarded by a test heki does not model.- Writes lost in a child process: 62 sites in 27 packages, 4 % harmful.
Popenpipes left unread: 22 sites in 13 packages, 5 % harmful.CancelledErrorswallowed: 466 sites in 62 packages, none harmful as judged; flake8-asyncASYNC103andASYNC104cover the shape.BytesIOread without a seek: 69 sites in 7 packages, 57 of them one test suite; too rare.- Opposite lock orders: 106 ordered pairs of named locks in 31 packages, no pair in opposite order.
- An
exceptclause that nothing in itstrybody raises, through its calls: 2,730 clauses in 157 packages for project exceptions and 3,597 in 153 for library ones; of 60 judged, one was harmful, and that one is a one-statement shape. Which exceptions a function can raise is planned as aheki inspectfact instead.
How a rule gets into heki¶
heki only takes checks that need what it can prove. A proposed rule goes through four questions, in order:
- Can the syntax of one file decide it? Then it belongs in a linter such as Ruff.
- Is it a type error, or can an annotation express it? Then it belongs in a type checker
such as ty. heki's part is to say where the code already keeps what such an annotation would
state, so that the annotation can be written and the type checker checks it from then on
(planned in
heki recommend, ADR-023). - Can one import statement decide it? Its order, its form, or a banned name: then it belongs in a linter such as Ruff.
- Does it need at least one of the proofs below? Only then is it a heki rule.
A heki rule is measured on a corpus and reviewed by hand before it is enabled by default. Where
another tool covers part of it, heki keeps only the rest (EFF107 and Ruff's RUF006). An idea
from another language's tools goes through the same questions, and joins with counts on a corpus,
real harm in the reports, and no false exact claim.
The proofs heki can make, on five axes:
| Axis | What heki establishes | Used by |
|---|---|---|
| Control flow | which statements can run after which: CFG paths, loops and their bounds, exception edges | MUT106, MUT113, MUT208, EFF102, EFF103, EFF106, EFF109, EFF110, EFF114, DATA101, OPT |
| Calls | which functions a call reaches across modules, and what they do (summaries propagated over the call graph) | EFF101, EFF109, EFF110, EFF112, EFF114, EFF115, EFF116, EFF117, EFF201, MUT103, MUT108, MUT110, MUT120, MUT112, MUT113, MUT119, MUT201–MUT204, MUT208 |
| Aliases | which names, iterators, and views refer to one object; whether it is unique to its frame and of an exact builtin type | MUT202, MUT201, MUT204, MUT108, MUT110, MUT120, MUT112, MUT119, EFF107, EFF109, EFF110, EFF112, OPT101–OPT130 |
| Effects | which blocking, network, file, or database work runs, from the catalog of library behavior | EFF101–EFF106, EFF201, DATA101 |
| State | which attributes and containers a function reads, writes, or mutates, and who may do so | MUT101, MUT107, MUT108, MUT110, MUT120, MUT111, MUT112, MUT113, MUT201–MUT204, MUT208 |