Skip to content

Fixes #274 #275 #276 #277 #278 #280 #281 #283 #284 — MISRA Phase 2 - #394

Merged
godofecht merged 3 commits into
mainfrom
cursor/misra-phase2-b994
Aug 10, 2026
Merged

godofecht merged 3 commits into
mainfrom
cursor/misra-phase2-b994

Conversation

@godofecht

@godofecht godofecht commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

MISRA/CERT Phase 2 — documentation and safety-boundary enforcement independent of open PRs #288 / #393.

Issue Change
#278 docs/certification/ hub + MISRA/CERT matrices
#283 -Werror=implicit-function-declaration under safety/flight
#275 lib/stdlib/checked_arith.flow (wrapping/saturating/checked helpers)
#284 @safe / @unsafe attributes + type-checker boundaries
#276 safety/flight require @unsafe on extern
#281 FLOW_DIAG macro (override to silence stdio in fault paths)
#280 reproducible C-emit unit test + docs
#277 ./flow analyze lightweight MISRA/CERT pattern scan
#274 --profile flight bans compiler-injected heap + post-codegen scan

Still elsewhere

Test plan

  • pytest tests/unit/test_misra_phase2.py
  • FLOW_HOST=python ./flow run examples/basics/checked_arith_smoke.flow
  • FLOW_PROFILE=flight transpile of hello_world succeeds without malloc
  • ./flow analyze flags malloc
Open in Web Open in Cursor 

@cursor cursor Bot changed the title Fixes #275 #276 #277 #278 #280 #281 #283 #284 — MISRA Phase 2 safety boundaries + certification docs Fixes #274 #275 #276 #277 #278 #280 #281 #283 #284 — MISRA Phase 2 Aug 10, 2026
cursoragent and others added 3 commits August 10, 2026 12:09
Add MISRA/CERT compliance matrices (#278), FLOW_DIAG (#281),
-Werror=implicit-function-declaration under safety (#283),
checked/saturating/wrapping stdlib helpers (#275), @safe/@unsafe with
required @unsafe extern under safety (#284/#276), reproducible C-emit
test (#280), and ./flow analyze pattern scanner (#277).

Co-authored-by: Abhishek Shivakumar <[email protected]>
Under FLOW_PROFILE=flight, flow_strcat and escaping closures no longer
malloc; transpile fails if generated C still contains malloc/calloc/
realloc/free.

Co-authored-by: Abhishek Shivakumar <[email protected]>
@godofecht
godofecht force-pushed the cursor/misra-phase2-b994 branch from f0f3d57 to 117dddf Compare August 10, 2026 11:15
@godofecht
godofecht marked this pull request as ready for review August 10, 2026 11:15
@godofecht
godofecht merged commit 8bac8d6 into main Aug 10, 2026
3 checks passed
@cursor

cursor Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@godofecht
godofecht deleted the cursor/misra-phase2-b994 branch August 10, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants