Sorry, but if x is stored in one location in the memory, both checks would return the same value, unless the bit flip happened between the checks. Also, if we imagine they were 2 different instances of x and one of the checks returns false, because of the AND, the whole statement would return false.
I wish this was true, though. Would make ECC RAM redundant
View all comments
Show parent comment
8
u/BrokenMalgorithm Mar 02 '26
Sorry, but if x is stored in one location in the memory, both checks would return the same value, unless the bit flip happened between the checks. Also, if we imagine they were 2 different instances of x and one of the checks returns false, because of the AND, the whole statement would return false.
I wish this was true, though. Would make ECC RAM redundant