Software Open Access

A Modern Compiler for the French Tax Code - Artifact

Denis Merigoux; Raphaël Monat; Jonathan Protzenko

In France, income tax is computed from taxpayers’ individual returns, using an algorithm that is authored, designed and maintained by the French Public Finances Directorate (DGFiP). This algorithm relies on a legacy custom language and compiler originally designed in 1990, which unlike French wine, did not age well with time. Owing to the shortcomings of the input language and the technical limitations of the compiler, the algorithm is proving harder and harder to maintain, relying on ad-hoc behaviors and workarounds to implement the most recent changes in tax law. Competence loss and aging code also mean that the system does not
benefit from any modern compiler techniques that would increase confidence in the implementation. 

We overhaul this infrastructure and present Mlang, an open-source compiler toolchain whose goal is to replace the existing infrastructure. Mlang is based on a reverse-engineered formalization of the DGFiP’s system, and has been thoroughly validated against the private DGFiP test
suite. As such, Mlang has a formal semantics; eliminates previous hand-written workarounds in C; compiles to modern languages (Python); and enables a variety of instrumentations, providing deep insights about the essence of French income tax computation. The DGFiP is now officially transitioning to Mlang for their production system.

This is the artifact accompanying the published paper at Compiler Construction 2021. 

 

Files (5.7 GB)
Name Size
artefact_description.pdf
md5:65bfd35c95a08dd182fdb5a324b61700
173.8 kB Download
Mlang CC2021 Artefact.ova
md5:5bd8b54e3861c2d6d4960b2c0ab8eba3
5.7 GB Download
67
29
views
downloads
All versions This version
Views 6727
Downloads 2917
Data volume 68.4 GB3.0 MB
Unique views 3921
Unique downloads 2314

Share

Cite as