[1] https://halide-lang.org/
the reference C code is just as bad.
See Verve OS from Microsoft Research, TAL and the origins of the Dafny language.
[1] https://halide-lang.org/