Title: Fixed output through c_sym backend for test_gruntz.py by anutosh491 · Pull Request #2441 · lcompilers/lpython · GitHub
Open Graph Title: Fixed output through c_sym backend for test_gruntz.py by anutosh491 · Pull Request #2441 · lcompilers/lpython
X Title: Fixed output through c_sym backend for test_gruntz.py by anutosh491 · Pull Request #2441 · lcompilers/lpython
Description: As discussed in #2437 (comment), this fixes the issue with the c_sym backend to correctly deal with test_gruntz.py (and any symbolic list in general) (lf) anutosh491@spbhat68:~/lpython/lpython$ cat integration_tests/test_gruntz.py from lpython import S from sympy import Symbol def mmrv(e: S, x: S) -> list[S]: l: list[S] = [] if not e.has(x): return l else: raise def test_mrv1(): x: S = Symbol("x") y: S = Symbol("y") ans: list[S] = mmrv(y, x) assert len(ans) == 0 print(ans) test_mrv1()(lf) anutosh491@spbhat68:~/lpython/lpython$ lpython --enable-symengine --backend=c integration_tests/test_gruntz.py []
Open Graph Description: As discussed in #2437 (comment), this fixes the issue with the c_sym backend to correctly deal with test_gruntz.py (and any symbolic list in general) (lf) anutosh491@spbhat68:~/lpython/lpython$ cat...
X Description: As discussed in #2437 (comment), this fixes the issue with the c_sym backend to correctly deal with test_gruntz.py (and any symbolic list in general) (lf) anutosh491@spbhat68:~/lpython/lpython$ cat...
Opengraph URL: https://github.com/lcompilers/lpython/pull/2441
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:0e94ec27-0f96-4eeb-1cb9-fc1ddd58ee2e |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 9164:16E579:2D84B29:3CD650C:6992F0F4 |
| html-safe-nonce | 63993011e887067866065f28a6aa790067dba02e077cc307598b548c2505175d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTY0OjE2RTU3OToyRDg0QjI5OjNDRDY1MEM6Njk5MkYwRjQiLCJ2aXNpdG9yX2lkIjoiMTU0Mzc3NDY3MTQ1OTI1MDQyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ca6c288e1c3a89e01e0eca44e8ea6bcafbad4f96fefb5e0ae7db524c7ab6bbd1 |
| hovercard-subject-tag | pull_request:1638084639 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/lcompilers/lpython/pull/2441/checks |
| twitter:image | https://avatars.githubusercontent.com/u/87052487?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/87052487?s=400&v=4 |
| og:image:alt | As discussed in #2437 (comment), this fixes the issue with the c_sym backend to correctly deal with test_gruntz.py (and any symbolic list in general) (lf) anutosh491@spbhat68:~/lpython/lpython$ cat... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01ab16879a3159e6f0717ab948b9b562e162a6aafd1f4393b786b07b747df244 |
| turbo-cache-control | no-preview |
| go-import | github.com/lcompilers/lpython git https://github.com/lcompilers/lpython.git |
| octolytics-dimension-user_id | 96538276 |
| octolytics-dimension-user_login | lcompilers |
| octolytics-dimension-repository_id | 442864346 |
| octolytics-dimension-repository_nwo | lcompilers/lpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 442864346 |
| octolytics-dimension-repository_network_root_nwo | lcompilers/lpython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b1570f3928bef80fa5fc7890ce0942e9b696ad9d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width