forked from pool/libminizinc
3d1d9f345a
* Fix specification for constraint items and annotations in FlatZinc JSON. * Fix flattening of negated let expressions with constraints. * Fix crash when equating identifiers to tuples/records in if- then-else expressions. * Fix string_length function to return the number of Unicode code points rather than the number of bytes (i.e., to interpret the string as UTF-8). * Emit type error for opt tuples and records created through type aliases. * Fix evaluation of par partial functions returning arrays. * Fix type inference for if-then-else expressions with different tuple or record types in the branches. * Fix evaluation error caused by removal of fixed FlatZinc variables without fixing them in the output model. * Fix computed type when flattening cv comprehensions containing tuple or record types. * Fix unsatisfiability caused by reification in negated boolean context (:bugref:`813`). * Fix bug in computation of common type of incompatible record types. * Fix crash when type checking nested arrays of tuples or records. * Fix incorrect unification of flattened tuple/record fields with paths enabled. * Add string_split function that splits a string into an array of strings based on a separator. * Add json_section annotation to mark an output item as a JSON section (:bugref:`816`). OBS-URL: https://build.opensuse.org/package/show/science/libminizinc?expand=0&rev=11
42 lines
1.3 KiB
Diff
42 lines
1.3 KiB
Diff
From 9fce2c1f83b89ce8cbef585ccfc3c19c55cc16f6 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
|
|
Date: Tue, 19 Jul 2022 03:30:09 +0200
|
|
Subject: [PATCH 1/3] Disambiguate UNKNOWN EXCEPTION
|
|
|
|
minizinc.cpp and solns2out.cpp have the exact same error message in case of
|
|
an unhandled/unknown exception, add a suffix to notify where it is catched.
|
|
---
|
|
lib/solns2out.cpp | 2 +-
|
|
minizinc.cpp | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/lib/solns2out.cpp b/lib/solns2out.cpp
|
|
index 1e0ec4c6..6f9fdfe5 100644
|
|
--- a/lib/solns2out.cpp
|
|
+++ b/lib/solns2out.cpp
|
|
@@ -403,7 +403,7 @@ void Solns2Out::checkSolution(std::ostream& oss) {
|
|
} catch (const exception& e) {
|
|
oss << e.what() << std::endl;
|
|
} catch (...) {
|
|
- oss << " UNKNOWN EXCEPTION." << std::endl;
|
|
+ oss << " UNKNOWN EXCEPTION in checker." << std::endl;
|
|
}
|
|
|
|
#else
|
|
diff --git a/minizinc.cpp b/minizinc.cpp
|
|
index 0cb11667..a62478e9 100644
|
|
--- a/minizinc.cpp
|
|
+++ b/minizinc.cpp
|
|
@@ -72,7 +72,7 @@ int run(const std::string& exe, const std::vector<std::string>& args, bool jsonS
|
|
if (slv.getFlagVerbose()) {
|
|
std::cerr << std::endl;
|
|
}
|
|
- std::cerr << " UNKNOWN EXCEPTION." << std::endl;
|
|
+ std::cerr << " UNKNOWN EXCEPTION in solver." << std::endl;
|
|
}
|
|
|
|
if (slv.getFlagVerbose()) {
|
|
--
|
|
2.37.0
|
|
|