Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -721,8 +721,8 @@ private TranslatedValue translateEquality(
} else if (isStaticallyKnown(type0) && isStaticallyKnown(type1)) {
equality = typeSystem.getStructuralEquality(z3Arg0, z3Arg1);
} else {
boolean canBeNumeric0 = type0.kind() == CelKind.DYN || isNumericType(type0);
boolean canBeNumeric1 = type1.kind() == CelKind.DYN || isNumericType(type1);
boolean canBeNumeric0 = !isStaticallyKnown(type0) || isNumericType(type0);
boolean canBeNumeric1 = !isStaticallyKnown(type1) || isNumericType(type1);

// Check if one side is an explicit LIST that we can unroll
BoolExpr structuralEq = typeSystem.getStructuralEquality(z3Arg0, z3Arg1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ private enum IsSatisfiableTestCase {
DYNAMIC_MAP_COMPREHENSION_EXISTS("string_int_map.exists(k, k == 'test')", "string_int_map = "),
NULL_SATISFIABLE("unknown_var == null", "unknown_var = null"),
DYNAMIC_VAR_NUMERIC_EQUALITY("dyn_var == 1 && dyn_var == 1.0", "dyn_var = 1"),
ANY_NUMERIC_EQUALITY(
"test_all_types.single_any == 1 && 1.0 == test_all_types.single_any", "test_all_types = "),
DYNAMIC_VAR_NOT_IN_LIST(
"dyn_var == 1.5 && !(dyn_var in dyn_list) && size(dyn_list) == 6", "dyn_var = 1\\.5"),
DYNAMIC_LIST_EQUALITY_BEYOND_BMC_LIMIT("dyn_list == [1, 2, 3, 4, 5, 6]", "dyn_list = "),
Expand Down
Loading