1: === CELL 0, TYPE code, execution_count 13 ===
2: import json
3: import os
4: import csv
5: 
6: # Define the paths
7: jsonl_file = "/Users/jianfengzhu/Desktop/LLMs-in-IR-SEP7/Human_xBenchmarks_164/humaneval.jsonl"
8: output_dir = "/Users/jianfengzhu/Desktop/LLMs-in-IR-SEP7/processed_data/Human_x_164_O3"
9: 
10: # Process the input JSONL file
11: with open(jsonl_file, 'r') as file:
12:     for line in file:
13:         # Parse each line as a JSON object
14:         data = json.loads(line)
15:         
16:         # Extract task_id and format it
17:         task_id = data["task_id"].replace("/", "_")
18:         task_file_name = task_id + ".csv"
19:         
20:         # Check if the corresponding file exists in the output directory
21:         task_dir = os.path.join(output_dir, task_id)
22:         if os.path.exists(task_dir):
23:             # Extract assert statements from the test section
24:             test_code = data.get("test", "")
25:             assert_statements = [line.strip() for line in test_code.splitlines() if line.strip().startswith("assert")]
26:             
27:             # Define the CSV file path
28:             output_csv_file = os.path.join(task_dir, task_file_name)
29:             
30:             # Write the assert statements to the CSV file
31:             with open(output_csv_file, 'w', newline='') as csvfile:
32:                 csv_writer = csv.writer(csvfile)
33:                 csv_writer.writerow(["task_id", "assert_statement"])
34:                 for assert_statement in assert_statements:
35:                     csv_writer.writerow([task_id, assert_statement])
36: 
37: print("Extraction and saving of assert statements are complete.")
38: --- STORED NOTEBOOK OUTPUT (historical; not executed by reviewer) ---
39: Extraction and saving of assert statements are complete.
40: === CELL 1, TYPE code, execution_count 1 ===
41: import os
42: import random
43: import openai
44: import pandas as pd
45: import os
46: 
47: # 设置环境变量
48: [REDACTED CREDENTIAL-RELATED LINE]
49: 
50: # 初始化 Groq 客户端
51: import os
52: from together import Together
53: 
54: [REDACTED CREDENTIAL-RELATED LINE]
55: === CELL 2, TYPE code, execution_count None ===
56: import os
57: import shutil
58: 
59: # Define the source and destination directories
60: source_dir = "/Users/jianfengzhu/Desktop/LLMs-in-IR-SEP7/Human_xBenchmarks_164"
61: destination_dir = "/Users/jianfengzhu/Desktop/LLMs-in-IR-SEP7/processed_data/Human_x_164_O3"
62: 
63: # Get a list of all subfolders in the source directory
64: subfolders = [f for f in os.listdir(source_dir) if os.path.isdir(os.path.join(source_dir, f))]
65: 
66: # Iterate through each subfolder
67: for subfolder in subfolders:
68:     # Define the full path to the .cpp file in the source directory
69:     cpp_file = os.path.join(source_dir, subfolder, f"{subfolder}.cpp")
70:     
71:     # Define the destination subfolder path
72:     dest_subfolder = os.path.join(destination_dir, subfolder)
73:     
74:     # Check if the .cpp file exists in the source directory
75:     if os.path.exists(cpp_file):
76:         # Copy the .cpp file to the corresponding destination subfolder
77:         shutil.copy(cpp_file, dest_subfolder)
78:         print(f"Copied {cpp_file} to {dest_subfolder}")
79:     else:
80:         print(f"No .cpp file found in {cpp_file}")
81: === CELL 3, TYPE code, execution_count 3 ===
82: final_result = """### final result
83:                 - **assertion result**: **pass** """
84: def SC_evaluate_assertion_with_api(SC_code, assertion):
85:     try:
86:         prompt = (
87:             "You are an expert in C/C++ programming and code analysis. Your task is to analyze whether the provided assertion passes or fails based on the given C/C++ code for a function.\n\n"
88:             "### C/C++ Code\n"
89:             "```\n"
90:             f"{SC_code}\n"
91:             "```\n\n"
92:             "### Assertion Statement\n"
93:             f"```\n{assertion}\n```\n\n"
94:             "Please write down your thinking process, and list the pass/fail result of each assertion at the end."
95:             "NOTE: Make sure the format the pass/fail result of each assertion at the end follow the example:"
96:             f"\n{final_result}"
97:         )
98:         # Call the OpenAI API with the prompt
99:         response =client.chat.completions.create(
100:             model="deepseek-ai/DeepSeek-R1-Distill-Llama-70B-free",
101:             messages=[
102:                 {"role": "user", "content": prompt},
103:             ],
104:             temperature=0.2,
105:         )
106: 
107:         # Extract the result
108:         result = response.choices[0].message.content.strip().lower()
109:         return result
110:     
111:     except Exception as e:
112:         if 'context_length_exceeded' in str(e):
113:             return "fail to read"
114:         else:
115:             return "error"
116: === CELL 4, TYPE code, execution_count 4 ===
117: def extract_final_result(full_text):
118:     """
119:     Extracts the final result ("pass" or "fail") and comments from the analysis.
120:     """
121:     try:
122:         # Extract the final result (pass or fail) from the text
123:         final_result = "unknown"
124:         comment = full_text
125:         
126:         # Extract the final result line
127:         if "**assertion result**: **pass**" in full_text.lower():
128:             final_result = "pass"
129:         elif "**assertion result**: **fail**" in full_text.lower():
130:             final_result = "fail"
131: 
132:         return final_result, comment
133:     except Exception as e:
134:         return "error", str(e)
135: === CELL 5, TYPE code, execution_count 5 ===
136: def process_folder(folder, relative_folder):
137:     SC_file = None
138:     csv_file = None
139:     
140:     # Identify the .bc and .csv files
141:     for file in os.listdir(folder):
142:         if file.endswith('.cpp'):
143:             SC_file = os.path.join(folder, file)
144:         elif file.endswith('.csv'):
145:             csv_file = os.path.join(folder, file)
146:     
147:     if not SC_file or not csv_file:
148:         print(f"Missing files in {folder}")
149:         return
150:     
151:     # Read the source code from the .bc file (assuming .cpp files are in LLVM bitcode text format)
152:     with open(SC_file, 'r') as file:
153:         SC_code = file.read()
154:     
155:     # Read the CSV file
156:     df = pd.read_csv(csv_file)
157:     
158:     # Prepare a list to store results
159:     results = []
160:     
161:     # Analyze each assertion statement
162:     for index, row in df.iterrows():
163:         assertion = row['assert_statement']
164:         
165:         # Evaluate the assertion using the OpenAI API
166:         full_analysis = SC_evaluate_assertion_with_api(SC_code, assertion)
167:         
168:         # Extract the final result and comment
169:         final_result, comment = extract_final_result(full_analysis)
170:         
171:         # Append to results list
172:         results.append([assertion, final_result, comment])
173:     
174:     # Create a DataFrame from the results
175:     result_df = pd.DataFrame(results, columns=['assert_statement', 'final_result', 'comment'])
176:     
177:     # Prepare the output folder
178:     output_folder = os.path.join(output_base_dir, relative_folder)
179:     os.makedirs(output_folder, exist_ok=True)
180:     
181:     # Define the output CSV file path
182:     output_file = os.path.join(output_folder, 'assertion_results.csv')
183:     
184:     # Save the results to a CSV file
185:     result_df.to_csv(output_file, index=False)
186: 
187:     print(f"Results saved to {output_file}")
188: === CELL 6, TYPE code, execution_count 8 ===
189: 
190: # Example of how to call the function
191: # Define the base directories
192: input_base_dir = '/Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/Human_x_164_O3'
193: output_base_dir = '/Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute'
194: 
195: # Ensure the output base directory exists
196: os.makedirs(output_base_dir, exist_ok=True)
197: # Assume each folder under the input_base_dir needs to be processed
198: for folder_name in os.listdir(input_base_dir):
199:     folder_path = os.path.join(input_base_dir, folder_name)
200:     if os.path.isdir(folder_path):
201:         process_folder(folder_path, folder_name)
202: --- STORED NOTEBOOK OUTPUT (historical; not executed by reviewer) ---
203: Missing files in /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/Human_x_164_O3/png_files
204: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_47/assertion_results.csv
205: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_101/assertion_results.csv
206: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_78/assertion_results.csv
207: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_139/assertion_results.csv
208: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_40/assertion_results.csv
209: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_106/assertion_results.csv
210: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_82/assertion_results.csv
211: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_76/assertion_results.csv
212: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_130/assertion_results.csv
213: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_49/assertion_results.csv
214: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_108/assertion_results.csv
215: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_71/assertion_results.csv
216: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_85/assertion_results.csv
217: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_137/assertion_results.csv
218: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_163/assertion_results.csv
219: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_25/assertion_results.csv
220: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_22/assertion_results.csv
221: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_152/assertion_results.csv
222: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_14/assertion_results.csv
223: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_155/assertion_results.csv
224: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_13/assertion_results.csv
225: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_84/assertion_results.csv
226: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_70/assertion_results.csv
227: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_109/assertion_results.csv
228: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_136/assertion_results.csv
229: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_77/assertion_results.csv
230: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_83/assertion_results.csv
231: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_48/assertion_results.csv
232: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_131/assertion_results.csv
233: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_41/assertion_results.csv
234: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_138/assertion_results.csv
235: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_107/assertion_results.csv
236: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_46/assertion_results.csv
237: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_79/assertion_results.csv
238: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_100/assertion_results.csv
239: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_154/assertion_results.csv
240: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_12/assertion_results.csv
241: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_153/assertion_results.csv
242: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_15/assertion_results.csv
243: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_23/assertion_results.csv
244: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_162/assertion_results.csv
245: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_24/assertion_results.csv
246: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_0/assertion_results.csv
247: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_140/assertion_results.csv
248: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_39/assertion_results.csv
249: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_7/assertion_results.csv
250: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_147/assertion_results.csv
251: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_37/assertion_results.csv
252: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_149/assertion_results.csv
253: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_30/assertion_results.csv
254: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_9/assertion_results.csv
255: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_122/assertion_results.csv
256: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_90/assertion_results.csv
257: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_64/assertion_results.csv
258: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_125/assertion_results.csv
259: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_63/assertion_results.csv
260: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_97/assertion_results.csv
261: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_113/assertion_results.csv
262: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_55/assertion_results.csv
263: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_99/assertion_results.csv
264: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_114/assertion_results.csv
265: Missing files in /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/Human_x_164_O3/organized dot
266: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_52/assertion_results.csv
267: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_31/assertion_results.csv
268: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_148/assertion_results.csv
269: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_8/assertion_results.csv
270: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_36/assertion_results.csv
271: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_6/assertion_results.csv
272: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_146/assertion_results.csv
273: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_1/assertion_results.csv
274: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_38/assertion_results.csv
275: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_141/assertion_results.csv
276: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_115/assertion_results.csv
277: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_98/assertion_results.csv
278: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_53/assertion_results.csv
279: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_112/assertion_results.csv
280: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_54/assertion_results.csv
281: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_124/assertion_results.csv
282: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_96/assertion_results.csv
283: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_62/assertion_results.csv
284: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_123/assertion_results.csv
285: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_65/assertion_results.csv
286: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_91/assertion_results.csv
287: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_21/assertion_results.csv
288: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_158/assertion_results.csv
289: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_19/assertion_results.csv
290: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_160/assertion_results.csv
291: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_26/assertion_results.csv
292: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_156/assertion_results.csv
293: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_10/assertion_results.csv
294: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_28/assertion_results.csv
295: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_151/assertion_results.csv
296: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_17/assertion_results.csv
297: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_43/assertion_results.csv
298: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_88/assertion_results.csv
299: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_105/assertion_results.csv
300: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_44/assertion_results.csv
301: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_102/assertion_results.csv
302: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_72/assertion_results.csv
303: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_86/assertion_results.csv
304: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_134/assertion_results.csv
305: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_81/assertion_results.csv
306: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_75/assertion_results.csv
307: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_133/assertion_results.csv
308: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_150/assertion_results.csv
309: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_29/assertion_results.csv
310: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_16/assertion_results.csv
311: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_157/assertion_results.csv
312: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_11/assertion_results.csv
313: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_161/assertion_results.csv
314: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_18/assertion_results.csv
315: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_27/assertion_results.csv
316: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_159/assertion_results.csv
317: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_20/assertion_results.csv
318: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_74/assertion_results.csv
319: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_80/assertion_results.csv
320: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_132/assertion_results.csv
321: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_87/assertion_results.csv
322: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_73/assertion_results.csv
323: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_135/assertion_results.csv
324: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_45/assertion_results.csv
325: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_103/assertion_results.csv
326: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_42/assertion_results.csv
327: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_104/assertion_results.csv
328: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_89/assertion_results.csv
329: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_126/assertion_results.csv
330: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_60/assertion_results.csv
331: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_119/assertion_results.csv
332: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_94/assertion_results.csv
333: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_58/assertion_results.csv
334: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_121/assertion_results.csv
335: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_93/assertion_results.csv
336: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_67/assertion_results.csv
337: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_117/assertion_results.csv
338: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_51/assertion_results.csv
339: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_128/assertion_results.csv
340: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_69/assertion_results.csv
341: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_110/assertion_results.csv
342: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_56/assertion_results.csv
343: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_4/assertion_results.csv
344: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_144/assertion_results.csv
345: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_3/assertion_results.csv
346: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_143/assertion_results.csv
347: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_33/assertion_results.csv
348: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_34/assertion_results.csv
349: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_111/assertion_results.csv
350: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_68/assertion_results.csv
351: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_57/assertion_results.csv
352: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_116/assertion_results.csv
353: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_129/assertion_results.csv
354: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_50/assertion_results.csv
355: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_120/assertion_results.csv
356: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_59/assertion_results.csv
357: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_66/assertion_results.csv
358: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_92/assertion_results.csv
359: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_127/assertion_results.csv
360: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_95/assertion_results.csv
361: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_118/assertion_results.csv
362: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_61/assertion_results.csv
363: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_35/assertion_results.csv
364: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_32/assertion_results.csv
365: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_2/assertion_results.csv
366: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_142/assertion_results.csv
367: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_5/assertion_results.csv
368: Results saved to /Users/jianfengzhu/Desktop/Researvh Work/02024AugLLMs_in_IRs/LLMs-in-IR-SEP7/processed_data/ScriptTest/DeepSeekFolder/DeepSeek_Execute_Result/Run3_DeepSeek_Execute/CPP_145/assertion_results.csv
369: === CELL 7, TYPE code, execution_count 33 ===
370: def extract_final_result(full_text):
371:     """
372:     Extracts the final result ("pass" or "fail") and comments from the analysis.
373:     """
374:     try:
375:         # Extract the final result (pass or fail) from the text
376:         final_result = "unknown"
377:         comment = full_text
378:         
379:         # Extract the final result line
380:         if "**assertion result**: **pass**" in full_text.lower():
381:             final_result = "pass"
382:         elif "**assertion result**: **fail**" in full_text.lower():
383:             final_result = "fail"
384: 
385:         return final_result, comment
386:     except Exception as e:
387:         return "error", str(e)
388: === CELL 8, TYPE code, execution_count 34 ===
389: def process_folder(folder, relative_folder):
390:     SC_file = None
391:     csv_file = None
392:     
393:     # Identify the .bc and .csv files
394:     for file in os.listdir(folder):
395:         if file.endswith('.cpp'):
396:             SC_file = os.path.join(folder, file)
397:         elif file.endswith('.csv'):
398:             csv_file = os.path.join(folder, file)
399:     
400:     if not SC_file or not csv_file:
401:         print(f"Missing files in {folder}")
402:         return
403:     
404:     # Read the source code from the .bc file (assuming .cpp files are in LLVM bitcode text format)
405:     with open(SC_file, 'r') as file:
406:         SC_code = file.read()
407:     
408:     # Read the CSV file
409:     df = pd.read_csv(csv_file)
410:     
411:     # Prepare a list to store results
412:     results = []
413:     
414:     # Analyze each assertion statement
415:     for index, row in df.iterrows():
416:         assertion = row['assert_statement']
417:         
418:         # Evaluate the assertion using the OpenAI API
419:         full_analysis = SC_evaluate_assertion_with_Tapi(SC_code, assertion)
420:         
421:         # Extract the final result and comment
422:         final_result, comment = extract_final_result(full_analysis)
423:         
424:         # Append to results list
425:         results.append([assertion, final_result, comment])
426:     
427:     # Create a DataFrame from the results
428:     result_df = pd.DataFrame(results, columns=['assert_statement', 'final_result', 'comment'])
429:     
430:     # Prepare the output folder
431:     output_folder = os.path.join(output_base_dir, relative_folder)
432:     os.makedirs(output_folder, exist_ok=True)
433:     
434:     # Define the output CSV file path
435:     output_file = os.path.join(output_folder, 'assertion_results.csv')
436:     
437:     # Save the results to a CSV file
438:     result_df.to_csv(output_file, index=False)
439: 
440:     print(f"Results saved to {output_file}")
