A VS Code extension for FLUX-C guard constraint development — compile guard constraints to provably terminating FLUX-C bytecode with Coq-verified proof certificates.
- GUARD Language Support — syntax highlighting, bracket matching, auto-indent
- Compile to FLUX-C —
Ctrl+Shift+F5compiles the active.guardfile to FLUX-C assembly - Generate Proof Certificates —
Ctrl+Shift+F6generates a signed Coq proof certificate - Real-time Compilation — connects to
flux-certifybackend atlocalhost:5000
# From source
code --install-extension flux-studio-0.1.0.vsix
# Or package it
npx vsce package
code --install-extension flux-studio-*.vsix| Command | Keybinding | Description |
|---|---|---|
FLUX: Compile to FLUX-C |
Ctrl+Shift+F5 |
Compile guard constraint to bytecode |
FLUX: Generate Proof Certificate |
Ctrl+Shift+F6 |
Generate signed proof certificate |
- FLUX Certify backend running on
localhost:5000
pip install flux-certify
flux-certify serve # starts backend on :5000Create a .guard file:
battery_temp in [15, 55] with priority HIGH
sonar_frequency in [10, 50] when depth < 100
deceleration in [0.1, 0.8] when speed > 5
Press Ctrl+Shift+F5 to compile. The extension opens a new tab with FLUX-C assembly.
FLUX-C is Turing-incomplete by design:
- No backward jumps (all control flow is forward-only)
- Bounded call stack (MAX_STACK=100, hardware enforced)
- fluxc_terminates — Coq-proven: all programs halt in bounded time
This is what makes FLUX-C suitable for DO-254 DAL A, ISO 26262 ASIL-D, and IEC 61508 SIL 3 safety-critical systems.
extension.js— VS Code extension entry pointpackage.json— extension manifestguard.language-configuration.json— language configsyntaxes/guard.tmLanguage.json— TextMate grammar
MIT — Cocapn Fleet (SuperInstance)