Manuscript Offprint
arXiv:2610.05316More Powerful Constant Value Checking with SMT Solving
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.
Jonas Mittnacht [0009-0005-4030-0125] and Florian Lanzinger [0000-0001-8560-6324]
Institute of Information Security and Dependability (KASTEL), Karlsruhe Institute of Technology, Karlsruhe, Germany
jonas.mittnacht@student.kit.edu
Abstract. Pluggable type systems extend the basic type system of a programming language by introducing additional type hierarchies to specify more complex properties and dependencies between variables. We consider the Constant Value Checker, a pluggable type checker for Java implemented using the Checker Framework, which provides various pluggable type systems and corresponding checkers. The Constant Value Checker lets users specify restrictions on the values a primitive integer or boolean variable can hold using a set or range of constant values. However, the current implementation of the Value Checker makes use of a limited set of syntactic typing rules that, in practice, often fail to verify well-typedness of more complex code.
In this paper, we introduce an extension to the Checker Framework using Satisfiability Modulo Theories (SMT) solvers to address these limitations by creating corresponding first-order logic formulas for expressions whose type checks fail with the current syntactic typing rules and determining their well-typedness based on the satisfiability of these formulas. Furthermore, we introduce new dependent types for specifying allowed values with expressions that can depend on other variables in the program.
Keywords: Checker Framework · Java · SMT · Pluggable Type Systems · Refinement Type Systems.
1 Introduction
Background Pluggable type systems are type systems defined on top of a language's base types and allow the specification of additional properties. To verify and strengthen guarantees about a Java program ahead of execution, the Checker Framework [2] project provides a set of such type systems and uses so-called Checkers to verify the correct usage of these types. One such pluggable type system in the Checker Framework is the Constant Value Checker [1]. It provides a set of annotations for denoting that the value of a variable of a primitive or String type (or the length of an array) is restricted to a set of constant values specified in the annotation. However, the type-checking capabilities of the underlying Checker implemented in the framework are rather limited in
J. Mittnacht et al.
power, particularly because it does not track correlations (e.g. equality) between variables. In expressions with strongly correlated variables, the Checker therefore often evaluates the resulting value to be within a much broader range than required - as an example, for an expression of the form in which x is known to hold a value within the range , the Constant Value Checker is unable to verify that the resulting value is indeed in the range .
Contribution To alleviate these limitations, we present a method for validating constant value types using Satisfiability Modulo Theories (SMT) solving. We implemented this approach for the Checker Framework's value types in a fork of the framework and compared it to the existing Value Checker w.r.t. its performance and its expressiveness.
Related work Our work is related to more general refinement type systems. This term was introduced by Freeman and Pfenning [5] for a type system that refines algebraic data types by restricting the choice of constructor based on an expression's type. Nowadays, the term generally refers to type systems that combine a base type (e.g., int) with a refinement formula that must hold for all instances (e.g., ). Most of these kinds of refinement type systems decide the well-typedness of a program by translating type constraints into formulas to be checked by an SMT solver or some other theorem prover [16,13,12,15,14,8,6].
– @IntVal({x1, ..., xN}) for integer values in the set {x1, ..., xN},
– @IntRange(from=xL, to=xR) for integer values in the range [xL, xR],
– @BoolVal({x1, ..., xN}) for boolean values in the set {x1, ..., xN}.
Our extension introduces additional dependent value types, which make it possible to specify the allowed values in relation to other expressions in the program. These expressions of a dependent type are not evaluated during type checking – instead, their translations are incorporated into the type checking formulas as either bounds for or potential values of variables of that type. To avoid issues with mutating values, we require these expressions to be constant within the scope they are declared in, by requiring all referenced variables to be final and disallowing method calls. There are three new dependent types:
The implementation of this extension alongside a guide on how to run the Value Checker with the SMT extension can be found as an artifact on Zenodo [10] or in the development repository at https://gitlab.kit.edu/uioee/checker-framework.
The expressions of a dependent type are incorporated as if they were evaluated just before the variable of that type occurs in an expression.
– @IntValExpr({e1, ..., eN}), which specifies a set of expressions {e1, ..., eN} in String form that evaluate to an integer type, of which at least one must evaluate to the typed element's value,
– @IntRangeExpr(from=eL, to=eR), which specifies a lower and an upper bound using expressions eL and eR, respectively,
– @BoolValExpr({e1, ..., eN}), which does the same as @IntValExpr(...) for the boolean type.
To increase the power of the Value Checker, we reduce the correctness of a given value type on an expression in the program to the (un)satisfiability of a corresponding first-order logic formula which we call its type check formula. Consider the method foo in Figure 1. The type check formula for the statement
@IntRange(from=1, to=11) int foo(int x) { if (x > 10 || x < -10) { return 1; } if (x < 0) { x = -x; } return x + 1; }
Fig. 1. Sample Java program for demonstrating type check formula creation.
in line 4 would be of the form
This formula incorporates
-
the translation of the type-checked statement.
-
the exact value at the point the statement is executed of the variable depending on its initial value and the preceding control flow ( if , otherwise). Note that we use a static single-assignment transformation, introducing separate logical variables for each assignment to the program variable . For variables assigned in a loop or for fields that may be assigned unknown values by method calls, we cannot give an exact value in the formula; in these cases, we only use the variable's declared type, which must hold in every state.
-
the path condition under which the expression is evaluated, i.e. the conditions of conditional branches and loops in which the type-checked statement resides.
-
the condition under which the type is violated.
J. Mittnacht et al.
If we can find values for and res that satisfy the formula, we know that there are cases where this return type is violated. Conversely, if this formula is unsatisfiable, we know that no such values can exist, and we can thus conclude that the return type is correct. Our system is incomplete but sound: While we cannot always create formulas for which satisfiability implies an ill-typed expression, unsatisfiability does imply well-typedness. We omit the formal definition for type check formulas for brevity; more details can be found in the Bachelor's thesis [9] which this paper is based upon.
3 Implementation
Our modification [10] extends the framework’s Constant Value Checker such that any type check that fails with the included Checker invokes our SMT type-checking instead to avoid false claims of ill-typedness. Furthermore, we extend the framework’s non-dependent value types with our dependent expression types.
3.1 Overview
The SMT value checking extension is integrated into the existing Value Checker, but disabled by default. If the extension is enabled, type checking follows these steps:
-
The Value Checker generates a control-flow graph for the given part of the code and runs its transfer function in an attempt to determine whether the code is well-typed using its standard syntactic rules.
-
If any type checks fail with the syntactic rules, the Checker instead invokes the SMT value checking subsystem, which creates a type check formula and passes it to one or multiple SMT solvers.
-
As soon as one of the invoked solvers returns a result, a successful or unsuccessful type-check result is returned. If the formula is satisfiable, the type check fails and the checker outputs further information about sample values of expressions in the code with which a type error occurs, which are gathered from the model that the SMT solver has found. If the formula is unsatisfiable, the type check is successful. If none of the SMT solvers terminate within the specified timeout limit, a timeout error is returned and the type check also fails.
3.2 Applying SMT value checking to Java
The complexity of the Java language requires further considerations when creating type check formulas. While mutability of local variables is dealt with using an SSA translation as mentioned before, each method call is assumed to produce an independent value due to potential side effects and is thus translated to a unique formula variable. For arrays, we assume the value for an index to remain constant until a statement that could cause a side effect is evaluated (e.g.
an assignment to a field or array or a method call). Furthermore, while syntactic sugar statements such as switch statements and ternary expressions are trivially translatable to regular if statements, try-catch blocks require special treatment. Since there is generally little information as to when a specific exception could be thrown, we treat catch blocks as additional conditional branches with unknown conditions, mirroring the potential control flow in cases where an exception could be thrown.
Another intricacy comes from the wrapper types for primitives. The extension, much like the base Constant Value Checker, treats primitives and their respective boxed types as equivalent and thus considers boxing and unboxing to be identity functions. Although the boxed types can have null values, the Constant Value Checker assumes all values to be non-null for its analysis, since any operation on them will result in a NullPointerException.
3.3 Integration with SMT solvers
The SMT-enabled Value Checker uses JavaSMT [4], a library providing a common Java interface to create formulas for and call into various supported SMT solvers. This library serves as a common interface to multiple SMT solvers and allows us to use all of its supported solvers without directly depending on any singular one of them.
The SMT value checking subsystem implementation currently only supports Java expressions of the integer types byte, short, int, long and char as well as the boolean type. While boolean expressions directly map to formulas in the uninterpreted functions with equality theory, which is decidable [3], there are two common theories that could be used for integer expressions: 1. Integer theory, which uses regular mathematical integers. These do not directly match the semantics of the finite Java integers, as arithmetic operations on them do not overflow, and bitwise operations cannot be easily translated. Furthermore, for non-linear arithmetic, the integer theory is non-decidable [7]. 2. Bitvector theory, which uses bitvectors of fixed sizes, which closely match Java integer semantics including overflows, and can also be used to model bitwise operations, but can lead to more timeouts than the integer theory. To support all Java integer operations, we chose to use the bitvector theory for our extension.
This assumption is only valid in single-threaded applications. The extension includes an option for enabling concurrent semantics, which disables this assumption.
Any boxed primitive whose value is known to be null (e.g. due to a conditional statement testing for nullness) is automatically assigned the bottom type @BottomVal, i.e. any such variable automatically serves as a valid instance of any value type.
In theory, one needs to distinguish between boolean terms (which have values in the interpretation’s domain and are not well-formed formulas themselves) and predicates and boolean operations on them (which constitute a valid formula). However, most SMT solvers consider expressions with boolean domain values to be equivalent to logical formulas, which allows us to use logical operands directly in terms.
J. Mittnacht et al.
4 Evaluation
We evaluate our implementation on the basis of a set of methods with Value Checker type specifications. For this purpose, we use the Z3 [11] solver. Afterwards, we compare the runtime for default and SMT-enabled value checking and assess the overhead incurred by the SMT-solving layer.
4.1 Decrease in false negative type-check results
Test cases with non-dependent value types We first demonstrate the additional strength gained due to the SMT value checking subsystem with a set of test cases only making use of the existing non-dependent value types in the Value Checker, for which the regular implementation is unable to prove well-typedness.
Correlation tracking As stated in the introduction, the Value Checker's manual typing rules do not perform correlation tracking between expressions. This often leads to larger losses of precision in the inferred types, such as in the statement @IntVal(0) int res = x-x;, for which the Value Checker is unable to prove correctness w.r.t the constant value type. These problems are largely alleviated with the SMT type checking extension and its consideration of assignment contexts, with which it can prove tighter bounds for the results of calculations like the polynomial evaluation seen in Figure 2.
// The return type is the tightest correct range for this expression, // since it evaluates to 318 for x = -27 and to -77 for x = -16. // Without the SMT extension, the tightest bound known to the Checker // is @IntRange(from=-54449, to=77785). @IntRange(from=-77, to=318) long pol(@IntRange(from=-30, to=21) long x) { return ((x+30)(x+20)(x+10)x(x-10)(x-20)(x-30)) / 3000000; }
Fig. 2. A 7th-degree polynomial for which the SMT extension is successfully able to prove the return value type.
Precision losses due to limits of types In other cases, the Value Checker loses precision not due to loss of correlation, but due to the limited expressiveness of the value types. Consider the test case in Figure 3. We know that the variable someValue holds a value . However, since we can only specify a single value type annotation, the most precise range we can specify is meaning we lose the fact that someValue never holds a value in
We could specify the type as @IntVal({-10,-9,-8,-7,-6,-5,5,6,7,8,9,10}) instead. However, the Value Checker replaces an @IntVal annotation with more than 10 values with an @IntRange annotation whose range encompasses all values of the array to prevent it from checking too many combinations of values when applying the transfer function [1]. Therefore, the Value Checker would end up using the same range as mentioned above.
@IntRange(from=5, to=10) int precLoss(@IntRange(from=-10, to=-5) int x, @IntRange(from=5, to=10) int y) { @IntRange(from=-10, to=10) int someValue = someCondition() ? x : y; return someValue > 0 ? someValue : -someValue; }
Fig. 3. A sample method in which the Value Checker does not persist enough information about a statement due to the limited expressiveness of the value type system.
the range . As the default Value Checker can only use type information for a variable, it therefore can no longer prove the fact that the returned value is within the range . In contrast, the SMT extension can conclude that someValue is never assigned a value within using its assignment context.
Dependent type evaluation In addition to extending the type checking process with SMT solving, we introduced new dependent value types into the value type system. When specifying these types, SMT value checking must be enabled in the Value Checker, as the syntactic type rules cannot handle these expression types. Using the dependent value types, we can annotate various mathematical functions and prove properties about their return values. Some samples that are provable with the SMT extension can be found in Figure 4.
@IntValExpr({#1", "#2"}) int min(final int first, final int second) { return first >= second ? first : second; }
@IntRangeExpr(from="#2", to="#3") int clamp(int input, // Only one of the following two annotations is necessary final @IntRangeExpr(to="#3") int min, final @IntRangeExpr(from="#2") int max) { if (input < min) { return min; } if (input > max) { return max; } return input; }
Fig. 4. Sample methods using dependent value types to specify additional properties about their return value. The well-typedness for these is provable with the SMT extension.
4.2 Overhead evaluation
To gain an insight into how the SMT extension for the Value Checker affects the type-checking runtime, we first run the internal Value Checker test cases, which encompass 114 classes directly testing the Value Checker as well as 349 tests common to all Checkers testing the handling of various Java language features, on a system with an AMD Ryzen 5 5600X 6-core processor and 16 GB of memory.
J. Mittnacht et al.
using Z3 version 4.16.0 and the Temurin JDK version 25.0.3+9, running each configuration 5 times. [10] Using the Value Checker without the SMT extension on the integrated tests, we get an average runtime of about 10 seconds and 844 ms. When enabling SMT value checking, the overhead of SMT solving for failing type checks increases the average to about 12 s and 873 ms, amounting to an increase of about 18.7%. Additionally using the -AsmtForceSmtChecking option to force SMT value checking on every type check leads to a much larger increase to an average of 17 s and 731 ms, or 63.5% above the non-SMT configuration, showing that the default inference rules remain relevant as a filter for more trivial cases in which invoking the SMT subsystem would lead to a significantly longer runtime.
For evaluating the runtime of dependent value type checks (which are not supported by the regular Value Checker), we use an additional set of test cases, which can be found in the checker/tests/value-smt-evaluation directory of the artifact [10]. Overall, for type checks that successfully produce a result, the runtime remains under 2 seconds. However, whether a given type check ends up running into a timeout is not entirely obvious from the type-checked code. Consider the method in Fig. 5. Despite the rather simple nature of this
@IntRangeExpr(from="0", to="#2 - 1") int mod(@IntRange(from=0) int val, final @IntRange(from=1) int x) { return val % x; }
Fig. 5. A simple method which leads to a timeout when type checking.
statement, Z3 is unable to find a solution for the type check problem when using the bitvector theory for integers. However, modifying the extension to make use of the Integer theory instead does make the type check succeed rather quickly, showing that the strength of the extension could be potentially improved using the Integer theory.
5 Conclusion
In this paper, we have presented an extension to the Value Checker from the Java Checker Framework that strengthens type checking with an SMT solver integration. We showed that by re-checking negative type check results with an SMT solver, we are able to reduce the number of false errors while preserving soundness at an average run-time increase of about 12.1%. Furthermore, we introduced additional dependent value types to the Checker to extend the expressiveness of the type system.
The syntax #2 refers to the 2nd parameter and is used in the Checker Framework to ensure that type information is preserved even in compiled code that does not contain variable names.
References
-
The Checker Framework manual: [...] - Constant Value Checker, https://eisop.github.io/cf/manual/manual.html#constant-value-checker
-
The EISOP Checker Framework, https://eisop.github.io/cf/
-
Ackermann, W.: Solvable Cases of the Decision Problem. Studies in Logic and the Foundations of Mathematics, North-Holland Publishing Company, 3 edn. (1954)
-
Baier, D., Beyer, D., Friedberger, K.: JavaSMT 3: Interacting with SMT solvers in Java. In: Silva, A., Leino, K.R.M. (eds.) Computer Aided Verification. pp. 195–208. Springer International Publishing, Cham (2021). https://doi.org/10.1007/978-3-030-81688-9_9
-
Freeman, T., Pfenning, F.: Refinement types for ML. SIGPLAN Not. 26(6), 268–277 (may 1991). https://doi.org/10.1145/113446.113468
-
Gamboa, C., Canelas, P., Timperley, C., Fonseca, A.: Usability-oriented design of Liquid Types for Java. In: 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE). pp. 1520–1532 (2023). https://doi.org/10.1109/ICSE48619.2023.00132
-
Gödel, K.: Über formal unentscheidbare Sätze der Principia Mathematica und verwandter Systeme I. 38, 173–198 (1931). https://doi.org/10.1007/BF01700692
-
Lanzinger, F., Weigl, A., Ulbrich, M., Dietl, W.: Scalability and precision by combining expressive type systems and deductive verification. Proceedings of the ACM on programming languages 5(OOPSLA), 1–29 (Oct 2021). https://doi.org/10.1145/3485520
-
Mittnacht, J.: More powerful constant value checking with SMT solving (2026). https://doi.org/10.5445/IR/1000191941
-
Mittnacht, J., Lanzinger, F.: SMT constant value checking artifacts (Jun 2026). https://doi.org/10.5281/zenodo.20678571
-
de Moura, L., Bjørner, N.: Z3: An efficient SMT solver. In: Ramakrishnan, C.R., Rehof, J. (eds.) Tools and Algorithms for the Construction and Analysis of Systems. pp. 337–340. Springer Berlin Heidelberg, Berlin, Heidelberg (2008). https://doi.org/10.1007/978-3-540-78800-3_24
-
Rondon, P.M., Kawaguci, M., Jhala, R.: Liquid Types. In: Proceedings of the 29th ACM SIGPLAN Conference on Programming Language Design and Implementation. p. 159–169. PLDI '08, Association for Computing Machinery, New York, NY, USA (2008). https://doi.org/10.1145/1375581.1375602
-
Rushby, J., Owre, S., Shankar, N.: Subtypes for specifications: predicate subtyping in PVS. IEEE Transactions on Software Engineering 24(9), 709–720 (1998). https://doi.org/10.1109/32.713327
-
Toman, J., Siqi, R., Suenaga, K., Igarashi, A., Kobayashi, N.: ConSORT: Context-and flow-sensitive ownership refinement types for imperative programs. In: Müller, P. (ed.) Programming Languages and Systems. pp. 684–714. Springer International Publishing, Cham (2020)
-
Vazou, N., Seidel, E.L., Jhala, R., Vytiniotis, D., Peyton Jones, S.: Refinement types for Haskell. In: Proceedings of the 19th ACM SIGPLAN International Conference on Functional Programming. pp. 269–282. ICFP '14, ACM (September 2014). https://doi.org/10.1145/2628136.2628161
-
Xi, H., Pfenning, F.: Eliminating array bound checking through dependent types. In: Proceedings of the ACM SIGPLAN 1998 Conference on Programming Language Design and Implementation. p. 249–257. PLDI '98, Association for Computing Machinery, New York, NY, USA (1998). https://doi.org/10.1145/277650.277732
J. Mittnacht et al.
A Artifact
The following functional outcomes are expected:
The example code snippets in Section 4.1 show various scenarios in which SMT-enabled value checking is able to validate correct type annotations that the original Value Checker falsely deemed incorrect, alongside some samples with dependent type annotations that the original Value Checker did not support.
Section 4.2 shows that the overhead for enabling SMT value checking with the Z3 solver on the existing Value Checker test cases in the framework leads to a runtime increase of about 18.7%, while forcing all value type checking results to be re-checked with the SMT solver increases the runtime over the regular (non-SMT-enabled) Checker by about 63.5%.
Section 4.2 also shows that the included dependent type code samples that do not time out have a type checking runtime of less than 2 seconds.
The following reusability claims are expected:
The artifact can be used to perform value type checking on other programs with value type annotations.
A.1 Quick start
The artifact repository contains an archive (smt-value-checking-artifact.zip) of the data and source code required for evaluating the artifact of the paper, alongside a Docker image (docker-image.tar) which includes the archive's files in the /home/ubuntu/smt-value-checking/ directory (which is the working directory upon entering the container's shell) and contains the required dependencies for working with the artifact. An overview of the artifact can be found in Figure 6.
Reviewers working with the artifact directly (without using the Docker image) need to have Git, Bash and the GNU coreutils installed alongside a Java Development Kit (JDK) of version 17 or 21. Reviewers who wish to use the Docker image can import it using docker image load -i docker-image.tar and then create and run a container with the image using docker run -it smt-value-checking.
Before evaluating, reviewers should run ./gradlew assembleForJavac in the source/ directory of the archive files and ensure that the build completes successfully. The build will produce the JAR files and native libraries required for running the forked Checker Framework in the checker/dist/ directory of the source tree, which are used by the scripts in the checker/bin/ directory. The checker/bin/javac wrapper script can then be used in place of the regular Java compiler to compile files with value type annotations, performing type checking during the compilation process if the corresponding checker is enabled (using -processor org.checkerframework.common.value.ValueChecker). The
Docker image contains these artifacts in the /opt/checkerframework/ directory, where the javac wrapper has been renamed to cf-javac to allow distinguishing between the JDK compiler and the wrapper script, as both are part of the PATH. More information on the command-line flags related to SMT value checking can be found in the source tree's README.md.
smt-value-checking-artifact/
data/.....Data used in the paper
integrated-tests-evaluation/.....Integrated tests evaluation data
evaluation/.....Scripts & samples for artifact evaluation
dependent-tests/.....Source code for evaluating
power-evaluation-samples/.....Source code for evaluating
benchmark-dependent-tests.sh.....Script for evaluating
benchmark-integrated-tests.sh.....Script for evaluating
run-power-evaluation-tests.sh.....Script for evaluating
source/.....Artifact source code
:
README.md.....Information about building and using the artifact
Fig. 6. Overview of the artifact directory structure. The data referenced in the paper can be found in the data/ directory of the artifact. The evaluation/ directory contains data and scripts required for evaluating the functional outcomes of the paper. The source/ directory contains the source code of the Checker Framework fork with SMT value checking capabilities.
A.2 Functional evaluation
Functional outcome Running the evaluation/run-power-evaluation-tests.sh script will run the SMT Value Checker twice on the samples referenced in 4.1, which can be found in the evaluation/power-evaluation-samples/ directory: once with SMT value checking disabled, and once with SMT value checking enabled. The first run will output various type checking errors referencing either supposedly incorrect types or the fact that dependent types are not supported without SMT value checking. The second run will, in contrast, not output anything, indicating that all type checks succeeded.
Functional outcome Running the evaluation/benchmark-integrated-tests.sh script will run the integrated tests on the three different configurations five times as mentioned in Section 4.2. It will also write the runtimes of each run and each configuration into evaluation/integrated-tests-results.csv as a
J. Mittnacht et al.
comma-separated values file. Note that the test cases will always be run using the Gradle build tool in the source tree, since the test cases have more complex dependencies. Runtimes are expected to differ from the results in the paper depending on the hardware used for evaluation, but the relative overhead of the two SMT configurations in relation to the non-SMT configuration should be similar.
Functional outcome Running the evaluation/benchmark-dependent-tests.sh script will compile the sample classes for testing dependent types referenced in Section 4.2 three times and log the time for each compilation in evaluation/dependent-tests-results.csv as a comma-separated values file. Classes for which the compiler does not finish compilation within 1 minute are logged with a dash (-) instead. As with , runtimes are expected to differ slightly depending on the hardware used for evaluation, but test classes without the TimeoutCases classes should compile within a few seconds, while test cases with the aforementioned suffix are expected to run into the timeout.
A.3 Reusability evaluation
This section demonstrates how to use the artifact of the paper for value type checking on custom Java classes with value type annotations ( ). In the following, <CF_JAVAC> will refer to the compiler wrapper script of the artifact. Users of the Docker image can simply replace it with cf-javac, which is part of the image's PATH. Users who built the artifact from source should replace it with the path to the checker/bin/javac file from the source tree. Alternatively, the checker/bin/ and checker/dist directories can also be copied together to a different directory, from which the bin/javac script can also be executed.
To perform value type checking on a custom Java file:
-
Create a Java source file in any directory and declare a class inside of it.
-
Import the org.checkerframework.common.value.qual package in the source file with import org.checkerframework.common.value.qual.*;
-
Create methods that perform calculations on integers or booleans, and annotate potential parameters, fields and return types (if fitting) with value types using the corresponding annotation before the declared base type. Refer to Section 2 for the available value types and their parameters and restrictions.
-
Run the SMT Value Checker with the following command:
<CF_JAVAC> -processor
org.checkerframework.common.value.ValueChecker
-AsmtValueChecking <source file>
Replace <CF_JAVAC> with the artifact's compiler wrapper and <source file> with the path to your source file. The artifact will run the Value Checker with SMT solving on the provided input, outputting any potential type errors, and will compile the class if no errors are found.
Users may find it helpful to adapt or refer to one of the source files in the source tree's checker/tests/value-smt-evaluation directory as examples for programs with value type annotations.