Wayne is an administrator of some metropolitan area network. The network he managed can be formed into a simple connected graph with $n$ vertices and $m$ edges, which means the graph does not contain any self-loop and there is at most one edge and at least one path between every two vertices. Furthermore, the network also meets the condition there are at most two non-intersect paths, which share no common edges, between every two vertices.
Wayne knows the bandwidth of each edge in that network but it is not enough for him. He needs plenty of statistic data to display, for example, he wants to know what the maximum data rate between every two vertices is. For the sake of clarity, vertices in that are numbered from $1$ to $n$ and the maximum bits each edge could transmit per second will be given. Your task is assisting him to calculate the value of the following formula:
$$\sum_{1 \leq s < t \leq n}{\left(s \oplus t \oplus \mathrm{flow}(s, t)\right)},$$
where $\oplus$ means the bitwise exclusive-OR operator and $\mathrm{flow}(s, t)$ means the maximum bits that could be transmitted per second between vertex $s$ and vertex $t$.