File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
csharp/ql/lib/semmle/code/cil Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ private module Cached {
32
32
exists ( Assembly asm |
33
33
asm = mi .getLocation ( ) and
34
34
( assemblyIsStubImpl ( asm ) implies asm .getFile ( ) .extractedQlTest ( ) ) and
35
- not exists ( MethodImplementation better | mi . getMethod ( ) = better . getMethod ( ) |
36
- mi . getNumberOfInstructions ( ) < better . getNumberOfInstructions ( )
37
- or
38
- mi . getNumberOfInstructions ( ) = better . getNumberOfInstructions ( ) and
39
- asm . getFile ( ) . toString ( ) > better .getLocation ( ) .getFile ( ) .toString ( )
40
- ) and
35
+ mi =
36
+ max ( MethodImplementation impl |
37
+ mi . getMethod ( ) = impl . getMethod ( )
38
+ |
39
+ impl order by impl . getNumberOfInstructions ( ) , impl .getLocation ( ) .getFile ( ) .toString ( ) desc
40
+ ) and
41
41
exists ( mi .getAnInstruction ( ) )
42
42
)
43
43
}
You can’t perform that action at this time.
0 commit comments