#c-compiler #transpiler #static-analysis

decy-debugger

Interactive debugger for Decy C-to-Rust transpiler with spydecy integration

5 stable releases

new 2.1.0 Feb 14, 2026
2.0.0 Jan 8, 2026
1.0.2 Nov 18, 2025
1.0.1 Nov 7, 2025
1.0.0 Nov 1, 2025

#5 in #c-compiler

MIT/Apache

5MB
115K SLoC

Decy Interactive Debugger

Deep integration with spydecy-debugger to provide introspective debugging capabilities for the Decy C-to-Rust transpiler.

Features

  • C AST Visualization: Display parsed C AST with colored tree view
  • HIR Visualization: Show High-level IR conversion from C
  • Ownership Graph: Visualize pointer ownership inference
  • Dataflow Graph: Display dataflow analysis results
  • Step-through Debugging: Step through transpilation pipeline
  • Diff Viewer: Compare input C vs output Rust

Architecture

C Source → Parser → AST → HIR → Analyzer → Codegen → Rust
             ↓        ↓     ↓       ↓         ↓        ↓
          [Debug] [Debug] [Debug] [Debug]  [Debug] [Debug]

Usage

use decy_debugger::Debugger;
use std::path::Path;

let debugger = Debugger::new();

// Visualize C AST
let ast_output = debugger.visualize_c_ast(Path::new("example.c"))?;
println!("{}", ast_output);

// Show ownership graph
let ownership_output = debugger.visualize_ownership(Path::new("example.c"))?;
println!("{}", ownership_output);

Dependencies

~12–25MB
~243K SLoC