Hey Lilstormcloud.

Because you have multiple conditions that can be met, it means that if you meet multiple conditions then you will set multiple things to zero and thus lose information.

If you want to avoid this you will need to restrict the number of zeroing operations to such that you can actually reverse the computation.

This will involve looking at all combinations of zero operations and structuring the if statements so that the maximum number of zero operations for a given permutation is set. Otherwise you will lose information.