Structure of the results folder 樹形結構
以iOS項目為例.
58deMacBook-Pro:infer-out wuxian$ tree.├── bugs.txt├── captured│ ├── AppDelegate.m.D2AC│ │ ├── AppDelegate.m.cfg│ │ ├── AppDelegate.m.cg│ │ ├── AppDelegate.m.stats│ │ └── AppDelegate.m.tenv│ ├── Hello.m.D2AC│ │ ├── Hello.m.cfg│ │ ├── Hello.m.cg│ │ ├── Hello.m.stats│ │ └── Hello.m.tenv│ ├── ViewController.m.D2AC│ │ ├── ViewController.m.cfg│ │ ├── ViewController.m.cg│ │ ├── ViewController.m.stats│ │ └── ViewController.m.tenv│ └── main.m.D2AC│ ├── main.m.cfg│ ├── main.m.cg│ ├── main.m.stats│ └── main.m.tenv├── log│ ├── analyzer_err│ └── analyzer_out├── multicore│ ├── Makefile│ ├── cl1│ ├── cl2│ ├── cl3│ ├── cl4│ ├── xcl1.cluster│ ├── xcl2.cluster│ ├── xcl3.cluster│ └── xcl4.cluster├── procs.csv├── report.csv├── report.json├── sources│ ├── AppDelegate.m.D2AC│ ├── Hello.m.D2AC│ ├── ViewController.m.D2AC│ └── main.m.D2AC├── specs│ ├── AppDelegate_application:didFinishLaunchingWithOptions:.specs│ ├── AppDelegate_applicationDidBecomeActive:.specs│ ├── AppDelegate_applicationDidEnterBackground:.specs│ ├── AppDelegate_applicationWillEnterForeground:.specs│ ├── AppDelegate_applicationWillResignActive:.specs│ ├── AppDelegate_applicationWillTerminate:.specs│ ├── AppDelegate_memory_leak_bug.specs│ ├── AppDelegate_npe_in_array_literal_bug.specs│ ├── AppDelegate_parameter_not_null_checked_block_bug:.specs│ ├── AppDelegate_premature_nil_termination_argument_bug.specs│ ├── AppDelegate_resource_leak_bug.specs│ ├── AppDelegate_setWindow:.specs│ ├── AppDelegate_window.specs│ ├── Hello_hello.specs│ ├── Hello_ivar_not_nullable_bug:.specs│ ├── Hello_null_dereference_bug.specs│ ├── Hello_parameter_not_null_checked_bug:.specs│ ├── Hello_return_hello.specs│ ├── Hello_s.specs│ ├── Hello_setHello:.specs│ ├── Hello_setS:.specs│ ├── ViewController_didReceiveMemoryWarning.specs│ ├── ViewController_viewDidLoad.specs│ └── main{A662}.specs└── stats.jsonbug.txt檔案
Infer 的txt報告 captured目錄
該目錄下會為每一個infer要分析的檔案建立一個目錄,目錄名就是該檔案的名字加一些其他的符號,然後該目錄下產生不同尾碼名的檔案,例如iOS項目會產生4中檔案:
AppDelegate.m.cfgAppDelegate.m.cgAppDelegate.m.statsAppDelegate.m.tenv
這些檔案都是要代碼檔案的媒介檔案,包含序列化OCaml資料結構.infer將要用到的資訊分不同的種類儲存到不同的檔案中,infer分析的時候會將這些資訊傳遞到後台.
cfg尾碼檔案:(control flow graph),包含的是函數或方法的控制流程程圖
cg尾碼檔案:(call graph),包含檔案中方法的定義或調用的調用圖
tenv尾碼檔案:包含檔案中定義或使用的所有類型
stats尾碼檔案:該檔案分析後的統計資訊,可以直接開啟查看. log目錄
分析過程的驅動檔案
該目錄下包含2個檔案:
analyzer_err
analyzer_out
analyzer_out :分析過程的輸出資訊
analyzer_err :分析出來的錯誤資訊 multicore目錄
用於驅動分析器 procs.csv檔案
執行過程中的調試資訊 report.csv 檔案
infer的csv格式的報告 report.json檔案
infer的json格式的報告 sources目錄
源碼檔案,分析過程的驅動檔案 specs
每一個被分析的方法都在該目錄下存在一個鏡像. stats.json檔案
執行過程中的調試資訊