U3B appears to have a 100k resistor from p7 to p4, this, with the 100k input resistor gives an amp with a gain of -1 and a virtual earth (AC) at p4. In fact looking at it again, perhaps U3B is just a comparator with no feedback to give the square wave output. The two output labels seem to come...