Skip to content

ASRVerify: Require signed integer array dimensions - #1903

Merged
ubaidsk merged 1 commit into
lcompilers:mainfrom
ubaidsk:asr_verify_arr_dims
Jun 13, 2023
Merged

ubaidsk merged 1 commit into
lcompilers:mainfrom
ubaidsk:asr_verify_arr_dims

Conversation

@ubaidsk

@ubaidsk ubaidsk commented Jun 13, 2023

Copy link
Copy Markdown
Collaborator

fixes #1899

@ubaidsk

ubaidsk commented Jun 13, 2023

Copy link
Copy Markdown
Collaborator Author

@certik How do we test this?

@ubaidsk
ubaidsk force-pushed the asr_verify_arr_dims branch from bee2fc8 to a75d763 Compare June 13, 2023 20:56
@certik

certik commented Jun 13, 2023

Copy link
Copy Markdown
Contributor

@certik How do we test this?

Right now just by hand. We should eventually test all of these ASR verify checks systematically, one way to do that is via the MASR tool that @rebcabin is developing. We can setup randomized tests and ensure that if the ASR is outside of the "spec" that verify() always fails, and if it is inside the "spec" that it always succeeds.

We'll focus on this after we deliver LFortran/LPython to beta. Right now just best effort solid ASR verify() is all we can do.

@ubaidsk
ubaidsk enabled auto-merge June 13, 2023 21:12
@ubaidsk
ubaidsk merged commit d20a094 into lcompilers:main Jun 13, 2023
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.

ASR verify: check that only signed integers are allowed in dimensions

2 participants