IP Library › Granted Patent US 12,730,611
Granted Patent B2
US 12,730,611 · App. 18/629,356 · Granted Sep 8, 2026

Policy controlled function generators

Inventor: Muhammad Usman Karim Khan (Sindelfingen, DE)
Assignee: International Business Machines Corporation
G06F8/30
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,730,611
App. No.
18/629,356
Granted
Sep 8, 2026
Kind
B2
Abstract

Described are techniques for automated software function code generation. The techniques include generating a list of algorithms configurable with a requested software code function provided by a client device, where the list of algorithms is based on evaluating a plurality of software policies. The techniques further include generating the requested code function based on a selected algorithm of the list of algorithms and using a repository of reusable code samples in a plurality of programming languages. The techniques further include transmitting the requested code function to the client device.

Claims (37)

1 . A computer-implemented method comprising:

generating a list of algorithms configurable with a requested code function provided by a client device, wherein the list of algorithms is based on evaluating a plurality of software policies, wherein the plurality of software policies includes a changed machine policy, and wherein the requested code function supports migration of the requested code function from a first platform to a second platform;

generating the requested code function based on a selected algorithm of the list of algorithms and using a repository of reusable code samples in a plurality of programming languages;

creating a unit-test associated with the requested code function, wherein the unit-test indicates a performance of the requested code function; and

transmitting the requested code function to the client device, wherein transmitting the requested code function to the client device comprises transmitting the requested code function, the unit-test, a status message indicating whether creation of the requested code function is successful, and a data structure indicating compliant software policies of the plurality of software policies.

2 . The computer-implemented method of claim 1 , wherein the plurality of software policies are respectively associated with a precedence.

3 . The computer-implemented method of claim 2 , wherein a policy resolver is implemented to generate the list of algorithms and based on evaluating respective precedencies of the plurality of software policies.

4 . The computer-implemented method of claim 2 , wherein the plurality of software policies respectively associated with the precedence is a ranked list from a higher precedence to a lower precedence comprising: (i) organization policies, (ii) environment administrator policies, (iii) developer policies, (iv) machine policies, and (v) customer policies.

5 . The computer-implemented method of claim 1 , wherein the plurality of software policies comprises an organization policy, a developer policy, an environment administrator policy, the changed machine policy, and a client policy.

6 . The computer-implemented method of claim 1 , wherein the repository of reusable code samples in the plurality of programming languages is generated using an Artificial Intelligence (AI) model, and wherein the AI model creates the requested code function that is compliant with the plurality of software policies using the repository of the reusable code samples.

7 . The computer-implemented method of claim 1 , wherein the changed machine policy is generated by implementing performance benchmarks against an associated computational environment with compatible software functions exhibiting relatively higher performance than incompatible software functions in the changed machine policy.

8 . The computer-implemented method of claim 1 , wherein the computer-implemented method is executed by a computational system based on software function generator code downloaded to the computational system from a remote data processing system, and wherein the computer-implemented method further comprises:

metering usage of the software function generator code; and

generating an invoice based on metering the usage of the software function generator code.

9 . The computer-implemented method of claim 1 , wherein the requested code function is an application.

10 . The computer-implemented method of claim 1 , wherein the requested code function is an executable.

11 . The computer-implemented method of claim 1 , wherein the requested code function is a library.

12 . The computer-implemented method of claim 1 , wherein the requested code function is a container image.

13 . The computer-implemented method of claim 1 , wherein the requested code function is a Kernel-based Virtual Machine (KVM) guest.

14 . A system comprising:

one or more processors; and

one or more computer-readable storage media storing program instructions which, when executed by the one or more processors, are configured to cause the one or more processors to perform a method comprising:

generating a list of algorithms configurable with a requested code function provided by a client device, wherein the list of algorithms is based on evaluating a plurality of software policies, wherein the plurality of software policies includes a changed machine policy, and wherein the requested code function supports migration of the requested code function from a first platform to a second platform;

generating the requested code function based on a selected algorithm of the list of algorithms and using a repository of reusable code samples in a plurality of programming languages;

creating a unit-test associated with the requested code function, wherein the unit-test indicates a performance of the requested code function; and

transmitting the requested code function to the client device, wherein transmitting the requested code function to the client device comprises transmitting the requested code function, the unit-test, a status message indicating whether creation of the requested code function is successful, and a data structure indicating compliant software policies of the plurality of software policies.

15 . The system of claim 14 , wherein the plurality of software policies are respectively associated with a precedence, and wherein a policy resolver is implemented to generate the list of algorithms and based on evaluating respective precedencies of the plurality of software policies.

16 . The system of claim 14 , wherein the plurality of software policies comprises an organization policy, a developer policy, an environment administrator policy, the changed machine policy, and a client policy.

17 . The system of claim 14 , wherein the changed machine policy is generated by implementing performance benchmarks against an associated computational environment with compatible software functions exhibiting relatively higher performance than incompatible software functions in the changed machine policy.

18 . A computer program product comprising one or more computer readable storage media, and program instructions collectively stored on the one or more computer readable storage media, the program instructions comprising instructions configured to cause one or more processors to perform a method comprising:

generating a list of algorithms configurable with a requested code function provided by a client device, wherein the list of algorithms is based on evaluating a plurality of software policies, wherein the plurality of software policies includes a changed machine policy, and wherein the requested code function supports migration of the requested code function from a first platform to a second platform;

generating the requested code function based on a selected algorithm of the list of algorithms and using a repository of reusable code samples in a plurality of programming languages;

creating a unit-test associated with the requested code function, wherein the unit-test indicates a performance of the requested code function; and

transmitting the requested code function to the client device, wherein transmitting the requested code function to the client device comprises transmitting the requested code function, the unit-test, a status message indicating whether creation of the requested code function is successful, and a data structure indicating compliant software policies of the plurality of software policies.

19 . The computer program product of claim 18 , wherein the plurality of software policies are respectively associated with a precedence, and wherein a policy resolver is implemented to generate the list of algorithms and based on evaluating respective precedencies of the plurality of software policies.

20 . The computer program product of claim 18 , wherein the plurality of software policies comprises an organization policy, a developer policy, an environment administrator policy, the changed machine policy, and a client policy; and

wherein the changed machine policy is generated by implementing performance benchmarks against an associated computational environment with compatible software functions exhibiting relatively higher performance than incompatible software functions in the changed machine policy.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 8, 2024
From: KHAN, MUHAMMAD USMAN KARIM
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 067035/0344 →
Continuity (1)
Related Publication 20250315216A1 · Oct 9, 2025
References Cited (14)
US 10157045B2 · Venkataramani · 2018 [cited by applicant]
US 10235142B1 · Chaffin · 2019 [cited by applicant]
US 10949182B2 · Venkataramani · 2021 [cited by applicant]
US 11716264B2 · Nainar · 2023 [cited by applicant]
US 12253932B1 · Schumacher · 2025 [cited by examiner]
US 20150106797A1 · Balasubramanian · 2015 [cited by applicant]
US 20170277518A1 · Krishnan · 2017 [cited by examiner]
US 20200234346A1 · Venkateswaran · 2020 [cited by examiner]
CN 106502896A · 2017 [cited by applicant]
WO 2023078116A1 · 2023 [cited by applicant]
Disclosed Anonymously, “Method and System for Usage Aware Ad-Hoc Application Management Aligned with Organizational Policies,” An IP.com Prior Art Database Technical Disclosure, IP.com No. IPCOM000264299D, Dec. 1, 2020,… [cited by applicant]
Shojaee et al., “Execution-based Code Generation using Deep Reinforcement Learning,” arXiv:2301.13816v4, Jul. 19, 2023, 26 pages. [cited by applicant]
Tsiounis et al. “Goal and Policy Based Code Generation and Deployment of Smart Contracts,” 2022IEEEInternational Conference on Software Analysis, Evoliation and Reengineering (SANER) 2022, pp. 1227-1230. [cited by applicant]
Zaremba et al., “OpenAl Codex,” https://openai.com/blog/openai-codex, printed from the internet Feb. 26, 2024, 10 pages. [cited by applicant]