aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Cutil.mli
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2019-07-04 12:59:33 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2019-07-04 12:59:33 +0200
commitdebbae89f9faf47b95bd1c86058cd232783f3c3f (patch)
treec98aa4f51c5e80f5f01e74ffe07958d4632667f6 /cparser/Cutil.mli
parented2318e287c6edeeceed7e2a104195b08aa3e31a (diff)
downloadcompcert-kvx-debbae89f9faf47b95bd1c86058cd232783f3c3f.tar.gz
compcert-kvx-debbae89f9faf47b95bd1c86058cd232783f3c3f.zip
Added new diagnostic for non-linear conditionals
The new diagnostics is triggered if a conditional is used that may not be transformed into linear code by the later by the if conversion. The new diagnostic is emitted if a conditional may contain an unsafe expression or is contained within another conditional, logical and or logical or expression. An expression is unsafe if it contains a call, changes memory or if its evaluation leads to undefined behavior, for example division and modulo. Also fixes a small typo in a comment in Cutil.
Diffstat (limited to 'cparser/Cutil.mli')
-rw-r--r--cparser/Cutil.mli2
1 files changed, 1 insertions, 1 deletions
diff --git a/cparser/Cutil.mli b/cparser/Cutil.mli
index 3777c321..f6c4627d 100644
--- a/cparser/Cutil.mli
+++ b/cparser/Cutil.mli
@@ -167,7 +167,7 @@ val is_scalar_type : Env.t -> typ -> bool
val is_composite_type : Env.t -> typ -> bool
(* Is type a struct or union? *)
val is_array_type : Env.t -> typ -> bool
- (* Is type a array type? *)
+ (* Is type an array type? *)
val is_function_type : Env.t -> typ -> bool
(* Is type a function type? (not pointer to function) *)
val is_function_pointer_type : Env.t -> typ -> bool