MCPcopy Create free account

hub / github.com/GPTScan/GPTScan / functions

Functions95 in github.com/GPTScan/GPTScan

↓ 8 callersFunctionask_with_timeout
(prompt, gpt4=False, timeout=90)
src/analyze_pipeline.py:21
↓ 7 callersMethodget_function_detail
(self, file:str, contract:str, function:str)
src/antlr4helper/callgraph.py:235
↓ 5 callersFunctionparseToken
(string)
src/antlr4helper/SolidityParser.py:17
↓ 4 callersMethodget_rel_path
(self, path:str)
src/antlr4helper/callgraph.py:98
↓ 3 callersMethodget_callers
(self, function:str)
src/antlr4helper/callgraph.py:203
↓ 2 callersFunction__has_check
(var:str, text)
src/static_check.py:13
↓ 2 callersFunction__has_eq_check
(var1:str, var2:str, text)
src/static_check.py:23
↓ 2 callersFunction_do_load_config
(config_path: str)
src/tasks.py:26
↓ 2 callersFunctionforwardUntil
(i, stream, expect_id, max_length)
src/antlr4helper/SolidityParser.py:26
↓ 2 callersFunctiongetFunction
(i, stream, max_length, function_id, start, outside_contract)
src/antlr4helper/SolidityParser.py:39
↓ 2 callersFunctiongetTokenStream
(input_stream)
src/antlr4helper/SolidityParser.py:9
↓ 2 callersFunctionparseStream
(stream:CommonTokenStream)
src/antlr4helper/SolidityParser.py:205
↓ 2 callersFunctionprompt_multiple_choice_scenarios
(scenarios:List[str], code:str)
src/query_template.py:381
↓ 2 callersFunctionprompt_single_yes_no_question
(question:str, code:str)
src/query_template.py:359
↓ 1 callersFunction__call_arg_check
(function:str, arg:str, text:str)
src/static_check.py:78
↓ 1 callersMethod__clean
(self)
src/antlr4helper/callgraph.py:149
↓ 1 callersFunction__emit_at_end
(function:str, text:str)
src/static_check.py:84
↓ 1 callersFunction__has_noneq_check
(var1:str, var2:str, text)
src/static_check.py:18
↓ 1 callersFunction__in_code
(pattern:str, text:str)
src/static_check.py:90
↓ 1 callersFunction__order_first_b
(a:List[str], b:List[str], text)
src/static_check.py:34
↓ 1 callersMethod__parse_all_files
(self)
src/antlr4helper/callgraph.py:101
↓ 1 callersMethod__run_jar
(self)
src/antlr4helper/callgraph.py:144
↓ 1 callersFunctionclean_the_origin_output
(origin_output:Dict)
src/utils.py:39
↓ 1 callersFunctioncompile_project
(abs_path:str)
src/tasks.py:77
↓ 1 callersFunctioncontains_any
(str_, iter_)
src/analyze_pipeline.py:42
↓ 1 callersFunctiongenerate_signatures
(contract: dict, function_name: str, content: str)
src/antlr4helper/callgraph.py:26
↓ 1 callersFunctiongetSubcontract
(i, stream, max_length, subcontract_id, start)
src/antlr4helper/SolidityParser.py:136
↓ 1 callersFunctiongetUsingFor
(i, stream, max_length)
src/antlr4helper/SolidityParser.py:126
↓ 1 callersFunctionget_loc
(content: str)
src/antlr4helper/callgraph.py:73
↓ 1 callersFunctionhashString
(content)
src/antlr4helper/utils.py:8
↓ 1 callersFunctionis_empty_function
(content: str)
src/antlr4helper/callgraph.py:61
↓ 1 callersFunctionis_in_modifier_whitelist
(content: str)
src/antlr4helper/callgraph.py:77
↓ 1 callersFunctionis_in_whitelist
(contract_name: str, function_name: str, content: str, visibility: str)
src/antlr4helper/callgraph.py:14
↓ 1 callersFunctionload_all_rules
()
src/tasks.py:68
↓ 1 callersFunctionload_config
(config_name: str)
src/tasks.py:32
↓ 1 callersFunctionparseString
(content)
src/antlr4helper/SolidityParser.py:253
↓ 1 callersFunctionprocess
()
src/whitelist_preprocess.py:4
↓ 1 callersFunctionserializedATN
()
src/antlr4helper/SolidityLexer.py:11
↓ 1 callersFunctionsplit_answer_section
Split the response into sections based on the answer keys.
src/utils.py:12
↓ 1 callersFunctionstringClean
(string:str)
src/antlr4helper/utils.py:16
↓ 1 callersFunctionwelcome
()
src/main.py:18
Function__has_larger_check
(var1:str, var2:str, text)
src/static_check.py:29
Method__init__
(self)
src/chatgpt_api.py:28
Method__init__
(self, root:str)
src/antlr4helper/callgraph.py:88
Method__init__
(self, input=None, output:TextIO = sys.stdout)
src/antlr4helper/SolidityLexer.py:1419
Functionask_for_function_to_focus_with_feature_words_v2
(source_dir: str, feature_words: List[List[str]])
src/analyze_pipeline.py:41
Functionask_for_static
(prompts, source, answer_keys)
src/analyze_pipeline.py:517
Functionask_for_static_json
(prompts, source, answer_keys)
src/analyze_pipeline.py:523
Functionask_for_static_json_single
(prompts, source, answer_key)
src/analyze_pipeline.py:541
Functionask_for_static_multistep
(prompts, source, answer_keys)
src/analyze_pipeline.py:476
Functionask_whether_has_vul_with_scenario_v9
(src_folder: str, rules: List[dict])
src/analyze_pipeline.py:65
Functioncompile_project
(project_dir: str)
src/falcon_adapter.py:28
Functionconvert_output
(origin_output:Dict, scan_rules:List[Dict], cg:CallGraph, base_dir:str)
src/utils.py:80
Functionfind_data_dependency
(source: str, sink: str, function: str, falcon: Falcon)
src/falcon_adapter.py:81
Functionfirst_deposit_check
(current_pool_var: str, deposit_amount: str, total_share: str, function: str, falcon: Falcon)
src/falcon_adapter.py:124
Methodget_callees
(self, file:str, contract:str, function:str)
src/antlr4helper/callgraph.py:216
Functionget_tokens
(source:str)
src/antlr4helper/__init__.py:11
FunctionhashFile
(file_path)
src/antlr4helper/utils.py:11
Functionis_arg_taint
(call: str, arg_index: int, function:str, falcon:Falcon)
src/falcon_adapter.py:223
Functionload_all_configs
()
src/tasks.py:49
Functionload_configs
(config_names: list)
src/tasks.py:42
Functionload_file
(falcon_base_dir: str, sol_file_path: str)
src/falcon_adapter.py:50
Functionload_rule
(rule_indexs: List[int])
src/tasks.py:57
MethodmakeCodeQuestion
(self, question:str, code:str)
src/chatgpt_api.py:116
MethodmakeYesOrNoQuestion
(self, question:str)
src/chatgpt_api.py:112
Functionmake_args_table
(args:List[str], title:str)
src/rich_utils.py:11
Functionmake_prompt_panel
(code:str, prompt:str, panel_title:str)
src/rich_utils.py:5
Functionmake_response_panel
(response:str, panel_title:str)
src/rich_utils.py:8
MethodnewSession
(self)
src/chatgpt_api.py:31
Functionparse
(source:str)
src/antlr4helper/__init__.py:5
FunctionparseFile
(file_path)
src/antlr4helper/SolidityParser.py:256
Functionprompt1_v1
(code_segments: List[str], statements: List[str])
src/query_template.py:4
Functionprompt1_v2
(code_segments: List[str], statements: List[List[str]])
src/query_template.py:25
Functionprompt1_v3
(code_segments: List[str], statements: List[List[str]])
src/query_template.py:50
Functionprompt1_v4
(code_segments: List[str], statements: List[List[str]])
src/query_template.py:72
Functionprompt1_v5
(code_segments: List[str], statements: List[List[str]])
src/query_template.py:97
Functionprompt1_v6
(code_segments: List[str], statements: List[List[str]])
src/query_template.py:118
Functionprompt_related_functions
(feature_words:List[str], code:List[str])
src/query_template.py:367
Functionprompt_related_scenario
(function_list:List[str], scenario_list:List[str])
src/query_template.py:321
Functionprompt_related_scenario_v2
(function_list:List[str], scenario_list:List[str])
src/query_template.py:336
Functionprompt_summarize_v1
(type_to_summarize: str, data: List[str])
src/query_template.py:310
Functionrender_template_function_to_focus_v1
(filename:str, function_list:List[str], statements:List[Dict[str,str]])
src/query_template.py:254
Functionrender_template_function_to_focus_v2
(function_list:List[str], statements:List[Dict[str,str]])
src/query_template.py:277
Functionrender_template_function_to_focus_v3
(function_listA:List[str], function_listB:List[str])
src/query_template.py:295
Functionrender_template_vul_multiple_choose_v1
(code_segments: List[str], statements: List[str])
src/query_template.py:176
Functionrender_template_vul_multiple_choose_v2
(code_segments: List[str], statements: List[str])
src/query_template.py:196
Functionrender_template_vul_multiple_choose_v3
(code_segments: List[str], statements: List[str], filename:str)
src/query_template.py:216
Functionrender_template_vul_multiple_choose_v4
(code_segments: List[str], statements: List[str])
src/query_template.py:236
Functionrender_templete_whether_has_vul_v1
(code_segments: List[str], statements: List[str])
src/query_template.py:141
Functionrender_templete_whether_has_vul_v2
(code_segments: List[str], statements: List[str])
src/query_template.py:158
Functionrun_static_check
(checker:str, args, function_name:str, falcon:Falcon, text:str)
src/static_check.py:93
MethodsendMessages
(self, message:str, GPT4=False)
src/chatgpt_api.py:34
Functionsimple_cli
()
src/tasks.py:107
Functionstatic_analysis
(sink, source, file, function)
src/analyze_pipeline.py:463
Functiontry_to_handle_too_long_code
Try to handle the too long code problem. By divid and conqure code segments.
src/utils.py:31