Title: Logic state analyser