Browse Source

Removed logs

Yentl Van Tendeloo 8 years ago
parent
commit
1875dcab23
4 changed files with 0 additions and 17 deletions
  1. BIN
      bootstrap/bootstrap.m.gz
  2. 0 1
      bootstrap/metamodels.alc
  3. 0 7
      bootstrap/modelling.alc
  4. 0 9
      bootstrap/transform.alc

BIN
bootstrap/bootstrap.m.gz


+ 0 - 1
bootstrap/metamodels.alc

@@ -17,7 +17,6 @@ String function constraint_Natural(model : Element, name : String):
 
 Element function constraint_String(model : Element, name : String):
 	Element self
-	log("Invoked!")
 	self = model["model"][name]
 	if (is_physical_string(self)):
 		return "OK"!

+ 0 - 7
bootstrap/modelling.alc

@@ -633,13 +633,8 @@ Element function get_func_AL_model(al_model : Element):
 	Element result
 	Element initial_function
 
-	// Fetch the model to execute
-	log("Imported model: " + cast_e2s(al_model))
-	log("Outgoing: " + set_to_string(dict_keys(al_model)))
-
 	// Find the initial function
 	initial_function = allInstances(al_model, "Initial")
-	log("Initial functions: " + set_to_string(initial_function))
 
 	if (read_nr_out(initial_function) == 0):
 		log("Could not find function to execute in this model!")
@@ -648,8 +643,6 @@ Element function get_func_AL_model(al_model : Element):
 		log("Too many functions to execute in this model!")
 		return create_node()!
 	else:
-		log("Retrieving")
 		initial_function = al_model["model"][set_pop(allAssociationDestinations(al_model, set_pop(initial_function), "initial_funcdef"))]
-		log("Found initial_function: " + cast_e2s(initial_function))
 
 	return initial_function!

+ 0 - 9
bootstrap/transform.alc

@@ -121,7 +121,6 @@ Element function get_possible_bindings(host_model : Element, schedule_model : El
 			options = allInstances(host_model, original_typename)
 		elif (read_nr_out(options) > 1):
 			// Multiple "only" options, which will not work out: no options!
-			log("    multi!")
 			return create_node()!
 
 	// Filter options further
@@ -147,7 +146,6 @@ Element function get_possible_bindings(host_model : Element, schedule_model : El
 				Element func
 
 				constraint_function = read_attribute(schedule_model, current_element, "constraint")
-				log("1")
 				func = get_func_AL_model(import_node(constraint_function))
 				result = func(host_model, option)
 
@@ -180,7 +178,6 @@ Element function get_possible_bindings(host_model : Element, schedule_model : El
 			value = read_attribute(schedule_model, current_element, attribute)
 			// Attribute might be undefined, so skip if it is
 			if (element_neq(value, read_root())):
-				log("2")
 				func = get_func_AL_model(import_node(value))
 				result = func(read_attribute(host_model, option, string_substr(attribute, string_len("constraint_"), string_len(attribute) + 1)))
 			else:
@@ -279,7 +276,6 @@ Element function match(host_model : Element, schedule_model : Element, LHS : Str
 	if (element_neq(constraint, read_root())):
 		while (read_nr_out(mappings) > 0):
 			map = set_pop(mappings)
-			log("3")
 			func = get_func_AL_model(import_node(constraint))
 			result = func(host_model, map)
 
@@ -377,7 +373,6 @@ Void function rewrite(host_model : Element, schedule_model : Element, RHS : Stri
 
 			value = read_attribute(schedule_model, RHS_map[label], attribute)
 			if (element_neq(value, read_root())):
-				log("4")
 				func = get_func_AL_model(import_node(value))
 				result = func(host_model, new_mapping[label], mapping)
 
@@ -392,9 +387,6 @@ Void function rewrite(host_model : Element, schedule_model : Element, RHS : Stri
 		action = read_attribute(schedule_model, RHS_map[label], "action")
 		if (element_neq(action, read_root())):
 			Element func
-			log("5")
-			log("Got action: " + cast_e2s(action))
-			log("After import: " + cast_e2s(import_node(action)))
 			func = get_func_AL_model(import_node(action))
 			func(host_model, new_mapping[label], mapping)
 
@@ -408,7 +400,6 @@ Void function rewrite(host_model : Element, schedule_model : Element, RHS : Stri
 	action = read_attribute(schedule_model, RHS, "action")
 	if (element_neq(action, read_root())):
 		Element func
-		log("6")
 		func = get_func_AL_model(import_node(action))
 		func(host_model, new_mapping)