fixing failed tests

parent ee7d6c79
......@@ -398,13 +398,14 @@ class RPythonAnnotator(object):
newgraphs.remove(g)
for blk in g.iterblocks():
try:
log.info("ann.complete: removing block %s of graph %s" % (blk.__str__(), g.name))
# log.info("ann.complete: removing block %s of graph %s" % (blk.__str__(), g.name))
self.added_blocks.remove(blk)
except Exception as e1:
try:
del self.annotated[blk]
except Exception as e2:
log.WARNING("ann.complete: exception %s found" % e2.message)
# log.WARNING("ann.complete: exception %s found" % e2.message)
pass
except ValueError:
pass
......
......@@ -223,7 +223,7 @@ class FunctionDesc(Desc):
def buildgraph(self, alt_name=None, builder=None):
translator = self.bookkeeper.annotator.translator
logger.info("buildgraph for %s" % self.name)
# logger.info("buildgraph for %s" % self.name)
if builder:
graph = builder(translator, self.pyobj)
else:
......
......@@ -520,7 +520,7 @@ def fpath_to_fname(file_path):
# extracts the copy id from the rtmu_graphs name and converts it to int
def get_rg_id(_rg):
name = _rg.name
logger.info("get_rg_id.name = %s" % name)
# logger.info("get_rg_id.name = %s" % name)
idi = int(name[0:-16].split('_')[-1])
return idi
......
......@@ -753,6 +753,7 @@ class TranslationDriver(SimpleTaskEngine):
self.translator.mu_bdlgen = MuBundleGen(self.translator.mu_db)
if self.standalone:
target_name = self.compute_exe_name()
# self.translator.mu_bdlgen.build_and_load_bundle()
return self.translator.mu_bdlgen.gen_boot_image(str(target_name))
else:
return self.translator.mu_bdlgen.build_and_load_bundle()
......
......@@ -110,6 +110,8 @@ class MuBundleGen:
self.init_heap()
self.bundle_loaded = True
return self.db, self, self.db.tlc.entry_point_graph.name
def gen_symbols(self):
......@@ -173,7 +175,8 @@ class MuBundleGen:
def gen_boot_image(self, targetname):
self.log.gen_boot_image("gen_boot_image")
# self.build_and_load_bundle()
if not hasattr(self, 'bundle_loaded'):
self.build_and_load_bundle()
self.log.gen_boot_image("gen_boot_image, bundle loaded")
......
......@@ -305,9 +305,9 @@ class LL2MuMapper:
def resolve_ptr_types(self):
while len(self._pending_ptr_types) > 0:
LLObjT, MuObjT = self._pending_ptr_types.pop()
log.info('resolve_ptr_types.LLObjT = %s, MuObjT = %s' % (LLObjT, MuObjT))
# log.info('resolve_ptr_types.LLObjT = %s, MuObjT = %s' % (LLObjT, MuObjT))
MuObjT.become(self.map_type(LLObjT))
log.info('new-resolve_ptr_types.LLObjT = %s, MuObjT = %s' % (LLObjT, MuObjT))
# log.info('new-resolve_ptr_types.LLObjT = %s, MuObjT = %s' % (LLObjT, MuObjT))
def map_type_addr(self, LLT):
# NOTE: all Address types are mapped to uptr<int<8>>
......
......@@ -117,7 +117,7 @@ class MuTyper:
####################
# added for rtmu
####################
log.info("specialize_all %s" % g.name)
# log.info("specialize_all %s" % g.name)
removenoops.remove_same_as(g)
removenoops.remove_debug_assert(g)
......@@ -176,11 +176,13 @@ class MuTyper:
# log.info('specialize_block.args: %s' % blk.inputargs)
if blk.operations:
try:
log.info('specialize_block.operations: %s' % blk.operations)
# log.info('specialize_block.operations: %s' % blk.operations)
pass
except TypeError as er:
log.WARNING('couldnt log block ops: %s' % er.message)
else:
log.info('specialize_block.operations: NONE')
# log.info('specialize_block.operations: NONE')
pass
# specialise operations
muops = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment