Skip to content

Commit

Permalink
Add definition of functional float_times for make_par
Browse files Browse the repository at this point in the history
Resolves #870
  • Loading branch information
Dekker1 committed Dec 9, 2024
1 parent 23adc36 commit 6a8e305
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ Bug fixes:
- Fix a bug in the typeing of enum constructor functions, which would cause
incorrect type errors when using them in the type-inst of a variable
declaration.
- Fix a segfault caused by an internal `float_times` variant not correctly being
handled during output processing (:bugref:`870`).

.. _v2.8.7:

Expand Down
2 changes: 2 additions & 0 deletions share/minizinc/std/stdlib/stdlib_internal.mzn
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ predicate int_le(int:s, array[$T] of var int: X) = forall(x in array1d(X)) (x >=
predicate float_le(array[$T] of var float: X, float: s) = forall(x in array1d(X)) (x <= s);
predicate float_le(float:s, array[$T] of var float: X) = forall(x in array1d(X)) (x >= s);

function float: float_times(float: x, float: y) = x*y;

predicate array_var_int_element(var int: x, array[int] of int: y, var int: z) =
array_int_element(x,y,z);
predicate array_var_bool_element(var int: x, array[int] of bool: y, var bool: z) =
Expand Down

0 comments on commit 6a8e305

Please sign in to comment.