Skip to content

fix: various problems in TakeContent and related functions#814

Open
jodavies wants to merge 1 commit intoform-dev:masterfrom
jodavies:non-symbol-takecontent
Open

fix: various problems in TakeContent and related functions#814
jodavies wants to merge 1 commit intoform-dev:masterfrom
jodavies:non-symbol-takecontent

Conversation

@jodavies
Copy link
Copy Markdown
Collaborator

TakeContent did not correctly remove function content from the terms, it got stuck in infinite loops in several cases. MergeDotproductLists got stuck in infinite loops, missed tail cases, and produced a mal-formed result.

In some of these cases, the poly class proceeded to compute a gcd anyway (since the non-symbol objects are converted to extrasymbols). The flint interface Terminated, since it anticipates content-free input and checks this.

@jodavies
Copy link
Copy Markdown
Collaborator Author

This one certainly needs some more eyes on it, and probably more test cases.

@coveralls
Copy link
Copy Markdown

coveralls commented Mar 30, 2026

Coverage Status

coverage: 58.769% (+0.3%) from 58.481% — jodavies:non-symbol-takecontent into form-dev:master

Comment thread sources/ratio.c Outdated
TakeContent did not correctly remove function content from the terms, it got
stuck in infinite loops in several cases. MergeDotproductLists got stuck
in infinite loops, missed tail cases, and produced a mal-formed result.

In some of these cases, the poly class proceeded to compute a gcd anyway
(since the non-symbol objects are converted to extrasymbols). The flint
interface Terminated, since it anticipates content-free input and checks
this.
@jodavies jodavies force-pushed the non-symbol-takecontent branch from 40204f6 to 356df93 Compare May 5, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants