Step 1 · User prompt
Add dynamic buffering to the sensor interrupt routine
The user asks for a change in a timing-sensitive path.
Software-defined robots
Developers and AI write that software. LOCI predicts how it behaves on real hardware before it runs.
Timing, power, memory, and system behavior from the compiled binary, surfaced where your coding agent works.
High-level flow
Caught before it runs on the robot.
Step 1 · User prompt
The user asks for a change in a timing-sensitive path.
Step 2 · Coding agent suggestion
A quick fix compiles, but it places heap allocation in an interrupt handler.
void ADC_IRQHandler(void) {
buf = malloc(n); // heap alloc in an interrupt
...
}LOCI warning
malloc() inside an interrupt routine. Non-reentrant behavior introduces unbounded worst-case latency and can blow the control-loop deadline.
Step 3 · Agent fix
The code is rewritten into a deterministic ISR-safe pattern. Back in envelope before runtime.
static uint8_t buf[N]; // pre-allocated, bounded, ISR-safe
Works with your coding agent, repository, and CI. SaaS or self-hosted.
Physics-bounded predictions from real execution traces.