update rule in xor_masking (in boolfuncs.py) is modified by adding an if
statement, to make sure the state is not changed when there are no
inputs coming from other edges.

Note: same thing should be done for the other boolfunctions.