x += 2
print('d:', d)
goal = str2array('\xbd#C#@#A#')
print('goal:', goal)
s = Solver()
i = 0
while i < len(d):
    s.add(d[i] == Concat(goal[2 * i + 1], goal[2 * i]))
i += 1
print(s)
print(s.check())
print(s.model())
Learning Z3py - Is there support for arrays and loops