CFDL

Operating Business (OpCo) examples show revenue, opex, working capital, and exit multiple for DCF-style valuation. All use the OpCo pack (use pack "opco"). For when to use streams vs contracts (e.g. individual revenue/opex items → stream), see the Language Guide.

Example ladder

ExamplePurpose
with_packRevenue + opex only (tutorial).
opco_with_growthRevenue line with growth_rate > 0.
opco_basicFull OpCo: revenue, opex, working capital, exit multiple.
opco_multi_fileFull OpCo split across structure.cfdl, contracts.cfdl.

Run configs

Each example directory includes a run.json for deterministic runs. Example:

./target/debug/cfdl compile examples/opco_basic --out /tmp/opco.ir.json --packs packs
./target/debug/cfdl run /tmp/opco.ir.json --out /tmp/opco.results.json --config examples/opco_basic/run.json --packs packs

Structure

  • Entities: Examples use operating business; multi-entity (e.g. company + LOBs) can be added when needed.
  • Pack contracts: opco_revenue_line, opco_opex_line, opco_working_capital, opco_exit_multiple — see Packs and OpCo pack README.