parameters: (self, unit, cc_cmd)
docstring: Perform the entire type-inference workflow for a unit.
docstring_summary: Perform the entire type-inference workflow for a unit.
docstring_tokens: Perform the entire type - inference workflow for a unit .
function: def _compile_unit(self, unit, cc_cmd):
          """
          Perform the entire type-inference workflow for a unit.
          """
  
          Driver._delete_old_files(unit)
  
          self.psyche.generate_constraints(unit, cc_cmd)
  
          if not os.path.isfile(unit.cstr_file):
              copy_file(unit.c_file, unit.cnip_file)
              return
  
          self.psyche.solve_constraints(unit)
  
          if os.path.isfile(unit.poly_file):
              concat_file(unit.poly_file, unit.cnip_file)
          else:
              concat_file(unit.c_file, unit.cnip_file)
  
          if os.path.isfile(unit.inc_file):
              concat_file(unit.cnip_file, unit.inc_file)
              copy_file(unit.inc_file, unit.cnip_file)
function_tokens: def _compile_unit ( self , unit , cc_cmd ) : Driver . _delete_old_files ( unit ) self . psyche . generate_constraints ( unit , cc_cmd ) if not os . path . isfile ( unit . cstr_file ) : copy_file ( unit . c_file , unit . cnip_file ) return self . psyche . solve_constraints ( unit ) if os . path . isfile ( unit . poly_file ) : concat_file ( unit . poly_file , unit . cnip_file ) else : concat_file ( unit . c_file , unit . cnip_file ) if os . path . isfile ( unit . inc_file ) : concat_file ( unit . cnip_file , unit . inc_file ) copy_file ( unit . inc_file , unit . cnip_file )