def setUp(self):
     model.reset()
     types.reload_ctypes(4, 4, 8)
     self.memdumpname = 'test/src/test-ctypes7.32.dump'
     self.classname = 'test.src.ctypes7.struct_Node'
     self._load_offsets_values(self.memdumpname)
     self.address = self.offsets['test1'][0]  # 0x8f40008
     # load layout in x32
     from test.src import ctypes7
     from test.src import ctypes7_gen32
     model.copyGeneratedClasses(ctypes7_gen32, ctypes7)
     model.registerModule(ctypes7)
     # apply constraints
     ctypes7.populate()
 def setUp(self):
     model.reset()
     types.reload_ctypes(8, 8, 16)
     self.memdumpname = 'test/src/test-ctypes7.64.dump'
     self.classname = 'test.src.ctypes7.struct_Node'
     self._load_offsets_values(self.memdumpname)
     self.address = self.offsets['test1'][0]  # 0x000000001b1e010
     # load layout in x64
     from test.src import ctypes7
     from test.src import ctypes7_gen64
     model.copyGeneratedClasses(ctypes7_gen64, ctypes7)
     model.registerModule(ctypes7)
     # apply constraints
     ctypes7.populate()