Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions chc/cmdline/c_file/cfileutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ def cfile_report_file(args: argparse.Namespace) -> NoReturn:
xcfilename: str = args.filename
opttgtpath: Optional[str] = args.tgtpath
cshowcode: bool = args.showcode
cshowinvariants: bool = args.showinvariants
cfunctions: Optional[List[str]] = args.functions
copen: bool = args.open
jsonoutput: bool = args.json
Expand Down Expand Up @@ -334,7 +335,8 @@ def pofilter(po: "CFunctionPO") -> bool:

if cfunctions is None:
if cshowcode:
print(RP.file_code_tostring(cfile, pofilter=pofilter))
print(RP.file_code_tostring(
cfile, pofilter=pofilter, showinvs=cshowinvariants))

print(RP.file_proofobligation_stats_tostring(cfile))
exit(0)
Expand All @@ -356,6 +358,7 @@ def cfile_run_file(args: argparse.Namespace) -> NoReturn:
opttgtpath: Optional[str] = args.tgtpath
cshowcode: bool = args.showcode
copen: bool = args.open
cshowinvariants: bool = args.showinvariants
jsonoutput: bool = args.json
outputfile: Optional[str] = args.output
verbose: bool = args.verbose
Expand Down Expand Up @@ -492,7 +495,8 @@ def pofilter(po: "CFunctionPO") -> bool:
return True

if cshowcode:
print(RP.file_code_tostring(cfile, pofilter=pofilter))
print(RP.file_code_tostring(
cfile, pofilter=pofilter, showinvs=cshowinvariants))

print(RP.file_proofobligation_stats_tostring(cfile))
exit(0)
Expand Down
8 changes: 8 additions & 0 deletions chc/cmdline/chkc
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,10 @@ def parse() -> argparse.Namespace:
"--open",
action="store_true",
help="only show open proof obligations")
cfilereport.add_argument(
"--showinvariants",
action="store_true",
help="show location invariants on the code")
cfilereport.add_argument(
"--json",
action="store_true",
Expand Down Expand Up @@ -742,6 +746,10 @@ def parse() -> argparse.Namespace:
"--open",
action="store_true",
help="only show open proof obligations")
cfilerun.add_argument(
"--showinvariants",
action="store_true",
help="show location invariants on the code")
cfilerun.add_argument(
"--json",
action="store_true",
Expand Down
Binary file modified chc/summaries/cchsummaries.jar
Binary file not shown.