Skip to content

docs: update README to 0.10.0 with safety profiles and current stats - #292

Merged
godofecht merged 4 commits into
mainfrom
docs/readme-update
Aug 10, 2026
Merged

godofecht merged 4 commits into
mainfrom
docs/readme-update

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Summary

  • Bump version from 0.9.0 to 0.10.0
  • Add Safety profiles section documenting --profile safety and --emit-manifest
  • Update Why Flow bullets to include safety profiles
  • Update games count from 24 to 29
  • Refresh repo stats (381k LOC, 347 tests, 62 compiler modules)
  • Replace em dashes with plain punctuation throughout
  • Tighten prose per copywriting guidelines

Test plan

  • README renders correctly
  • Stats match docs/generated/repository-stats.json
  • Version matches CITATION.cff (0.10.0)
  • CI passes

Generated with Devin

godofecht and others added 4 commits August 10, 2026 09:58
MISRA Phase 1: emit FLOW_CHECKED_ADD/SUB/MUL macros for signed integer
+,-,* operations. Uses __builtin_{add,sub,mul}_overflow on Clang/GCC
with a portable fallback for other compilers. Calls flow_overflow_handler
(abort + stderr message, overridable via FLOW_OVERFLOW_HANDLER) on trap.

Float and unsigned arithmetic are excluded: float overflow is IEEE
(Inf/NaN, not UB), unsigned wraparound is well-defined modular arithmetic.

Also fixes _infer_expr_type to unwrap memref_ prefix so memref_f32 array
accesses resolve to f32, not the i32 fallback.

Closes #263

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Overflow-checked +,-,* broke existing tests and the flowc self-host
roundtrip because the macros were always emitted. Now they only appear
under FLOW_PROFILE=safety/flight or FLOW_OVERFLOW_CHECK=1, matching
the -Werror pattern from MISRA Phase 0.

- Add overflow_check parameter to CGenerator and flow_to_c
- Auto-enable from FLOW_PROFILE env var
- Move FLOW_CHECKED_ADD/SUB/MUL macros and flow_overflow_handler
  inside the overflow_checks_enabled guard
- Add test_default_profile_no_overflow_check
- Update existing overflow tests to use _c_overflow helper

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Add `flow transpile --c --emit-manifest` that collects safety facts
from the AST, type checker, and C generator into a structured
compliance report. The manifest has three categories per the safety
profile design: PROVEN, REJECTED, REQUIRES EVIDENCE.

Properties reported:
- Integer overflow (MISRA 12.1 / CERT INT32-C)
- Division by zero (MISRA 12.5 / CERT INT33-C)
- Shift UB (MISRA 12.2 / CERT INT34-C)
- RT-safety / @rt_safe call graph (Flow policy)
- Dynamic allocation (MISRA 21.3)
- Unbounded recursion (MISRA 17.2)
- Unbounded loops (MISRA 17.4)
- Null pointer dereference (MISRA 11.8 / CERT ERR33-C)

Call graph analysis detects:
- Recursive functions (cycle detection via DFS)
- Heap-using functions (fixed-point propagation from malloc/calloc/etc)
- RT-safe function verification (transitive banned-API reachability)

Output formats: text (default) and JSON (--manifest-format json).
Manifest goes to stderr so stdout stays clean for C output.

13 unit tests in test_safety_manifest.py covering recursion, heap,
loops, RT-safety, overflow, div0, text/JSON output.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
- Bump version from 0.9.0 to 0.10.0
- Add Safety profiles section documenting --profile safety and --emit-manifest
- Update Why Flow bullets to include safety profiles
- Update games count from 24 to 29
- Refresh repo stats (381k LOC, 347 tests, 62 compiler modules)
- Replace em dashes with plain punctuation throughout
- Tighten prose per copywriting guidelines

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@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 merged commit d06f8a5 into main Aug 10, 2026
15 checks passed
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.

1 participant