Skip to content

Support semi concrete eval#319

Merged
aviatesk merged 4 commits intoJuliaDebug:masterfrom
ianatol:ia/semiconc
Sep 5, 2022
Merged

Support semi concrete eval#319
aviatesk merged 4 commits intoJuliaDebug:masterfrom
ianatol:ia/semiconc

Conversation

@ianatol
Copy link
Member

@ianatol ianatol commented Aug 30, 2022

Rebase of #280

@ianatol ianatol force-pushed the ia/semiconc branch 7 times, most recently from ae21149 to 6aae120 Compare August 30, 2022 21:34
@codecov-commenter
Copy link

codecov-commenter commented Aug 30, 2022

Codecov Report

Merging #319 (6aae120) into master (df5ed45) will decrease coverage by 0.61%.
The diff coverage is 10.00%.

@@            Coverage Diff             @@
##           master     #319      +/-   ##
==========================================
- Coverage   38.16%   37.54%   -0.62%     
==========================================
  Files          10       10              
  Lines         993     1012      +19     
==========================================
+ Hits          379      380       +1     
- Misses        614      632      +18     
Impacted Files Coverage Δ
src/callsite.jl 39.29% <0.00%> (-1.43%) ⬇️
src/interpreter.jl 70.17% <0.00%> (-3.90%) ⬇️
src/reflection.jl 35.84% <20.00%> (-0.52%) ⬇️
src/Cthulhu.jl 37.77% <50.00%> (-0.22%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@Keno
Copy link
Member

Keno commented Sep 5, 2022

@aviatesk can you review and merge, since this is now on master?

@aviatesk
Copy link
Member

aviatesk commented Sep 5, 2022

I'm working on this.

A general request: please make sure to add test cases when submitting a PR with a certain amount of changes/new features like this. Currently this PR yields an obvious UndefVarError at the lookup method and this sort of error could easily fixed during making up a test case.

src/Cthulhu.jl Outdated
(; src, rt, infos, slottypes, codeinf, effects) = lookup_constproped(interp, curs, override, optimize)
else
if optimize
if isa(override, SemiConcreteCallInfo)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should lift this branch up, since otherwise the lookup call later will override the IR.

src/callsite.jl Outdated
# XXX: The first argument could be const-overriden too
name = get_mi(ci).def.name
tt = ci.argtypes[2:end]
__show_limited(limiter, name, tt, get_rt(ci))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now we need to pass effects

@aviatesk aviatesk merged commit 6a5a21b into JuliaDebug:master Sep 5, 2022
@Keno
Copy link
Member

Keno commented Sep 5, 2022

Thanks!

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.

4 participants