Prevent corruption to rax during stack alignment on x86-64 (#670)
[dyninst.git] / external / variantComparer.py
1 old = ""
2 new = ""
3 with open("rose/rose-compat.h") as f:
4     old = f.read().replace('\n', '')
5 with open("rose2/rose-compat.h") as f:
6     new = f.read().replace('\n', '')
7
8 old = old.split("{")[1].split("}")[0]
9 new = new.split("{")[1].split("}")[0]
10
11 oldlist = set()
12 newlist = set()
13
14 oldvals = old.split(',')
15 for val in oldvals:
16     oldlist.add(val.split('=')[0].strip())
17
18 newvals = new.split(',')
19 for val in newvals:
20     newlist.add(val.split('=')[0].strip())
21
22 printset = oldlist.difference(oldlist.intersection(newlist))
23 for val in printset:
24     print(val.replace("V_", ""))
25
26
27 '''
28 V_SgAsmPEImportLookupTable
29 V_SgAsmPEImportHNTEntry
30 V_SgAsmx86RegisterReferenceExpression
31 V_SgAsmTypeWord
32 V_SgAsmType80bitFloat
33 V_SgAsmFile
34 V_SgAsmTypeDoubleQuadWord
35 V_SgAsmByteValueExpression
36 V_SgAsmTypeSingleFloat
37 V_SgAsmPowerpcRegisterReferenceExpression
38 V_SgAsmSingleFloatValueExpression
39 V_SgUpcLocalsizeof
40 V_SgAsmDoubleWordValueExpression
41 V_SgAsmTypeQuadWord
42 V_SgAsmFunctionDeclaration
43 V_SgAsmType128bitFloat
44 V_SgAsmTypeDoubleFloat
45 V_SgAsmPEImportILTEntry
46 V_SgAsmDeclaration
47 V_SgUpcElemsizeof
48 V_SgAsmTypeDoubleWord
49 V_SgAsmTypeByte
50 V_SgAsmArmRegisterReferenceExpression
51 V_SgAsmPEImportHNTEntryList
52 V_SgAsmVectorValueExpression
53 V_SgAsmQuadWordValueExpression
54 V_SgAsmWordValueExpression
55 V_SgAsmTypeVector
56 V_SgAsmx86Instruction
57 V_SgBinaryFile
58 V_SgAsmDoubleFloatValueExpression
59 V_SgUpcBlocksizeof
60 V_SgAsmFieldDeclaration
61 V_SgAsmDataStructureDeclaration
62 V_SgAsmPEImportILTEntryList
63 '''