Patented statistics for safe & efficient embedded software