@@ -92,10 +92,9 @@ Options:
9292 --diagnostics : Enable saving of programs that failed or timed-out during execution. Also tracks
9393 executions on the current REPRL instance.
9494 --swarmTesting : Enable Swarm Testing mode. The fuzzer will choose random weights for the code generators per process.
95- --inspect=opt1,opt2,... : Enable inspection options. The following options are currently available:
96- history: Additional .fuzzil.history files are written to disk for every program.
97- These describe in detail how the program was generated through mutations,
98- code generation, and minimization
95+ --inspect : Enable inspection for generated programs. When enabled, additional .fuzzil.history files are written
96+ to disk for every interesting or crashing program. These describe in detail how the program was generated
97+ through mutations, code generation, and minimization.
9998 --argumentRandomization : Enable JS engine argument randomization
10099""" )
101100 exit ( 0 )
@@ -145,7 +144,7 @@ let instanceType = args["--instanceType"] ?? "standalone"
145144let corpusSyncMode = args [ " --corpusSyncMode " ] ?? " full "
146145let dontFuzz = args. has ( " --dontFuzz " )
147146let diagnostics = args. has ( " --diagnostics " )
148- let inspect = args [ " --inspect " ]
147+ let inspect = args. has ( " --inspect " )
149148let swarmTesting = args. has ( " --swarmTesting " )
150149let randomizingArguments = args. has ( " --argumentRandomization " )
151150
@@ -259,19 +258,6 @@ guard let corpusSyncMode = corpusSyncModeByName[corpusSyncMode] else {
259258 configError ( " Invalid network corpus synchronization mode \( corpusSyncMode) " )
260259}
261260
262- var inspectionOptions = InspectionOptions ( )
263- if let optionList = inspect {
264- let options = optionList. components ( separatedBy: " , " )
265- for option in options {
266- switch option {
267- case " history " :
268- inspectionOptions. insert ( . history)
269- default :
270- configError ( " Unknown inspection feature: \( option) " )
271- }
272- }
273- }
274-
275261// Make it easy to detect typos etc. in command line arguments
276262if args. unusedOptionals. count > 0 {
277263 configError ( " Invalid arguments: \( args. unusedOptionals) " )
@@ -408,7 +394,7 @@ let config = Configuration(timeout: UInt32(timeout),
408394 isFuzzing: !dontFuzz,
409395 minimizationLimit: minimizationLimit,
410396 enableDiagnostics: diagnostics,
411- inspection : inspectionOptions )
397+ enableInspection : inspect )
412398
413399let fuzzer = makeFuzzer ( for: profile, with: config)
414400
0 commit comments