Commit 3a9223d1 by sikang

update script

parent a62e71ba
...@@ -44,8 +44,8 @@ def get_rand_code(isInFunc): ...@@ -44,8 +44,8 @@ def get_rand_code(isInFunc):
if num == 0: if num == 0:
code += "if(\"" + filedName + "\".equals(\"" + gen_rand_str() + "\")){}//interference code\n" code += "if(\"" + filedName + "\".equals(\"" + gen_rand_str() + "\")){}//interference code\n"
else: else:
index = gen_rand_str() code += "while("+filedName+"<"+filedName+"){}"
code += "while("+filedName+"++<"+filedName+"+1){}" # index = gen_rand_str()
# code += "for(int " + index + "="+str(random.randint(0,10))+";"+index+"<"+filedName+";"+index+"++){}//interference code\n" # code += "for(int " + index + "="+str(random.randint(0,10))+";"+index+"<"+filedName+";"+index+"++){}//interference code\n"
return code return code
......
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