Comments (7)
(note: I forgot to remove the
greet()
function but it looks labeled with a-
instead of the expectable0
, as it is untested code. Is that right?)
adding the report from 1.9.3 just for completeness:
- module covtest
-
- greet() = print("Hello World!")
-
1 function testfun(n)
1 [ begin
10 x = i
10 x = x * x
10 x = x + x
10 x = x / x
10 x
- end for i=1:n]
- end
-
1 function testfun2(n)
1 a = n
1 a *= n
1 a += n
1 a /= n
1 a
- end
-
- end # module covtest
...anyway so the greet() not being reported at all is probably not a regression but I still wouldn't say it's optimal.
from julia.
Likely related to: #53354
which was introduced between 1.10.1 and 1.10.2
cc @JeffBezanson
from julia.
I just hit this today.
from julia.
(note: I forgot to remove the greet()
function but it looks labeled with a -
instead of the expectable 0
, as it is untested code. Is that right?)
from julia.
What was the latest version where this worke? 1.10.1, 1.9?
from julia.
Looks like all was OK on 1.9.3 and 1.9.4 (e.g. here on master: https://github.com/COBREXA/JSONFBCModels.jl/actions/runs/7223225523/job/19681839328 ). In this specific case I found on this merge request: COBREXA/JSONFBCModels.jl#8 and this pipeline: https://github.com/COBREXA/JSONFBCModels.jl/actions/runs/7875684795/job/22202840125 which is 1.10.2.
I can try to bisect later, but I didn't have time to do much stuff lately so please don't count on me there 😅
from julia.
In other news, I'm getting several similar cases with functions that are easy to inline, such as:
Base.:+(a::Int, b::Whatevs) = b+a
Base.:+(a::Whatevs, b::Int)= combine_whatevs_with_int(a,b)
The first line never gets coverage; even calls to 0 + Whatevs()
generate coverage ticks for the second line.
I somehow assume there's an over-zealous optimization somewhere in the way.
from julia.
Related Issues (20)
- `make JULIA_PRECOMPILE=0` doesn't skip precompilation of stdlibs anymore HOT 8
- incorrect method lookup for Union{} type dispatch
- Regression: failure of TypeVar in recursive struct with `NTuple` field HOT 1
- CI: test failure in UUIDs with `uuid7(Xoshiro(0))` HOT 5
- Cornercase where closure boxing fails in function bodies
- Crash in recursive function with many intermediate allocations HOT 4
- Cannot load shared library HOT 1
- literal_pow isn't marked public and isn't documented HOT 3
- help REPL: syntax highlighting makes some words invisible HOT 1
- AnnotatedString: wrong join() result with other string types
- AnnotatedString displays as a regular String, annotations aren't shown
- Make stack size configurable in `Threads.@spawn`
- Weird inheritance of `TypeVar` of types used as lower bounds in parametric types. HOT 5
- Rational power of `BigFloat` should use specialised MPFR function HOT 7
- Runtime crash with unreachable reached HOT 1
- incorrect dispatch trying to print `Union{}` Type
- `sum` with dims kwarg is incorrect on Any array when missings are present HOT 2
- Edit macro disagrees with dispatch HOT 5
- requirement for `PropertyError` similar to `FieldError` HOT 1
- 5x slowdown in 1.11.0-rc1 compared to 1.10.4 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from julia.