Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (21 sloc) 724 Bytes
var = ['bytwycju','yzvyjjdy','vugljtyn','ugdztnwv','xbfziozy','bzuwtwol',
'wwnnnqbw','uclfqvdu','oncycbxh','oqcnwbsd','cgyoyfjg','vyhyjivb',
'yzdgotby','oigsjgoj','ttligxut','dhcqxtfw','szblgodf','sfgsoxdd',
'yjjowdqh','niiqztgs','ctvtwysu','diffhlnl','thhwohwn','xsvuojtx',
'nttuhlnq','oqbctlzh','nshtztns','htwizvwi','udluvhcz','syhjizjq','fjivucti','zoljwdfl','sugvqgww','uxztiywn','jqxizzxq']
s = set()
for i in var:
for c in i:
s.add(c)
for c in s:
print c + " = BitVec('" + c + "',32)"
print "solv = Solver()"
for c in s:
print "solv.append(" + c + " < 10, " + c + " >= 0)"
for i in var:
out = ""
out += i + "="
i = list(reversed(i))
for c in range(0,len(i)):
out+= i[c] + "*1" + "0"*c +"+"
print out[:-1]