From: rtrimana Date: Fri, 26 Jul 2019 14:55:25 +0000 (-0700) Subject: Adding more exploration for execution paths. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=smartthings-infrastructure.git;a=commitdiff_plain;h=ff17eef3715341a0d2c0e2b8697e388b2dedfff4;hp=60bbb288c0ac392ad729f6bf76261302c91d4040 Adding more exploration for execution paths. --- diff --git a/Extractor/ExtractorScript.py b/Extractor/ExtractorScript.py index 65c5cd7..d54f196 100644 --- a/Extractor/ExtractorScript.py +++ b/Extractor/ExtractorScript.py @@ -368,7 +368,7 @@ extractorFile.close() Extractor.close() F1.close() #Run the file to extract the objects -os.system("groovy Extractor/extractorFile.groovy") +os.system("groovy -classpath lib/jpf.jar Extractor/extractorFile.groovy") #Save the extracted methods and app2 in a same file to extract information @@ -389,7 +389,7 @@ for line in F2: extractorFile.close() Extractor.close() F2.close() -os.system("groovy Extractor/extractorFile.groovy") +os.system("groovy -classpath lib/jpf.jar Extractor/extractorFile.groovy") diff --git a/Runner.py b/Runner.py index 9c2da70..e82d1c2 100644 --- a/Runner.py +++ b/Runner.py @@ -229,11 +229,24 @@ for line in App2: Out.write("\t"+line) Out.write("}\n") Out.write("\n") -Out.write("@Field def app1 = new App1(this)\n") -Out.write("@Field def app2 = new App2(this)\n") -Out.write("app1.installed()\n") -Out.write("app2.installed()\n") -Out.write("\n") +Out.write("@Field def app1\n") +Out.write("@Field def app2\n") +Out.write("def initOrder = Verify.getBoolean()\n") +Out.write("if (initOrder) {\n") +Out.write("\tapp1 = new App1(this)\n") +Out.write("\tapp2 = new App2(this)\n") +Out.write("} else {\n") +Out.write("\tapp2 = new App2(this)\n") +Out.write("\tapp1 = new App1(this)\n") +Out.write("}\n\n") +Out.write("def installOrder = Verify.getBoolean()\n") +Out.write("if (installOrder) {\n") +Out.write("\tapp1.installed()\n") +Out.write("\tapp2.installed()\n") +Out.write("} else {\n") +Out.write("\tapp1.installed()\n") +Out.write("\tapp2.installed()\n") +Out.write("}\n\n") for line in eventSimulator: Out.write(line) Out.close()