Z3 String/Char xor?
问题 I'm working with Z3 in Python and am trying to figure out how to do String operations. In general, I've played around with z3.String as the object, doing things like str1 + str2 == 'hello world' . However, I have been unable to accomplish the following behavior: solver.add(str1[1] ^ str1[2] == 12) # -- or -- solver.add(str1[1] ^ str1[2] == str2[1]) So basically add the constraint that character 1 xor character 2 equals 12. My understanding is that the string is defined as a sequence of 8-bit