A work machine comprising: a lower track structure; an upper swing structure swingably mounted on the lower track structure; a work implement including a boom which is angularly movably mounted on the upper swing structure; a boom cylinder for driving the boom; a swing motor for driving the upper swing structure; a boom operation device for operating the boom; a swing operation device for operating the upper swing structure; a first pump and a second pump as variable-displacement-type hydraulic pumps; a first regulator for controlling a delivery flow rate of the first pump; a second regulator for controlling a delivery flow rate of the second pump; a boom control valve for controlling a flow of a pressurized fluid supplied from the first pump to the boom cylinder; a swing control valve for controlling a flow of a pressurized fluid supplied from the second pump to the swing motor; and a controller configured to control the first regulator depending on an operation amount of the boom operation device and control the second regulator depending on an operation amount of the swing operation device, characterized in that the controller is configured to assume that a line for supplying the pressurized fluid from the first pump to a bottom-side chamber of the boom cylinder and the second pump are interconnected by a hypothetical joint line, compute a hypothetical flow rate representing a flow rate in the hypothetical joint line, compute a first pump provisional target flow rate representing a provisional target flow rate for the first pump on a basis of the operation amount of the boom operation device, compute a second pump provisional target flow rate representing a provisional target flow rate for the second pump on a basis of an operation amount of the swing operation device, compute a first pump final target flow rate representing a final target flow rate for the first pump by adding the hypothetical flow rate to the first pump provisional target flow rate, and compute a second pump final target flow rate representing a final target flow rate for the second pump by subtracting the hypothetical flow rate from the second pump provisional target flow rate. a lower track structure; an upper swing structure swingably mounted on the lower track structure; a work implement including a boom which is angularly movably mounted on the upper swing structure; a boom cylinder for driving the boom; a swing motor for driving the upper swing structure; a boom operation device for operating the boom; a swing operation device for operating the upper swing structure; a first pump and a second pump as variable-displacement-type hydraulic pumps; a first regulator for controlling a delivery flow rate of the first pump; a second regulator for controlling a delivery flow rate of the second pump; a boom control valve for controlling a flow of a pressurized fluid supplied from the first pump to the boom cylinder; a swing control valve for controlling a flow of a pressurized fluid supplied from the second pump to the swing motor; and a controller configured to control the first regulator depending on an operation amount of the boom operation device and control the second regulator depending on an operation amount of the swing operation device, characterized in that the controller is configured to assume that a line for supplying the pressurized fluid from the first pump to a bottom-side chamber of the boom cylinder and the second pump are interconnected by a hypothetical joint line, compute a hypothetical flow rate representing a flow rate in the hypothetical joint line, compute a first pump provisional target flow rate representing a provisional target flow rate for the first pump on a basis of the operation amount of the boom operation device, compute a second pump provisional target flow rate representing a provisional target flow rate for the second pump on a basis of an operation amount of the swing operation device, compute a first pump final target flow rate representing a final target flow rate for the first pump by adding the hypothetical flow rate to the first pump provisional target flow rate, and compute a second pump final target flow rate representing a final target flow rate for the second pump by subtracting the hypothetical flow rate from the second pump provisional target flow rate.