Skip to content

Invalid loop bounds in rijndael benchmarks #44

@Emoun

Description

@Emoun

The two rijndael benchmarks rijndael_dec and rijndael_enc have invalid loop bounds that mean they cannot be WCET analyzed.

For rijndael_dec, the problem is in aes.c's rijndael_dec_set_key function where a do-while loop (line 90) is given the bounds _Pragma( "loopbound min 0 max 0" ). The same happens again on line 103.
This cannot be ignored as this function is directly called from rijndael_dec_main and so are part of the benchmarked code.
A 0 bound is meaningless and can therefore not be used as a basis for WCET analysis.

rijndael_enc has the exact same problem with its rijndael_enc_set_key function.

The true bounds for these loops must be found so the code can be corrected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions