Lazy decision graph compilation