Update lympha

parent bb4f4429
......@@ -306,10 +306,10 @@ def mapfunc():
elif object_list[key].operator1 == "no" and int(object_list[key].global_relative_variable1) != int(str(endnum)):
print ("%s != %s ; exe" % (int(object_list[key].global_relative_variable1), int(str(endnum))))
pre_statement_flow = 1
elif object_list[key].operator1 == "g" and int(object_list[key].global_relative_variable1) > int(str(endnum)):
elif object_list[key].operator1 == "g" and int(object_list[key].global_relative_variable1) < int(str(endnum)):
print ("%s > %s ; exe" % (int(object_list[key].global_relative_variable1), int(str(endnum))))
pre_statement_flow = 1
elif object_list[key].operator1 == "l" and int(object_list[key].global_relative_variable1) < int(str(endnum)):
elif object_list[key].operator1 == "l" and int(object_list[key].global_relative_variable1) > int(str(endnum)):
print ("%s < %s ; exe" % (int(object_list[key].global_relative_variable1), int(str(endnum))))
pre_statement_flow = 1
else:
......@@ -368,12 +368,13 @@ def mapfunc():
endstring = str(eval(str(endstring)))
object_list[key].statement_value = endstring
if object_list[key].statement_flow == 0 or object_list[key].flow == 0 :
if object_list[key].flow == 0 :
object_list[key].statement_flow = 0
# print ("step %s: %s; " % (step+1, start))
for k in object_list[key].next_list:
for l in range(0,len(object_list)):
if k==object_list[l].name:
object_list[l].flow = 0
#for k in object_list[key].next_list:
#for l in range(0,len(object_list)):
#if k==object_list[l].name:
#object_list[l].flow = 0
#else:
# print ("step %s: %s; exe" % (step+1, start))
......@@ -407,11 +408,8 @@ def mapfunc():
for l in range(0,len(object_list)):
if object_list[l].name == nexting :
nextstates.append(nexting)
if object_list[key].flow == 0 or object_list[key].statement_flow == 0 :
for nextings in object_list[key].next_list:
for l in range(0,len(object_list)):
if object_list[l].name == nexting :
object_list[l].flow = 0
if object_list[k].flow == 0 or object_list[k].statement_flow == 0 :
object_list[l].flow = 0
del starts[:]
#starts = list()
......
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