# can we assume that the ids always start at 1 --> if so, can index by knobs
'''
Given the filename of a table, parses the table into a list of KnobConfigurations
'''
# Can we assume that the ids always start at 1 --> if so, can index by knobs
# else: need to use a dict
# else: need to use a dict
table=[]
table=[]
table_file=open(table_filename,"r")
table_file=open(table_filename,"r")
...
@@ -123,10 +150,5 @@ if __name__ == "__main__":
...
@@ -123,10 +150,5 @@ if __name__ == "__main__":
print("Run with --usage flag for more detailed information")
print("Run with --usage flag for more detailed information")
exit(1)
exit(1)
# How do we know what function names correspond to what files?
# Assume that for the given filenames, we replace all function names with the corresp func name --> then we can't run this for different functions, need to replace the modified func name
# Parse the table first to avoid having to reparse it for each file to change