@@ -117,6 +117,7 @@ def cfile_parse_file(args: argparse.Namespace) -> NoReturn:
117117 # arguments
118118 pcfilename : str = os .path .abspath (args .filename )
119119 opttgtpath : Optional [str ] = args .tgtpath
120+ keep_system_includes : bool = args .keep_system_includes
120121 loglevel : str = args .loglevel
121122 logfilename : Optional [str ] = args .logfilename
122123 logfilemode : str = args .logfilemode
@@ -154,7 +155,8 @@ def cfile_parse_file(args: argparse.Namespace) -> NoReturn:
154155
155156 chklogger .logger .info ("Target path: %s" , targetpath )
156157
157- parsemanager = ParseManager (projectpath , projectname , targetpath )
158+ parsemanager = ParseManager (
159+ projectpath , projectname , targetpath , keep_system_includes = keep_system_includes )
158160 parsemanager .remove_semantics ()
159161 parsemanager .initialize_paths ()
160162
@@ -418,6 +420,7 @@ def cfile_analyze_file(args: argparse.Namespace) -> NoReturn:
418420 xcfilename : str = args .filename
419421 opttgtpath : Optional [str ] = args .tgtpath
420422 wordsize : int = args .wordsize
423+ keep_system_includes : bool = args .keep_system_includes
421424 verbose : bool = args .verbose
422425 loglevel : str = args .loglevel
423426 logfilename : Optional [str ] = args .logfilename
@@ -468,12 +471,21 @@ def cfile_analyze_file(args: argparse.Namespace) -> NoReturn:
468471 contractpath = os .path .join (targetpath , "chc_contracts" )
469472
470473 capp = CApplication (
471- projectpath , projectname , targetpath , contractpath , singlefile = True )
474+ projectpath ,
475+ projectname ,
476+ targetpath ,
477+ contractpath ,
478+ singlefile = True ,
479+ keep_system_includes = keep_system_includes )
472480
473481 capp .initialize_single_file (cfilename )
474482 cfile = capp .get_cfile ()
475483
476- am = AnalysisManager (capp , verbose = verbose , wordsize = wordsize )
484+ am = AnalysisManager (
485+ capp ,
486+ verbose = verbose ,
487+ wordsize = wordsize ,
488+ keep_system_includes = keep_system_includes )
477489
478490 am .create_file_primary_proofobligations (cfilename )
479491 am .reset_tables (cfile )
@@ -578,6 +590,7 @@ def cfile_run_file(args: argparse.Namespace) -> NoReturn:
578590 # arguments
579591 pcfilename : str = os .path .abspath (args .filename )
580592 opttgtpath : Optional [str ] = args .tgtpath
593+ keep_system_includes : bool = args .keep_system_includes
581594 cshowcode : bool = args .showcode
582595 copen : bool = args .open
583596 cshowinvariants : bool = args .showinvariants
@@ -622,7 +635,8 @@ def cfile_run_file(args: argparse.Namespace) -> NoReturn:
622635
623636 chklogger .logger .info ("Target path: %s" , targetpath )
624637
625- parsemanager = ParseManager (projectpath , projectname , targetpath )
638+ parsemanager = ParseManager (
639+ projectpath , projectname , targetpath , keep_system_includes = keep_system_includes )
626640 parsemanager .remove_semantics ()
627641 parsemanager .initialize_paths ()
628642
@@ -672,7 +686,12 @@ def cfile_run_file(args: argparse.Namespace) -> NoReturn:
672686 contractpath = os .path .join (targetpath , "chc_contracts" )
673687
674688 capp = CApplication (
675- projectpath , projectname , targetpath , contractpath , singlefile = True )
689+ projectpath ,
690+ projectname ,
691+ targetpath ,
692+ contractpath ,
693+ singlefile = True ,
694+ keep_system_includes = keep_system_includes )
676695
677696 capp .initialize_single_file (cfilename )
678697 cfile = capp .get_cfile ()
@@ -695,7 +714,12 @@ def cfile_run_file(args: argparse.Namespace) -> NoReturn:
695714 chklogger .logger .info ("cfile analyze completed" )
696715
697716 capp = CApplication (
698- projectpath , projectname , targetpath , contractpath , singlefile = True )
717+ projectpath ,
718+ projectname ,
719+ targetpath ,
720+ contractpath ,
721+ singlefile = True ,
722+ keep_system_includes = keep_system_includes )
699723 capp .initialize_single_file (cfilename )
700724 cfile = capp .get_cfile ()
701725
0 commit comments