CUDApp
CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.
Brought by drakestapleton
CUDApp / evidence / attention-views / 2026-11-06 / attn_views_cases.c.gcov
| 1 | -: 0:Source:tests/attn_views_cases.c |
| 2 | -: 0:Graph:~/work/cudastack/lanes/ApiViewsAttn/build/attn-views-qualified-final/cases-oracle.gcno |
| 3 | -: 0:Data:~/work/cudastack/lanes/ApiViewsAttn/build/attn-views-qualified-final/cases-oracle.gcda |
| 4 | -: 0:Runs:9 |
| 5 | -: 1:/* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ |
| 6 | -: 2:#include "attn_views_fixture.h" |
| 7 | -: 3:#include "omega_attn_tables.h" |
| 8 | -: 4:#include <stdlib.h> |
| 9 | -: 5:#ifndef AV_ENTRY |
| 10 | -: 6:#error AV_ENTRY must name the differential arm |
| 11 | -: 7:#endif |
| 12 | function attn_oracle called 8 returned 100% blocks executed 99% |
| 13 | 8: 8:void AV_ENTRY(AttnViewsFixture *r) { |
| 14 | 8: 9: uint8_t *bytes=malloc(AV_N);uint16_t *bf=malloc(AV_N*sizeof *bf);int32_t *si=malloc(AV_N*sizeof *si); |
| 15 | 8*: 10: if(!bytes || !bf || !si)abort(); |
| 16 | branch 0 taken 8 (fallthrough) |
| 17 | branch 1 taken 0 |
| 18 | branch 2 taken 8 (fallthrough) |
| 19 | branch 3 taken 0 |
| 20 | branch 4 taken 0 (fallthrough) |
| 21 | branch 5 taken 8 |
| 22 | call 6 never executed |
| 23 | 8000032: 11: for(size_t i=0;i<AV_N;i++){bytes[i]=(uint8_t)(i*37u);bf[i]=(uint16_t)(i%0x7f80u);si[i]=i%3?(int32_t)i:-1;} |
| 24 | branch 0 taken 5333344 (fallthrough) |
| 25 | branch 1 taken 2666680 |
| 26 | branch 2 taken 8000024 |
| 27 | branch 3 taken 8 (fallthrough) |
| 28 | 264: 12: uint64_t p[32];for(size_t i=0;i<32;i++)p[i]=0xdeadbeef12345678ull^((uint64_t)i<<40); |
| 29 | branch 0 taken 256 |
| 30 | branch 1 taken 8 (fallthrough) |
| 31 | 8: 13: r->result[0]=av_args(r->args,p,9,25); |
| 32 | call 0 returned 8 |
| 33 | 8: 14: r->result[1]=av_layout(r->layout,p,0x5555u); |
| 34 | call 0 returned 8 |
| 35 | 8: 15: r->result[28]=r->layout[1]; |
| 36 | 8: 16: av_memcpy(r->bytes,bytes,AV_N);av_memset(r->bytes+17,0xe7,19); |
| 37 | call 0 returned 8 |
| 38 | call 1 returned 8 |
| 39 | 8: 17: av_memcpy(r->bytes,r->bytes,AV_N);av_memcpy(NULL,NULL,0);av_memset(NULL,0,0); |
| 40 | call 0 returned 8 |
| 41 | call 1 returned 8 |
| 42 | call 2 returned 8 |
| 43 | 8: 18: av_memset(bytes,0xe7,AV_N); |
| 44 | call 0 returned 8 |
| 45 | 8: 19: r->result[30]=(uint64_t)bytes[0]+bytes[AV_N-1]; |
| 46 | 8: 20: av_fill32(r->ui,AV_N,0xa1234567u);r->result[2]=av_count32(r->ui,AV_N,0xa1234567u); |
| 47 | call 0 returned 8 |
| 48 | call 1 returned 8 |
| 49 | 8: 21: r->result[3]=av_any32(r->ui,AV_N);r->result[4]=av_compact32(r->compact,si,AV_N); |
| 50 | call 0 returned 8 |
| 51 | call 1 returned 8 |
| 52 | 8: 22: av_fillf32(r->ff,AV_N,-123.25f);r->result[5]=av_countf32(r->ff,AV_N,-123.25f); |
| 53 | call 0 returned 8 |
| 54 | call 1 returned 8 |
| 55 | 8: 23: r->result[6]=av_routerpoison(r->ff,r->ui,AV_N,-123.25f,0xffffffffu); |
| 56 | call 0 returned 8 |
| 57 | 8: 24: r->result[7]=av_badids(r->ui,AV_N,1024);uint64_t zeros[5]={0,1,0,UINT64_MAX,0};r->result[8]=av_zero64(zeros,5); |
| 58 | call 0 returned 8 |
| 59 | call 1 returned 8 |
| 60 | 8: 25: r->ff[0]=0;r->ff[1]=0;r->ui[0]=UINT32_MAX;r->ui[1]=0; |
| 61 | 8: 26: r->result[25]=av_routerpoison(r->ff,r->ui,AV_N,-123.25f,UINT32_MAX); |
| 62 | call 0 returned 8 |
| 63 | 8: 27: r->result[26]=av_count32(r->ui,AV_N,0xa1234567u); |
| 64 | call 0 returned 8 |
| 65 | 8: 28: r->result[27]=av_countf32(r->ff,AV_N,-123.25f); |
| 66 | call 0 returned 8 |
| 67 | 8: 29: r->result[9]=av_bffinite(bf,AV_N);bf[AV_N-1]=0x7f80u;r->result[10]=av_bffinite(bf,AV_N);bf[AV_N-1]=0x3f80u; |
| 68 | call 0 returned 8 |
| 69 | call 1 returned 8 |
| 70 | 8: 30: av_bfexpand(r->ff,bf,AV_N);av_rowtab(r->table,4,19); |
| 71 | call 0 returned 8 |
| 72 | call 1 returned 8 |
| 73 | 8: 31: int32_t signed_ctx[8]={INT32_MIN,-1,0,1,2,INT32_MAX,31,32}; |
| 74 | 8: 32: av_context(r->compact+AV_N-8,signed_ctx,8); |
| 75 | call 0 returned 8 |
| 76 | 8: 33: av_ropegen(r->rope,0,10000.0,128,128,2);av_ropegen(r->rope+256,129,500000.0,64,256,3); |
| 77 | call 0 returned 8 |
| 78 | call 1 returned 8 |
| 79 | 8: 34: uint32_t lo[4]={0,1,2,4},hi[4]={3,4,5,6};av_gentab(lo,hi,r->table+8,4,29,3); |
| 80 | call 0 returned 8 |
| 81 | 8: 35: uint64_t ranges[16]={8,12,0,3,2};av_ranges(r->range,8,ranges); |
| 82 | call 0 returned 8 |
| 83 | 8: 36: av_rowtab(r->range+12,2,UINT32_MAX); |
| 84 | call 0 returned 8 |
| 85 | 8: 37: av_gentab(lo,hi,r->table+16,2,UINT32_MAX,1); |
| 86 | call 0 returned 8 |
| 87 | 8: 38: uint32_t ctx[8]={0,1,2,3,100,64,65,4096},nb[8]={0,1,2,1,3,4,1,2};av_eff(r->eff,ctx,nb,8,32); |
| 88 | call 0 returned 8 |
| 89 | 8: 39: r->result[11]=av_total(r->eff,8,32);r->result[12]=av_best(r->eff,8,128);r->result[13]=av_max(nb,8); |
| 90 | call 0 returned 8 |
| 91 | call 1 returned 8 |
| 92 | call 2 returned 8 |
| 93 | 8: 40: av_headmap(r->headmap,8,2,128,0);av_headmap(r->headmap+8,8,2,128,1); |
| 94 | call 0 returned 8 |
| 95 | call 1 returned 8 |
| 96 | 8: 41: uint32_t ids[4]={2,2,5,1};av_memset(r->slots,0xff,sizeof r->slots); |
| 97 | call 0 returned 8 |
| 98 | 8: 42: uint64_t tq[16]={4,1,0,24,91};uint32_t g=av_table(ids,r->table,32,r->slots,r->touched,8,tq,0);r->result[14]=g; |
| 99 | call 0 returned 8 |
| 100 | 8: 43: tq[1]=0;tq[2]=4;tq[3]=25;r->result[15]=av_table(ids,r->table,32,NULL,NULL,0,tq,g); |
| 101 | call 0 returned 8 |
| 102 | 8: 44: tq[1]=2;tq[2]=28;tq[3]=26;r->result[16]=av_table(ids,r->table,32,NULL,NULL,0,tq,0); |
| 103 | call 0 returned 8 |
| 104 | 8: 45: uint64_t block[16]={0,8,64,1,16,512};r->result[17]=av_blocks(ids,4,block);block[1]=5;r->result[18]=av_blocks(ids,4,block); |
| 105 | call 0 returned 8 |
| 106 | call 1 returned 8 |
| 107 | 8: 46: r->result[19]=av_resfit(ids,4,64,16);r->result[20]=av_resfit(ids,4,UINT32_MAX,16); |
| 108 | call 0 returned 8 |
| 109 | call 1 returned 8 |
| 110 | 8: 47: r->result[20]+=av_resfit(ids,4,UINT64_C(4294967296),0); |
| 111 | call 0 returned 8 |
| 112 | 8: 48: uint64_t gather[16]={4,2,8,20,5,2};av_gather(bytes,146,r->gather,64,gather); |
| 113 | call 0 returned 8 |
| 114 | 8: 49: uint64_t stage[16]={3,64,16,16,2};av_stage(bytes,512,r->stage,512,r->touched,stage); |
| 115 | call 0 returned 8 |
| 116 | 8: 50: av_reset(r->slots,8,r->touched,g); |
| 117 | call 0 returned 8 |
| 118 | 648: 51: float parts[4*2*10];for(size_t i=0;i<80;i++)parts[i]=(float)(i%7)*0.125f; |
| 119 | branch 0 taken 640 |
| 120 | branch 1 taken 8 (fallthrough) |
| 121 | 8: 52: const float gaps[4]={0.0f,0.375f,126.75f,200.0f}; |
| 122 | 104: 53: for(size_t row=0;row<4;row++)for(size_t s=0;s<2;s++){parts[row*20+s*10+8]=row==0?-__builtin_inff():-(float)s*gaps[row];parts[row*20+s*10+9]=1.0f;} |
| 123 | branch 0 taken 48 (fallthrough) |
| 124 | branch 1 taken 16 |
| 125 | branch 2 taken 64 |
| 126 | branch 3 taken 32 (fallthrough) |
| 127 | branch 4 taken 32 |
| 128 | branch 5 taken 8 (fallthrough) |
| 129 | 8: 54: av_fold(parts,r->fold,4,2,8); |
| 130 | call 0 returned 8 |
| 131 | 8: 55: r->result[21]=av_args(r->args,p,17,32); |
| 132 | call 0 returned 8 |
| 133 | 8: 56: r->result[22]=av_args(r->args,p,0,33); |
| 134 | call 0 returned 8 |
| 135 | 8: 57: r->result[23]=av_args(r->args,p,2,3); |
| 136 | call 0 returned 8 |
| 137 | 8: 58: r->result[24]=av_layout(r->layout,p,UINT64_C(1)<<31); |
| 138 | call 0 returned 8 |
| 139 | 8: 59: r->result[31]=av_max(r->ui,AV_N); |
| 140 | call 0 returned 8 |
| 141 | 8: 60: r->result[29]=av_total(r->compact,AV_N,32)^av_best(r->ui,AV_N,128); |
| 142 | call 0 returned 8 |
| 143 | call 1 returned 8 |
| 144 | 8: 61: av_eff(r->compact,r->ui,r->ui,AV_N,32); |
| 145 | call 0 returned 8 |
| 146 | 8: 62: r->result[30]=((uint64_t)r->compact[999999]<<32)|r->compact[AV_N-1]; |
| 147 | 8: 63: av_fill32((uint32_t*)si,AV_N,0); |
| 148 | call 0 returned 8 |
| 149 | 8: 64: uint64_t long_stage[16]={AV_N,1,0,1,0}; |
| 150 | 8: 65: av_stage(r->bytes,AV_N,bytes,AV_N,(const uint32_t*)si,long_stage); |
| 151 | call 0 returned 8 |
| 152 | 8: 66: r->result[30]^=(uint64_t)bytes[999999]+bytes[AV_N-1]; |
| 153 | 8: 67: int32_t one_slot=0;uint32_t one_touched=UINT32_MAX; |
| 154 | 8: 68: uint64_t long_table[16]={AV_N,1,0,0,0}; |
| 155 | 8: 69: r->result[28]=av_table((uint32_t*)si,r->compact,AV_N,&one_slot,&one_touched,1,long_table,1); |
| 156 | call 0 returned 8 |
| 157 | 8: 70: r->result[28]|=(uint64_t)one_touched<<32; |
| 158 | 8: 71: one_slot=-1;one_touched=UINT32_MAX; |
| 159 | 8: 72: r->result[28]+=av_table((uint32_t*)si,r->compact,AV_N,&one_slot,&one_touched,1,long_table,0); |
| 160 | call 0 returned 8 |
| 161 | 8: 73: r->touched[7]=one_touched;r->slots[7]=one_slot; |
| 162 | 8: 74: uint64_t empty[16]={0};av_stage(NULL,0,NULL,0,NULL,empty); |
| 163 | call 0 returned 8 |
| 164 | 8: 75: empty[1]=1;empty[3]=31;empty[4]=97; |
| 165 | 8: 76: r->result[28]+=av_table(NULL,r->table,32,NULL,NULL,0,empty,0); |
| 166 | call 0 returned 8 |
| 167 | 8: 77: free(si);free(bf);free(bytes); |
| 168 | 8: 78:} |