Debian Codegraph @

test/api/java/issues/Issue12117.java

raw
1 /******************************************************************************
2 * Top contributors (to current version):
3 * Daniel Larraz
4 *
5 * This file is part of the cvc5 project.
6 *
7 * Copyright (c) 2009-2025 by the authors listed in the file AUTHORS
8 * in the top-level source directory and their institutional affiliations.
9 * All rights reserved. See the file COPYING in the top-level source
10 * directory for licensing information.
11 * ****************************************************************************
12 *
13 * Test for issue #12117
14 */
15
16 import io.github.cvc5.*;
17
18 public class Issue12117 {
19 public static void main(String[] args) {
20 TermManager tm = new TermManager();
21 try {
22 // Attempt to create a string term with a high Unicode surrogate
23 Term t = tm.mkString("\uD880\uDC4C");
24 System.out.println("Term created: " + t);
25 } catch (CVC5ApiException e) {
26 System.out.println("Exception occurred: " + e.getMessage());
27 }
28 }
29 }