Skip to content

Commit

Permalink
Remove meta-call in pivot_row/7
Browse files Browse the repository at this point in the history
Enables module simplex to pass sandbox safety check
  • Loading branch information
ridgeworks authored and JanWielemaker committed Dec 2, 2023
1 parent 525e04a commit 822cc9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/clp/simplex.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1004,14 +1004,14 @@
tableau_rows(Tableau, Rows),
pivot_row(Rows, PCol, false, _, 0, 0, PRow).

pivot_row([], _, Bounded, _, _, Row, Row) :- Bounded.
pivot_row([], _, true, _, _, Row, Row).
pivot_row([Row|Rows], PCol, Bounded0, Min0, Index0, PRow0, PRow) :-
Row = row(_Var, Left, B),
nth0(PCol, Left, Ae),
( Ae > 0 ->
Bounded1 = true,
Bound is B rdiv Ae,
( Bounded0 ->
( Bounded0 == true ->
( Bound < Min0 -> Min1 = Bound, PRow1 = Index0
; Min1 = Min0, PRow1 = PRow0
)
Expand Down

0 comments on commit 822cc9d

Please sign in to comment.