Skip to content

Commit 8c6240a

Browse files
committed
code review
1 parent 06b765d commit 8c6240a

4 files changed

Lines changed: 37 additions & 2 deletions

File tree

CodeHawk/CHC/cchanalyze/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ MLIS := \
5656
cCHPOCheckCast \
5757
cCHPOCheckCommonBase \
5858
cCHPOCheckCommonBaseType \
59+
cCHPOCheckErrnoWritten \
5960
cCHPOCheckControlledResource \
6061
cCHPOCheckFormatCast \
6162
cCHPOCheckInScope \

CodeHawk/CHC/cchanalyze/cCHFunctionTranslator.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ object
381381
let fsymbol = EU.symbol f.svar.vname in
382382
let proc =
383383
EU.mkProcedure fsymbol ~signature:[] ~bindings:[] ~scope ~body:fbody in
384-
let _ = CHPretty.pr_debug [proc#toPretty; NL; NL] in
384+
(* let _ = CHPretty.pr_debug [proc#toPretty; NL; NL] in *)
385385
let csystem = EU.mkSystem (new symbol_t "c-system") in
386386
let _ = csystem#addProcedure proc in
387387
(None, csystem)
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
(* =============================================================================
2+
CodeHawk C Analyzer
3+
Author: Alexander Bakst
4+
------------------------------------------------------------------------------
5+
The MIT License (MIT)
6+
7+
Copyright (c) 2026 Aarno Labs LLC
8+
9+
Permission is hereby granted, free of charge, to any person obtaining a copy
10+
of this software and associated documentation files (the "Software"), to deal
11+
in the Software without restriction, including without limitation the rights
12+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13+
copies of the Software, and to permit persons to whom the Software is
14+
furnished to do so, subject to the following conditions:
15+
16+
The above copyright notice and this permission notice shall be included in all
17+
copies or substantial portions of the Software.
18+
19+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25+
SOFTWARE.
26+
============================================================================= *)
27+
28+
(* cchanalyze *)
29+
open CCHAnalysisTypes
30+
31+
(* cchpre *)
32+
open CCHPreTypes
33+
34+
val check_errno_written : po_query_int -> location_invariant_int -> bool

CodeHawk/CHC/cchlib/cCHSumTypeSerializer.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ object
428428
| XExternalStateValue _ -> "esv"
429429
| XFormattedInput _ -> "fi"
430430
| XFalse -> "f"
431-
| XWritesErrno -> "we" (* ?? *)
431+
| XWritesErrno -> "ew"
432432
| XFreed _ -> "fr"
433433
| XFunctional -> "fn"
434434
| XGlobalAddress _ -> "ga"

0 commit comments

Comments
 (0)