you could also probably go a little further for the core of the library and use the SPARK subset of Ada. It is almost like it was made for the purpose http://www.adacore.com/sparkpro/language-toolset
http://en.wikipedia.org/wiki/SPARK_(programming_language)