rewrite chain analysis in preparation for common goroutine implementation of event/LP analysis step.