diff --git a/src/analyzer.py b/src/analyzer.py index b6c3b79..e121331 100644 --- a/src/analyzer.py +++ b/src/analyzer.py @@ -24,6 +24,7 @@ from backend.flexpret_backend.flexpret_backend import FlexpretBackend from backend.x86_backend.x86_backend import X86Backend +from backend.arm_backend.arm_backend import ArmBackend from backend.backend import Backend from smt_solver.extract_labels import find_labels @@ -101,7 +102,7 @@ def __init__(self, project_config: ProjectConfiguration): self.dag_path: str = "" - backend_dict = {"Flexpret": FlexpretBackend, "X86": X86Backend} + backend_dict = {"Flexpret": FlexpretBackend, "X86": X86Backend, "ARM": ArmBackend} if self.project_config.backend not in backend_dict: raise GameTimeError("No valid backend specified") diff --git a/test/tacle_test/programs/if_elif_else/if_elif_else.c b/test/tacle_test/programs/if_elif_else/if_elif_else.c index 4582d9c..45bd475 100644 --- a/test/tacle_test/programs/if_elif_else/if_elif_else.c +++ b/test/tacle_test/programs/if_elif_else/if_elif_else.c @@ -1,6 +1,7 @@ #include #include #include +#include int test (int x) { // if (x < 0 && b < 0) { diff --git a/test/tacle_test/wcet_test.py b/test/tacle_test/wcet_test.py index fd61f96..61a8fef 100644 --- a/test/tacle_test/wcet_test.py +++ b/test/tacle_test/wcet_test.py @@ -62,6 +62,8 @@ class TestFlexpretBackend(BaseTest): backend_value = "Flexpret" class TestX86Backend(BaseTest): backend_value = "X86" +class TestARMBackend(BaseTest): + backend_value = "ARM" #### Benchmarks @@ -69,6 +71,8 @@ class TestIfElifElseFlexpret(TestFlexpretBackend): config_path = "./programs/if_elif_else/config.yaml" class TestIfElifElseX86(TestX86Backend): config_path = "./programs/if_elif_else/config.yaml" +class TestIfElifElseARM(TestARMBackend): + config_path = "./programs/if_elif_else/config.yaml" @@ -109,8 +113,9 @@ class TestBinarysearchX86(TestX86Backend): # suite.addTests(loader.loadTestsFromTestCase(TestIfElifElseFlexpret)) # suite.addTests(loader.loadTestsFromTestCase(TestBitcnt2Flexpret)) # suite.addTests(loader.loadTestsFromTestCase(TestPrimeFlexpret)) - suite.addTests(loader.loadTestsFromTestCase(TestModexpFlexpret)) + # suite.addTests(loader.loadTestsFromTestCase(TestIfElifElseX86)) # suite.addTests(loader.loadTestsFromTestCase(TestBinarysearchFlexpret)) + suite.addTests(loader.loadTestsFromTestCase(TestIfElifElseARM)) runner = unittest.TextTestRunner() runner.run(suite)