Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

2 results about "Loop counter" patented technology

In software engineering, a loop counter is the variable that controls the iterations of a loop. It is so named because most uses of this construct result in the variable taking on a range of integer values in some orderly sequence Loop counters change with each iteration of a loop, providing a unique value for each individual iteration. The loop counter is used to decide when the loop should terminate and for program flow to continue to the next instruction after the loop. A common identifier naming convention is for the loop counter to use the variable names i, j, and k, where i would be the most outer loop, j the next inner loop, etc. The reverse order is also used by some programmers. This style is generally agreed to have originated from the early programming of FORTRAN, where these variable names beginning with these letters were implicitly declared as having an integer type, and so were obvious choices for loop counters that were only temporarily required. The practice dates back further to mathematical notation where indices for sums and multiplications are often i, j, etc.

Chip supporting constant time program control of nested loops

A chip supporting constant time program control of nested loops. The chip includes at least one arithmetic logic computing unit and a controller operatively coupled thereto. The controller is configured according to a program configuration including at least one inner loop and an outer loop. The controller is configured to cause the at least one arithmetic computing unit to perform a plurality of operations according to the program configuration. The controller is configured to maintain at least a first loop counter configured to count a number of performed iterations of the at least one outer loop and a second loop counter configured to count a number of performed iterations of the at least one inner loop. The controller is configured to provide a first indication of whether the first loop counter corresponds to a last iteration and a second indication of whether the second loop counter corresponds to a last iteration. The controller is configured to increment, reset, or maintain each of the first loop counter and the second loop counter alternately according to the first indication and the second indication.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION

Method, device, storage medium and electronic device for extracting code loop counter

ActiveCN115438341BCode generationPathPing
The present application relates to a kind of extracting code loop counter method, device, storage medium and electronic equipment, belong to safety detection technical field.The method of the present application, steps are as follows: analyzing code is analyzed;Generation control flow graph and obtain loop code structure;Obtain the constant data set in loop code structure;Based on constant data set, obtain scalar constant data set;Obtain potential monotonic scalar constant data set;Obtain monotonic scalar constant data set;Obtain loop definition exit;Obtain loop jump statement exit;Based on loop exit set and monotonic scalar constant data set, obtain loop counter.Through the above steps, the extraction of loop counter can be completed.The present application can accurately and completely obtain loop counter set, provide support for carrying out loop code structure itself related defect check, also make complete path traversal with the code with loop structure possible, improve the efficiency and accuracy of detection.
Owner:BEIHANG UNIV