@@ -53,8 +53,8 @@ def copy_results_from_container(self, target_path: str, execution_view):
53
53
"Data.xml" ,
54
54
"loop_counter_output.txt" ,
55
55
"reduction.txt" ,
56
- execution_view .execution_configuration .executable_name + "_dp_dep.txt" ,
57
- execution_view .execution_configuration .executable_name + "_dp.ll" ,
56
+ execution_view .execution_configuration .value_dict [ " executable_name" ] + "_dp_dep.txt" ,
57
+ execution_view .execution_configuration .value_dict [ " executable_name" ] + "_dp.ll" ,
58
58
"patterns.txt" ,
59
59
"patterns.json"
60
60
]
@@ -66,10 +66,10 @@ def copy_results_from_container(self, target_path: str, execution_view):
66
66
def analyze_project (self , execution_view ):
67
67
# copy project folder to container. Note: mounting would be nicer but requires restarting the container.
68
68
# might be a nicer solution in the long run, especially for larger projects
69
- self .copy_project_folder_to_container (execution_view .execution_configuration .project_path )
69
+ self .copy_project_folder_to_container (execution_view .execution_configuration .value_dict [ " project_path" ] )
70
70
71
71
# settings
72
- command = "/discopop/scripts/runDiscoPoP "
72
+ command = "/discopop/build/ scripts/runDiscoPoP "
73
73
command += "--llvm-clang clang-11 "
74
74
command += "--llvm-clang++ clang++-11 "
75
75
command += "--llvm-ar llvm-ar-11 "
@@ -80,32 +80,32 @@ def analyze_project(self, execution_view):
80
80
command += "--gllvm /software/go/bin "
81
81
# execution configuration
82
82
command += "--project /project "
83
- command += "--linker-flags \" " + execution_view .execution_configuration .linker_flags + "\" "
84
- command += "--executable-name \" " + execution_view .execution_configuration .executable_name + "\" "
85
- command += "--executable-arguments \" " + execution_view .execution_configuration .executable_arguments + "\" "
86
- command += "--make-flags \" " + execution_view .execution_configuration .make_flags + "\" "
87
- command += "--explorer-flags \" " + execution_view .execution_configuration .explorer_flags + "\" "
83
+ command += "--linker-flags \" " + execution_view .execution_configuration .value_dict [ " linker_flags" ] + "\" "
84
+ command += "--executable-name \" " + execution_view .execution_configuration .value_dict [ " executable_name" ] + "\" "
85
+ command += "--executable-arguments \" " + execution_view .execution_configuration .value_dict [ " executable_arguments" ] + "\" "
86
+ command += "--make-flags \" " + execution_view .execution_configuration .value_dict [ " make_flags" ] + "\" "
87
+ command += "--explorer-flags \" " + execution_view .execution_configuration .value_dict [ " explorer_flags" ] + "\" "
88
88
89
89
self .__execute_command ("docker exec -it discopop_container " + command )
90
90
91
91
# copy results from container into working copy path
92
- if not os .path .exists (execution_view .execution_configuration .working_copy_path ):
93
- os .mkdir (execution_view .execution_configuration .working_copy_path )
92
+ if not os .path .exists (execution_view .execution_configuration .value_dict [ " working_copy_path" ] ):
93
+ os .mkdir (execution_view .execution_configuration .value_dict [ " working_copy_path" ] )
94
94
95
95
# remove previous results
96
- self .remove_previous_results (execution_view .execution_configuration .working_copy_path )
96
+ self .remove_previous_results (execution_view .execution_configuration .value_dict [ " working_copy_path" ] )
97
97
98
98
# copy results from container
99
- self .copy_results_from_container (execution_view .execution_configuration .working_copy_path , execution_view )
99
+ self .copy_results_from_container (execution_view .execution_configuration .value_dict [ " working_copy_path" ] , execution_view )
100
100
101
101
# correct paths in generated FileMapping.txt
102
102
self .__correct_file_mapping_paths (execution_view )
103
103
104
104
def __correct_file_mapping_paths (self , execution_view ):
105
- file_mapping_path = os .path .join (execution_view .execution_configuration .working_copy_path , "FileMapping.txt" )
105
+ file_mapping_path = os .path .join (execution_view .execution_configuration .value_dict [ " working_copy_path" ] , "FileMapping.txt" )
106
106
with open (file_mapping_path , 'r' ) as file :
107
107
contents = file .read ()
108
- contents = contents .replace ('/project/.discopop' , execution_view .execution_configuration .project_path )
108
+ contents = contents .replace ('/project/.discopop' , execution_view .execution_configuration .value_dict [ " project_path" ] )
109
109
with open (file_mapping_path , 'w' ) as file :
110
110
file .write (contents )
111
111
0 commit comments